Tool use changes prompt injection from a text problem into an authority problem. A model that can only talk can cause bad output or leak instructions. An agent with read, write, or device-control permissions can exfiltrate data, publish content, or trigger physical actions. The same sentence now rides on borrowed authority, so impact depends on the capability exposed.
Why This Matters for Security Teams
Prompt injection becomes materially more serious when an AI system can act on behalf of a user, service, or administrator. At that point, the issue is no longer limited to model quality or unsafe text generation. It becomes a control problem: what the agent can reach, what it can change, and what credentials or approvals it can reuse. That is why guidance from OWASP Agentic AI Top 10 is useful here, because the risk is driven by delegated action and tool access, not just model output.
The practical danger is that a malicious instruction can be embedded in content the agent reads, then converted into a real-world action through APIs, ticketing systems, email, code repositories, or cloud consoles. If the agent can see secrets, issue requests, or approve workflows, prompt injection can become data exposure, fraud, service disruption, or privilege abuse. The same attack that once produced a misleading response can now drive a transaction. In practice, many security teams encounter this only after an agent has already taken an unauthorized action, rather than through intentional access design.
How It Works in Practice
Once tool use is enabled, the model is no longer just interpreting language. It is choosing from available actions under some form of delegated authority. That means prompt injection can influence not only what the system says, but what it retrieves, writes, forwards, approves, or executes. The attack often works by hiding instructions in documents, web pages, emails, support tickets, or other content the agent is allowed to process.
The control question is therefore not “Can the model be tricked?” but “What can the model do after it is tricked?” Strong implementations reduce exposure by separating content-reading from action-taking, limiting tool scope, requiring step-up approval for sensitive actions, and preventing direct access to long-lived secrets. This is where identity governance matters: an AI agent should not inherit broad human credentials by default. Where possible, use short-lived, narrowly scoped identities and apply the same discipline expected for OWASP Non-Human Identity Top 10 risk reduction.
- Limit each tool to a single business purpose and a minimal permission set.
- Isolate untrusted content from system instructions and sensitive context.
- Require human confirmation for irreversible or high-impact actions.
- Log tool calls, arguments, identity context, and downstream effects for review.
- Rotate and scope credentials so the agent cannot reuse broad human access.
Security teams should also test for indirect prompt injection, where the malicious instruction is not in the user prompt but in retrieved content. Controls aligned to NIST SP 800-53 Rev 5 Security and Privacy Controls help translate this into access control, audit logging, and system integrity requirements. These controls tend to break down when agents are given broad API tokens, shared service accounts, or direct access to operational systems without action-level authorization gates.
Common Variations and Edge Cases
Tighter tool restrictions often increase operational friction, requiring organisations to balance agent autonomy against safety, latency, and user experience. There is no universal standard for this yet, especially for systems that combine retrieval, tool use, and multi-step planning. Current guidance suggests treating higher-risk actions differently from low-risk ones, rather than giving every tool the same approval path.
The edge cases are where teams usually misjudge the threat. Read-only tools can still be dangerous if they expose secrets, sensitive records, or high-value context that can be used in later steps. Similarly, a “safe” write action can become harmful if it publishes external content, changes workflow state, or triggers notifications based on injected instructions. In regulated identity environments, the risk increases again when the agent is allowed to act under a verified user context, because the authority to act is now tied to identity assurance assumptions; that is where NIST SP 800-63 Digital Identity Guidelines becomes relevant to how strongly the system can trust that delegated context.
Best practice is evolving toward layered safeguards: prompt sanitisation, tool allowlists, human-in-the-loop checkpoints, secret segregation, and continuous monitoring of agent behaviour. The more an agent resembles a privileged operator, the more it should be treated like one. The unresolved area is how much autonomy is acceptable for low-risk workflows; that threshold still depends on organisational risk appetite, data sensitivity, and the blast radius of each tool.
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-63 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Agentic AI Top 10 | Agentic app risks center on tool use, delegated action, and prompt injection. | |
| OWASP Non-Human Identity Top 10 | Tool-using agents rely on non-human identities and scoped machine credentials. | |
| NIST AI RMF | AI risk management covers governance, measurement, and operational safeguards. | |
| NIST CSF 2.0 | PR.AC-4 | Prompt injection becomes an access control issue when tools are exposed. |
| NIST SP 800-63 | IAL/AAL/FAL | Delegated actions may depend on how strongly the user's identity is verified. |
Constrain agent actions, add approvals, and test for indirect prompt injection paths.
Related resources from NHI Mgmt Group
- Why does prompt injection become more dangerous when a model can use tools?
- Why do AI agents make prompt injection more dangerous than chat-only tools?
- Why do reused credentials and exposed management ports become more dangerous when attackers use AI?
- Why do indirect prompt injection attacks become more dangerous when AI agents can read and act on external content automatically?