TL;DR: Agent skills written in markdown can vary at runtime, hide unsafe code, and slip past review when sourced from third parties, so IBM Research and Alice are targeting the problem with Mellea and Caterpillar, according to ActiveFence. The real issue is not just code quality but governable trust in machine-generated instructions that now behave like non-human identity inputs.
At a glance
What this is: This is an analysis of agent skills as an emerging AI supply-chain risk, with the key finding that markdown-based skills can be inconsistent, unsafe, and potentially malicious when reused from external sources.
Why it matters: It matters because AI and IAM teams now have to govern machine-readable instructions and delegated execution paths, not just users, secrets, and APIs.
Context
Agent skills turn plain-language instructions into executable workflows, which creates a governance gap between authored intent and runtime behaviour. The risk is not simply that the content may be poorly written, but that third-party skills can carry unsafe code, hidden permissions, or malicious logic into production systems. For identity and AI governance teams, the concern is whether those instructions are being treated like trusted input when they should be treated like unvetted software.
This is a supply-chain problem with an identity dimension because agent skills can influence what an AI system is allowed to do, what data it can touch, and which tools it can call. Once those instructions are accepted as part of the operational trust boundary, review processes need to examine provenance, privilege, and execution controls together. That starting position is now common in fast-moving AI programmes, which means the gap is architectural rather than exceptional.
Key questions
Q: What breaks when third-party agent skills are not governed like privileged inputs?
A: When agent skills are treated as harmless content, organisations miss the fact that those instructions can steer tools, secrets, and execution paths. The result is hidden privilege expansion, unsafe automation, and poor traceability. A skill should be governed like any other high-risk input that can change system behaviour, because that is effectively what it is.
Q: Why do AI agent skills create supply chain risk in enterprise environments?
A: AI agent skills create supply chain risk because they can look harmless in review while delivering malicious behavior only when executed. If an agent accepts untrusted content and acts on it, attackers can hide instructions, pull payloads from remote servers, or abuse the agent as a dropper. The risk grows when organisations rely on popularity or static checks as proof of safety.
Q: What are the signs that an agent skill is failing governance checks?
A: Look for unexpected external network calls, credential access, obfuscated logic, broad permission requests, or behaviour that changes materially between runs. Those signals suggest the skill is not just describing work but altering execution in ways that are hard to review and harder to contain.
Q: How should teams govern third-party skills in agent ecosystems?
A: Treat third-party skills as privileged dependencies, not harmless add-ons. Require ownership, source review, and explicit approval before a skill can inherit access to data or tools, and revoke that access when the skill’s purpose, provenance, or maintenance status is no longer clear.
Technical breakdown
Why markdown agent skills behave like untrusted software
Agent skills are often distributed as simple markdown files, but the file format hides the fact that the content can define executable behaviour. When a model interprets those instructions at runtime, small changes in wording, structure, or embedded logic can alter the resulting workflow. That makes a skill closer to a software artifact than a documentation page. If the skill is sourced from outside the organisation, the trust problem is not only authenticity but also whether its content can be safely executed in the target agent environment.
Practical implication: Treat third-party skills as code-like artifacts and subject them to provenance and policy review before any runtime use.
How compiler-style guardrails change agent skill governance
A compiler approach shifts the control point from free-form instructions to typed, guarded execution. Instead of letting a model improvise from prose, the skill is converted into a structured contract with explicit inputs, outputs, and policy hooks. That enables auditability, but it also changes the governance model: the control objective becomes constrained execution rather than text review. This is especially relevant for agentic AI, where the skill itself may determine tool access, data handling, and the acceptable response surface.
Practical implication: Use typed contracts and policy manifests for high-trust skills so runtime behaviour is constrained before tool access is granted.
Why third-party skill scanning belongs in the supply chain control set
Third-party skill scanning looks for credential theft, data exfiltration, persistence, obfuscation, and remote execution patterns before a skill is allowed into production. That is the same logic used in broader software supply-chain security, but here the artifact is an instruction package that can trigger agent behaviour rather than an application binary. The important governance insight is that the security boundary sits at ingestion, not only at deployment. Once a skill is trusted, the agent may faithfully execute harmful instructions at machine speed.
Practical implication: Scan imported skills at ingestion and block anything that contains high-risk behaviours, hidden external calls, or privilege expansion.
Threat narrative
Attacker objective: The attacker objective is to turn a trusted-looking agent skill into a covert execution path that steals secrets, exfiltrates data, or expands access inside the AI workflow.
- Entry begins when a third-party agent skill is imported into an environment and treated as a trusted instruction set rather than as unvetted software.
- Credential or behaviour abuse follows when the skill contains hidden logic, credential theft, external calls, or overly broad permissions that the agent can execute.
- Impact occurs when the agent runs the skill at runtime and the malicious or unsafe behaviour reaches data, systems, or downstream workflows.
Breaches seen in the wild
- LiteLLM PyPI package breach: LiteLLM PyPI supply chain attack, credentials stolen from users.
- Ultralytics PyPI compromise 2024: A GitHub Actions injection and a leftover PyPI token let attackers publish four Ultralytics releases that installed a cryptominer.
Read and download The State of NHI & AI Agent Breach Report 2026, covering 200+ breaches impacting Non-Human Identities including AI Agents.
NHI Mgmt Group analysis
Agent skills are becoming an AI supply-chain control point, not a content format. Once a skill can influence execution, the governance model has to treat it like a software artifact with provenance, policy, and runtime restrictions. That changes the boundary for AI programmes because review must happen before an agent ever interprets the instructions. The practitioner conclusion is simple: if the skill can change system behaviour, it belongs in the software supply-chain review process.
Trusted instruction is now a privilege problem. Agent skills can expand what an AI system may do, which means the real question is not whether the text is readable but whether the resulting behaviour is authorised. This is where agentic AI and identity governance intersect directly, because permissions embedded in the skill can act like delegated access without the usual IAM lifecycle controls. The conclusion is that privilege must be bound to the execution context, not assumed from the source text.
Third-party skills create hidden governance debt. Organisations that accept community or vendor-provided skills without inspection are outsourcing part of their control stack to an opaque upstream chain. That is how unsafe code, persistence logic, and external callbacks can bypass normal review expectations. The named concept here is agent skill trust debt: the accumulation of unverified instructions that look lightweight but create durable exposure. The conclusion is to reduce that debt before large-scale agent adoption hardens it into process.
Runtime safety needs typed execution, not prose-based trust. The article’s core lesson is that natural-language convenience does not remove the need for structured contracts, policy manifests, and audit trails. In practice, the more autonomous the agent workflow becomes, the less useful manual review of prose alone is. The practitioner conclusion is to align agent governance with software assurance, not with document approval workflows.
From our research library:
- 92% of organisations expose NHIs to third parties, raising concerns about supply chain security, according to the Ultimate Guide to NHIs.
- Read next: Agent Identity Standards Tracker
What this signals
Agent skill trust debt: the more an organisation relies on externally authored instructions, the more it inherits unreviewed execution risk into its AI programme. This is not a documentation problem; it is a governance problem that sits between supply-chain assurance and runtime access control. Teams should assume any third-party skill can behave like code and should route it through the same approval discipline used for high-risk software inputs.
For identity programmes, the meaningful shift is that authority now attaches to machine-readable instructions as much as to users or workloads. That creates a new control question for agentic AI: who approved the behaviour, what access did it inherit, and what can it reach once the agent starts acting? The practical response is to make provenance, policy, and least privilege inseparable at ingestion time.
The supply-chain angle is reinforced by the scale of third-party exposure: 92% of organisations expose NHIs to third parties, raising concerns about supply chain security, according to the Ultimate Guide to NHIs. That figure matters here because agent skills are another form of delegated trust, and delegated trust without lifecycle controls becomes operational debt very quickly.
For practitioners
- Establish a third-party skill intake gate Require provenance checks, ownership review, and risk classification before any external agent skill can enter a production repository or agent catalogue.
- Compile high-trust skills into typed contracts Use structured execution artefacts with explicit inputs, outputs, and policy hooks for workflows that can touch sensitive data or tools.
- Scan skills for supply-chain abuse patterns Detect credential theft, external callbacks, persistence mechanisms, code obfuscation, and remote script execution before runtime.
- Bind agent permissions to runtime context Limit each skill to the minimum tool and data access needed for the task, and reject skills that imply broad or hidden privileges.
- Log and certify skill execution traces Preserve auditable records of what each skill requested, what the agent executed, and which policy checks were applied.
Key takeaways
- Third-party agent skills can hide unsafe behaviour, making them a supply-chain risk rather than a harmless prompt file.
- The critical control gap is ungoverned trust in machine-readable instructions that can alter agent behaviour at runtime.
- Teams need provenance checks, constrained execution, and runtime scanning before they let external skills influence production agents.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Agentic Skills Top 10, OWASP Agentic AI Top 10 and MITRE ATT&CK address the attack and risk surface, while SLSA and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Agentic Skills Top 10 | ASI04 — Agentic Supply Chain Vulnerabilities | The article is specifically about third-party agent skills entering AI systems as risky supply-chain artifacts. |
| Recommendation — Inventory external agent skills and gate them through supply-chain review before any runtime use. | ||
| OWASP Agentic AI Top 10 | ASI03 — Identity & Privilege Abuse | The article links skill content to delegated access, tool use, and privilege expansion inside agent workflows. |
| Recommendation — Constrain agent skill execution so imported instructions cannot expand privileges beyond approved scope. | ||
| MITRE ATT&CK | TA0006;TA0010 — Credential Access; Exfiltration | The skill-detection examples include credential theft and data exfiltration as core abuse paths. |
| Recommendation — Map malicious skill behaviours to credential access and exfiltration tactics in your detection programme. | ||
| SLSA | L3 — Provenance and Build Integrity | The article treats upstream trust and artifact integrity as central to safely consuming third-party skills. |
| Recommendation — Apply provenance controls to externally sourced agent skills before allowing them into production workflows. | ||
| NIST CSF 2.0 | PR.AA-05 — Access Permissions, Entitlements and Authorizations | Agent skills can expand what tools and data an AI system may access, which makes entitlement control central. |
| Recommendation — Review agent entitlements under PR.AA-05 and remove permissions that imported skills do not need. | ||
Key terms
- Agent Skill: A reusable package of task-specific knowledge and procedures that an autonomous agent can load when needed. In practice, it separates general awareness from operational detail, which makes enterprise context easier to govern than a single oversized prompt.
- Agentic Supply Chain: The collection of models, tools, plugins, prompts, memory stores, and middleware that an AI agent depends on to operate. Weaknesses in this chain can introduce hidden instructions, poisoned context, or exposed secrets, so security teams need inventory, trust validation, and isolation controls across the entire path.
- Typed Contract: A typed contract is a structured definition of what an agent skill may accept, produce, and modify. It replaces loose prose with explicit inputs and outputs, which improves predictability, auditability, and enforcement of policy around sensitive actions.
- Runtime Guardrail: A control applied while an AI agent is operating, not just during configuration or review. Guardrails can block dangerous tool calls, require approval for sensitive actions, or stop data leakage before it reaches systems or users.
Deepen your knowledge
The NHI Foundation Level course, the industry's only accredited NHI security programme, covers NHI governance, agentic AI identity, and secrets management. It helps practitioners translate identity control principles into operating models for modern automated systems.
Published by the NHIMG editorial team on August 18, 2026.
Updated on October 12, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org