Planted Instructions are malicious commands hidden in content that an AI agent later reads, such as a web page, document, email, ticket or tool output, so the model treats them as legitimate direction. They enable indirect prompt injection. Defenders treat retrieved content as untrusted, restrict agent tool permissions, require approval for sensitive actions and log what the agent retrieved.
What Planted Instructions Are in AI Agents
Planted instructions are a form of indirect prompt injection: hostile commands embedded in content that an AI agent later reads and may follow as if they were trusted instructions. The danger is not the instruction format itself, but the agent’s willingness to treat retrieved text, messages, or tool output as authority.
They usually matter most when an agent has tool access, can take actions on behalf of a user, or is allowed to combine untrusted retrieval with privileged operations. In that setting, a single malicious sentence can steer the model toward disclosure, misuse of tools, or unsafe execution.
Where Planted Instructions Come From
Planted instructions can appear in web pages, documents, emails, support tickets, chat transcripts, code comments, knowledge bases, or system-generated output that feeds back into an agent. The source may look ordinary, but the content is crafted to influence the model’s next decision rather than inform the human reader.
They are especially effective when the agent retrieves content automatically and does not clearly separate untrusted material from operating instructions. That is why retrieved context should be treated as data, not as direction, unless it has been explicitly trusted and filtered.
Why Planted Instructions Are Dangerous
The core risk is instruction override. If the agent cannot reliably distinguish user intent, system policy, and third-party content, planted instructions can redirect behavior toward actions the user never requested. In practice, that can lead to data exposure, unauthorized tool use, or corrupted reasoning chains.
For teams building agentic systems, the issue is often a boundary failure between retrieval and control. The model may be technically correct in reading the content, yet operationally unsafe if it is permitted to obey it without validation.
How Defenders Reduce Exposure
Defence starts with assuming retrieved content is untrusted. Stronger designs limit tool permissions, isolate sensitive actions behind explicit approval, and log what the agent retrieved so suspicious instruction paths can be reviewed after the fact. The goal is to make untrusted text visible to the system without making it authoritative.
Organisations also reduce exposure by narrowing what the agent can do after reading content. If a malicious prompt can only influence a low-impact read operation, the blast radius stays small; if it can trigger file writes, outbound requests, or account changes, the same content becomes much more dangerous.
Risk and Threat Considerations
Planted instructions are dangerous because they exploit trust in input rather than weaknesses in the underlying model. The attacker’s objective is usually to smuggle authority into content the agent is likely to consume, then use that influence to exfiltrate data, manipulate outputs, or trigger actions that bypass normal review.
Failure mechanism: The agent fails to separate instructions from content, so a malicious passage in retrieved text is treated as a legitimate command and executed through downstream tools or responses.
Impact: The result can be credential exposure, sensitive data leakage, unauthorised transactions, malicious automation, or broader compromise of the agent’s operating context.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
MITRE ATLAS and OWASP Agentic AI Top 10 address the attack and risk surface, while NIST SP 800-53 Rev 5 and NIST Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST SP 800-53 Rev 5 | AU-2 — Event Logging | Planted instructions require logging agent retrieval and action paths. |
| AC-6 — Least Privilege | Limiting agent authority reduces the blast radius of malicious instructions. | |
| SI-10 — Information Input Validation | Untrusted retrieved text must be validated before it can influence execution. | |
| Recommendation — Log retrieved content and agent actions to support review of injected instruction chains. Constrain agent permissions so planted instructions cannot trigger high-impact actions. Validate and separate untrusted content before an agent can act on it. | ||
| NIST Zero Trust (SP 800-207) | Zero Trust Architecture | Zero trust principles fit the need to verify retrieved content before acting on it. |
| Recommendation — Assume retrieved content is hostile until a policy decision allows action. | ||
| MITRE ATLAS | AML.TA0004 — Initial Access | Planted instructions are an initial-access path into AI agent workflows. |
| Recommendation — Map injected content to AI initial-access patterns and monitor entry points. | ||
| OWASP Agentic AI Top 10 | ASI09 — Human-Agent Trust Exploitation | Planted instructions abuse the trust an agent places in content it reads. |
| Recommendation — Design review gates that stop agents from trusting hostile content as instruction. | ||
Practitioner Guidance
Why practitioners should care: Planted instructions turn ordinary content ingestion into a control problem. If your agent reads external or user-supplied material, you need explicit policy boundaries for what it may infer, repeat, or execute from that material.
What to watch for: Review any workflow where the model acts after retrieval, especially when the retrieved source can influence tool calls, message routing, access decisions, or summaries that will be trusted by people or other systems.
Practitioner takeaway: The safest pattern is to treat every retrieved instruction as suspicious until a separate control layer decides it is permitted.
Related resources from NHI Mgmt Group
- Guide: ATLAS Initial Access Tactic
- What is the difference between system instructions and user prompts in AI security?
- What breaks when prompt instructions are used as a security control?
- How can organisations reduce risk from AI agents processing hidden instructions?
- What breaks when an AI system cannot separate instructions from data?
Deepen Your Knowledge
Free weekly newsletter
Subscribe to the NHI & AI Identity Journal
The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.
Bonus 33% off our NHI Course when you subscribe.
Reviewed and updated by the NHIMG editorial team on November 26, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org