Because the model treats instructions and data through one shared context, so it cannot reliably tell whether text is authoritative guidance or hostile content. That makes indirect injection possible even when the user did nothing malicious. In practice, teams must assume any retrieved text, email, or tool result can try to steer behavior.
Why This Matters for Security Teams
LLM-based agents weaken a core zero trust assumption: that the system can distinguish trusted instructions from untrusted content before taking action. Once a model can read documents, emails, tickets, or tool output and then decide what to do next, every input becomes a possible control surface. That shifts the problem from simple access control to instruction integrity, provenance, and safe action boundaries.
This is why agentic AI now appears in guidance such as the OWASP Agentic AI Top 10 and the NIST AI Risk Management Framework. The issue is not just prompt injection in the narrow sense. It also includes poisoned retrieval content, malicious email payloads, manipulated tool responses, and hidden instructions embedded in documents that the agent treats as context rather than evidence.
Security teams often miss the operational impact: a zero trust design that validates the human user but implicitly trusts every artifact the agent reads is still vulnerable. In practice, many security teams encounter this only after an agent has already followed untrusted instructions embedded in a document or tool response, rather than through intentional testing.
How It Works in Practice
In a traditional zero trust model, requests are authenticated, authorised, and inspected at each step. With LLM-based agents, the challenge is that the model processes both task instructions and external content inside the same context window. That means a retrieved document can influence behaviour even when it was only meant to inform the answer, not steer the workflow. The boundary between “data” and “command” becomes soft unless the application adds explicit safeguards.
Practically, teams need separate controls for content intake, reasoning, and action execution. That usually means treating external text as untrusted by default, constraining the agent’s tool scope, and forcing high-risk actions through policy checks or human approval. The NIST SP 800-207 Zero Trust Architecture model still applies, but it must be adapted so that trust decisions cover the model’s inputs and outputs, not only user sessions and network flows.
- Classify retrieved content, emails, and tool outputs as untrusted until validated.
- Use least privilege for agent tools, API keys, and downstream systems.
- Separate user intent from retrieved evidence in the orchestration layer.
- Apply output filtering and action gating before any irreversible operation.
- Log prompts, retrieved sources, and tool calls for review and incident response.
Current guidance suggests pairing governance from the NIST AI 600-1 Generative AI Profile with attack-pattern coverage from the MITRE ATLAS adversarial AI threat matrix and resilience thinking from the NIST Cybersecurity Framework 2.0. These controls tend to break down when agents have broad tool access and are allowed to execute cross-system actions without an approval checkpoint, because a single poisoned input can cascade into multiple dependent systems.
Common Variations and Edge Cases
Tighter agent controls often increase latency and workflow friction, requiring organisations to balance operational speed against the risk of unintended execution. That tradeoff becomes sharper in environments where agents must summarise long document sets, process inboxes, or query multiple internal tools, because each added validation step can slow the business process.
Best practice is evolving, and there is no universal standard for this yet. Some teams isolate retrieval from execution, while others rely on policy prompts, sandboxed tools, or separate “read” and “act” agents. The right answer depends on whether the system is advisory only or is allowed to change records, send messages, trigger purchases, or approve access. Where the agent can affect privileged systems, this becomes an NHI governance issue as much as an AI safety issue, because the agent effectively operates as a non-human identity with delegated authority.
For higher-risk deployments, the CSA MAESTRO agentic AI threat modeling framework is useful for structuring trust boundaries, while the OWASP Top 10 for Agentic Applications 2026 helps teams pressure-test common failure modes. The edge case to watch is any workflow that mixes external web content, internal documents, and privileged tools in one chain, because the system can appear well-governed while still being vulnerable to indirect instruction injection.
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 MITRE ATLAS address the attack and risk surface, while NIST CSF 2.0, NIST AI RMF and NIST AI 600-1 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST CSF 2.0 | PR.AC-4 | Least privilege limits what an agent can do after reading untrusted content. |
| NIST AI RMF | AI RMF governs risk treatment for unsafe model behaviour and untrusted inputs. | |
| NIST AI 600-1 | The GenAI profile addresses input, output, and deployment risks for LLM systems. | |
| OWASP Agentic AI Top 10 | Agentic app guidance covers prompt injection and tool abuse in shared context flows. | |
| MITRE ATLAS | AML.TA0002 | ATLAS maps adversarial AI tactics such as manipulation of model inputs and outputs. |
Define AI risk ownership, test for prompt injection, and monitor model behaviour continuously.
Related resources from NHI Mgmt Group
Deepen Your Knowledge
Reviewed and updated by the NHIMG editorial team on August 24, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org