Because the attack exploits delegated authority, not broken authentication. The agent still holds legitimate permissions and can use them exactly as designed, but the instructions that trigger those actions came from untrusted content. That is why runtime behaviour and content trust must be governed together, especially when non-human identities can call tools on their own.
Why permissions can be valid and still fail against indirect prompt injection
Valid permissions only answer one question: can the agent do the action? They do not answer a different question: should untrusted content be allowed to decide when that action is taken. indirect prompt injection succeeds by shaping the agent’s instructions, then relying on the agent’s legitimate authority to carry them out. That is why permission checks alone do not stop the attack.
In practice, the failure is not broken access control in the classic sense. The agent is often authenticated correctly and may even be authorised exactly as intended. The problem is that the decision boundary has been moved upstream into content, where the attacker can smuggle instructions through email, documents, web pages, tickets, or other retrieved material. Once those instructions are treated as task input, the agent executes with real authority.
This is why defensive thinking has to separate agent authorisation from content trust. Least privilege still matters, but it reduces blast radius rather than eliminating the attack path. If the agent can already read, write, send, or call tools on behalf of a user or organisation, malicious instructions can turn that legitimate capability into an abuse channel unless the runtime is able to judge instruction provenance and intent.
Where the trust boundary actually breaks
Indirect prompt injection usually enters through content the agent is expected to process, summarise, or act on. The content may look harmless to a human reviewer, but it can contain hidden instructions aimed at the model or the orchestration layer. The agent then confuses untrusted content with privileged control text, especially when retrieval, memory, and tool use are fused into one execution path.
That boundary failure becomes more serious when the agent can reach external systems. A browser agent, support agent, or coding agent may be allowed to open pages, send messages, update records, or run commands. If a malicious page or document can influence what the agent decides to do next, the injected instruction becomes operational, even though the underlying permissions were never misconfigured. A useful reference point here is OWASP Top 10 for the broader principle that security failures often arise from trust-boundary mistakes, not only from missing auth checks.
The same pattern is what makes agent-specific attacks so dangerous. In a browser or computer-use workflow, the agent may inherit the user’s active session and then act on manipulated page content. In a coding workflow, poisoned instructions can steer the agent toward file access, command execution, or secret exposure. The permission model may be correct, but the content pipeline is not trustworthy enough to decide what should be executed.
What has to be governed instead of permissions alone
Indirect prompt injection is a control-design problem as much as a permissions problem. The agent needs explicit separation between instruction sources, clear handling of untrusted text, and hard constraints on when tool calls are allowed. For agentic systems, the security question is not only “is the action permitted?” but also “was the action requested by a trusted control plane or by content the agent merely consumed?”
That is why practical controls focus on scoped actions, approval gates, and tighter runtime policy. NHI and agent governance matter because the actor performing the action is not always human, and the system often operates with delegated authority. When the non-human actor can call tools independently, the safest design is to constrain what it can do, when it can do it, and under what verified context it may proceed. NHIMG’s Agentic AI Security Guide is useful here because it frames prompt injection alongside tool misuse, memory poisoning, and identity abuse as one runtime trust problem.
For practitioners, the strongest control pattern is to treat untrusted content as data only, never as executable instruction, unless it has passed a deliberate trust decision. That usually means limiting tool scope, isolating high-risk sources, requiring confirmation for destructive or externalising actions, and logging enough context to reconstruct why the agent acted. The more autonomous the agent, the more important it becomes to govern the instruction channel, not just the credential.
Risk and Threat Considerations
Indirect prompt injection matters because it turns ordinary content handling into an attack path for delegated authority. An attacker does not need to break authentication or steal a password if they can make a valid agent misuse its own permissions. The result can be silent data exposure, unintended tool use, or destructive actions that appear legitimate at the permission layer.
Failure mechanism: Malicious instructions are embedded in content the agent trusts enough to read or process, then the agent converts those instructions into tool calls, retrievals, messages, or commands using its legitimate access.
Impact: Organisations can lose confidentiality, integrity, or operational control even when permissions are correctly issued, because the security failure sits in content trust and runtime decisioning rather than in login or access grant mechanics.
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 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 |
|---|---|---|
| OWASP Agentic AI Top 10 | ASI02 — Tool Misuse | Indirect prompt injection drives unsafe tool use through manipulated content. |
| ASI03 — Identity & Privilege Abuse | The attack abuses an agent’s legitimate delegated authority, not broken login. | |
| Recommendation — Constrain tool execution with source trust checks and approval gates. Reduce agent privilege and separate instruction sources from execution rights. | ||
| OWASP Non-Human Identity Top 10 | NHI-05 — Overprivileged NHI | Agent permissions shape the blast radius when injected content is executed. |
| Recommendation — Scope non-human access tightly and remove standing access wherever possible. | ||
| NIST SP 800-53 Rev 5 | AC-6 — Least Privilege | Least privilege limits damage when an agent is steered by malicious content. |
| IA-5 — Authenticator Management | The issue is not authentication failure, but credential handling still constrains misuse. | |
| Recommendation — Minimize the actions and resources each agent can reach by default. Protect and rotate authenticators that an agent can use to call tools. | ||
| NIST Zero Trust (SP 800-207) | Never trust, always verify | Runtime decisions must verify context before allowing privileged tool use. |
| Recommendation — Verify each high-impact action at the point of use, not just at login. | ||
Practitioner Guidance
What to prioritise: Separate content ingestion from instruction execution. If an agent must consume untrusted text, make sure the system can distinguish retrieved content, user instructions, and system policy before any tool invocation is allowed.
Decision rule: If an action can reach outside the current trust boundary, treat it as a governed decision, not a normal continuation of the model’s workflow. The higher the impact of the tool, the stronger the approval or verification step should be.
What to verify: Confirm that the agent’s effective authority is smaller than the user’s full environment, and that the agent cannot freely translate any consumed content into high-impact actions. Audit whether session context, retrieved documents, and tool permissions are being blended in ways that defeat that separation.
Practitioner takeaway: Permissions are necessary, but they are not a defense against content-driven misuse of those permissions. The control objective is to keep legitimate authority from becoming attacker-directed authority.
Related resources from NHI Mgmt Group
- How should security teams manage permissions for AI agents?
- Why is defining permissions important for AI agents?
- Why do production agents make indirect prompt injection harder to govern?
- Why do indirect prompt injection attacks become more dangerous when AI agents can read and act on external content automatically?
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 October 12, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org