The instruction-layer attack surface is the risk created when natural-language guidance becomes machine-followed behaviour. For AI agents, this includes SKILL.md files, hidden instructions, and embedded prompts that can redirect authorised activity without compromising the underlying model or stealing a credential.
Expanded Definition
The instruction-layer attack surface is the set of pathways where natural-language instructions, embedded prompts, and adjacent guidance can alter an AI agent’s behavior. In NHI security, the risk is not limited to model compromise; it also includes trusted content that the agent reads and executes as if it were authoritative.
This matters because agent instruction handling often sits between policy intent and actual execution. A SKILL.md file, hidden prompt, repository comment, retrieved document, or tool description can become operational input if the agent is designed to follow instructions from that layer. Industry usage is still evolving, so definitions vary across vendors, but the core security idea is consistent: the attack surface expands wherever the agent converts text into action. That is why guidance on OWASP NHI Top 10 and adversarial AI taxonomies such as MITRE ATLAS adversarial AI threat matrix are increasingly relevant to agent design.
The most common misapplication is treating prompt text as harmless documentation, which occurs when teams assume only model weights, credentials, or network access can create security impact.
Examples and Use Cases
Implementing instruction-layer controls rigorously often introduces friction, because stronger instruction filtering, provenance checks, and allowlisting can slow agent autonomy and make developer workflows less convenient.
- An internal repository contains a SKILL.md file that tells an agent to prioritise a new workflow, causing the agent to take actions that were never approved by the application owner.
- A retrieval-augmented agent ingests a document with hidden instructions, then follows those instructions over the operator’s intent, a pattern discussed in NHIMG research on Ultimate Guide to NHIs — Key Challenges and Risks.
- An AI coding assistant reads comments or README content as if it were trusted guidance, then inserts insecure configuration or expands tool use beyond policy boundaries.
- An agent connected to external tools receives a malicious instruction embedded in a support ticket, then executes an action chain that exposes data or changes permissions, echoing the escalation patterns described in CISA cyber threat advisories.
- Security teams map instruction-bearing artifacts to the broader NHI estate using Top 10 NHI Issues to distinguish normal content from executable influence.
Why It Matters in NHI Security
Instruction-layer attacks are dangerous because they can redirect legitimate access without stealing the credential that granted it. That means the agent may remain authenticated, authorized, and difficult to detect while still behaving outside business intent. In the SailPoint AI Agents: The New Attack Surface report, 80% of organisations said their AI agents had already performed actions beyond their intended scope, showing how quickly instruction failures become operational failures.
For NHI programs, this turns prompt hygiene into a governance problem. Controls need to address provenance, trust boundaries, content sanitization, and explicit instruction priority across agent inputs. NIST guidance on NIST SP 800-53 Rev 5 Security and Privacy Controls helps frame the issue as access control, monitoring, and integrity protection, while MITRE ATT&CK Enterprise Matrix remains useful for tracing how instruction abuse can support persistence, execution, and exfiltration patterns.
Organisations typically encounter the business impact only after an agent has already acted on poisoned instructions, at which point instruction-layer attack surface becomes operationally unavoidable to address.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Non-Human Identity Top 10 and OWASP Agentic AI Top 10 address the attack and risk surface, while NIST CSF 2.0, NIST AI RMF and NIST Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-04 | Covers unsafe agent instructions and prompt injection paths. |
| OWASP Agentic AI Top 10 | A-03 | Addresses prompt injection and tool-use manipulation in agents. |
| NIST CSF 2.0 | PR.AC-3 | Access and permission enforcement is undermined by instruction-layer abuse. |
| NIST AI RMF | Requires managing AI system risks from adversarial input manipulation. | |
| NIST Zero Trust (SP 800-207) | SC-2 | Zero trust rejects implicit trust in content or requests from any source. |
Limit agent privileges and monitor instruction-driven actions against expected access paths.
Related resources from NHI Mgmt Group
Deepen Your Knowledge
Reviewed and updated by the NHIMG editorial team on July 24, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org