By NHI Mgmt Group Editorial TeamDomain: AI SecuritySource: ActiveFencePublished August 17, 2026

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 why agent skills written as plain-language markdown create supply-chain and runtime risk, and how compile-time guardrails plus scanning try to reduce it.

Why it matters: It matters because AI agents increasingly depend on external instructions and tools, which means identity, privilege, and execution controls must extend beyond human-coded software into agent skills and the third-party content they consume.

👉 Read ActiveFence's analysis of securing agent skills before they run


Context

Agent skills are becoming a distribution layer for agentic workflows, but they also create a trust problem: plain-language instructions can carry unsafe logic, malicious code, or broad permissions that are hard to spot in review. In practice, the security issue is not the prose format itself, but the fact that instruction files can cross the boundary from content into executable behaviour without mature governance.

For IAM, PAM, and NHI teams, this is a familiar pattern in a new form. A third-party skill is effectively an identity-bearing input to an agent runtime, and if that input can influence tools, credentials, or execution paths, then the control problem becomes one of lifecycle governance, privilege containment, and policy enforcement across the agent supply chain.


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 shared credentials create compliance risk for NHI and IAM teams?

A: Shared credentials destroy identity attribution, which means the environment can no longer prove which person or system performed a given action. That weakens access review, offboarding, and incident response at the same time. For NHI and IAM teams, the risk is not only compromise but also the inability to produce defensible evidence.

Q: How can security teams know if agent skill controls are actually working?

A: Look for evidence that skills are inventoried, risk rated, scanned before execution, and tied to a policy manifest or approval record. If teams cannot show which skills are live, who owns them, and what actions they can trigger, the programme is still operating on trust rather than control.

Q: How should organisations respond when a production agent skill is found to be unsafe?

A: Disable the skill, preserve its source and execution logs, identify every workflow that depends on it, and revoke any secrets or permissions it could influence. Then classify the failure mode so the same pattern is blocked at intake, not just removed after the fact.


Technical breakdown

Why plain-language agent skills create execution risk

Agent skills in markdown are not just documentation. They are instructions that can be turned into runtime behaviour, which means any unsafe assumption in the skill can propagate into tool use, data access, or downstream actions. The problem is amplified when skills are third-party supplied, because review tools often focus on static patterns while the real risk sits in how the skill resolves at runtime. Once a skill can trigger code paths, network calls, or credential use, it behaves less like content and more like an ungoverned automation artifact.

Practical implication: treat third-party skills as privileged inputs and subject them to the same lifecycle controls as other high-risk automation artefacts.

Compile-time guardrails versus runtime scanning for agent skills

Compile-time controls try to convert free-form instructions into typed, policy-bound programs before execution. That changes the security model from loosely interpreted text to an auditable contract with explicit data shapes, permitted actions, and guardrails. Runtime scanning then inspects the skill as it executes or before it runs, looking for credential theft, exfiltration, persistence, obfuscation, or supply-chain patterns. The two approaches are complementary because one constrains what the skill can become, while the other checks what it actually does.

Practical implication: use both pre-execution policy binding and runtime inspection, because either control alone leaves exploitable gaps.

Why third-party skills resemble an ai supply-chain problem

The agent skills ecosystem looks like software supply chain risk because trust is being imported from outside the organisation and reused inside an automated workflow. A skill can embed remote script calls, overly broad permissions, or dependency-like behaviours that are difficult to distinguish from legitimate instructions. In AI environments, that creates an identity and privilege problem as well as a code integrity problem, because the skill can direct an agent to act with more authority than intended. That is why agent skill governance belongs alongside AI security and NHI governance, not only application security.

Practical implication: inventory external skills, validate their source, and bound the permissions they can influence before they reach production.


Threat narrative

Attacker objective: The attacker wants to turn trusted agent instructions into a covert execution path that steals data, abuses credentials, or expands control over the runtime.

  1. Entry occurs when a third-party agent skill is imported into an agent workflow as a trusted instruction file.
  2. Credential or execution abuse follows if the skill contains hidden commands, unsafe hooks, or permission-expanding logic that the agent runtime can execute.
  3. Impact emerges when the agent uses those instructions to exfiltrate data, persist access, or misuse connected tools and secrets.

NHI Mgmt Group analysis

Agent skills create a new trust boundary that current IAM models do not fully describe. These markdown-based instructions are neither ordinary code nor ordinary content, yet they can influence execution, tool calls, and credential use. That makes them a governed input to an agent system, and governed inputs need provenance, inspection, and policy decisions. Practitioner takeaway: security teams should classify agent skills as security-relevant artefacts, not just developer convenience files.

Compile-time typing is useful, but it does not replace privilege governance. Converting prose into a typed program reduces ambiguity, yet a typed program can still be over-permissioned or connected to dangerous tools. The control gap is not only whether the instruction is well formed, but whether the resulting agent action is scoped to the minimum necessary access. Practitioner takeaway: bind skill execution to least privilege, not just to syntactic validity.

Agent skill scanning is becoming the non-human equivalent of supply-chain inspection. The most interesting part of the article is not the scanner branding, but the idea that external agent instructions need static and dynamic inspection before they run. That mirrors software supply-chain governance, except the target is an AI runtime that may call tools, fetch data, or manipulate credentials on behalf of a user. Practitioner takeaway: place third-party skills under a formal intake process with approval, scanning, and continuous monitoring.

Policy manifests matter because AI systems need auditable execution contracts. A manifest turns a vague instruction set into something compliance teams can evaluate against risk taxonomies, which is especially important when skills touch sensitive data or privileged APIs. This is where AI governance and NHI governance converge: the organisation needs to know what the skill can do, what identity it acts under, and what evidence exists after execution. Practitioner takeaway: require traceable skill-to-action mapping before production use.

Third-party agent skill ecosystems are likely to drive a broader identity security reset. As agentic systems scale, organisations will have to manage not only human users and service accounts, but also the artefacts that instruct agents how to behave. That is a named concept worth tracking: agent instruction sprawl, where unreviewed skills accumulate faster than governance can classify them. Practitioner takeaway: build intake, review, and retirement processes for agent skills before the library outgrows control.

What this signals

Agent instruction sprawl is becoming a governance issue, not just a developer workflow problem. As more teams adopt third-party skills, they will need intake controls that resemble software supply-chain review but apply to agent behaviour, permission scope, and execution traceability.

The broader signal for identity programmes is that non-human trust now extends to the artefacts that instruct automation, not only to the identities that authenticate. When agents can translate prose into action, the organisation needs evidence of provenance, approval, and revocation across the entire instruction chain.

The related NHI pattern is already visible in the breach landscape, where insecure machine identities and exposed secrets create fast compromise windows. Our research on NHI breaches and the The 52 NHI breaches Report shows that governance gaps persist when organisations cannot inventory, classify, and retire machine-facing access cleanly.


For practitioners

  • Inventory all third-party agent skills Create a register of every external skill file, package, or workflow fragment used by production agents, including source, owner, approval status, and connected tools. This gives you a control point for provenance and offboarding when a skill becomes unsafe.
  • Classify skills by execution privilege Map each skill to the secrets, APIs, and runtime actions it can influence, then label it by privilege tier. Skills that can touch credentials, outbound network calls, or production data should be treated as high risk by default.
  • Require pre-execution compilation or certification Use a compile or certification step to transform prose skills into typed, policy-bound artefacts before they are allowed to run. The review should confirm allowed inputs, allowed outputs, and prohibited actions, not just code style.
  • Scan for malicious patterns before deployment Run static checks for credential theft, exfiltration commands, persistence mechanisms, obfuscation, and supply-chain hooks before any skill reaches a shared environment. Pair that with runtime monitoring so a clean review does not become a permanent blind spot.

Key takeaways

  • Agent skills are becoming security-sensitive inputs because they can shape tool use, data access, and execution, not just documentation.
  • Compile-time typing and runtime scanning are complementary controls, but neither replaces least-privilege governance for the identities an agent uses.
  • Third-party skill intake now needs the same discipline as software supply-chain review, including provenance, approval, monitoring, and rapid revocation.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Agentic AI Top 10 and OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST AI RMF, NIST CSF 2.0 and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Agentic AI Top 10Agent skills and tool execution map directly to agentic AI supply-chain and privilege abuse risks.
OWASP Non-Human Identity Top 10NHI-03The article centers on unsafe non-human execution paths and third-party skill governance.
NIST AI RMFGOVERNThe article raises accountability, provenance, and policy questions for agentic automation.
NIST CSF 2.0PR.AC-4Least-privilege access is central when agent skills can influence secrets and APIs.
NIST SP 800-53 Rev 5IA-5Credential handling and authenticator management are implicated when skills can touch secrets.

Review third-party skills for tool misuse, prompt injection, and privilege expansion before allowing execution.


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.
  • Agent Instruction Sprawl: The accumulation of unreviewed, loosely governed skills and prompts across an organisation. It becomes risky when teams cannot inventory which instructions are active, who owns them, or what permissions they can trigger in connected systems.
  • Policy Manifest: A machine-readable record that describes what a skill is allowed to do, what inputs it accepts, and what outputs or actions are prohibited. It creates a reviewable contract between the instruction and the runtime environment.
  • Non-Human Identity (NHI): A digital identity assigned to a non-human entity such as a software application, service account, API key, bot, machine, or AI agent that enables it to authenticate and interact with systems without direct human involvement. NHIs now outnumber human identities in most enterprises by 25 to 50 times.

What's in the full article

ActiveFence's full blog covers the operational detail this post intentionally leaves for the source:

  • The 4-byte cache poisoning explanation and why review tools miss the pattern in practice
  • How Python .pyc caching can create inconsistent runtime behaviour across agent skill executions
  • The proof-of-concept workflow that demonstrates unsafe skill behaviour before production deployment
  • The exact command-line examples for running Caterpillar in alice, OpenAI, and offline modes

👉 The full ActiveFence post covers the cache poisoning mechanics, scanner modes, and proof-of-concept workflow.

Deepen your knowledge

NHI Foundation Level course, the industry's only accredited NHI security programme, covers NHI governance, secrets management, workload identity, and agentic AI identity. It helps practitioners connect identity control to the broader security programmes that now depend on machine and agent behaviour.
NHIMG Editorial Note
Published by the NHIMG editorial team on August 18, 2026.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org