Because those controls change compliance rates, not reachability. They can lower how often a model follows hostile instructions, but they do not stop every harmful action from being attempted or completed. If the agent still has access to the tool, credential, or destination, the consequence remains possible. That is why hardening should be treated as risk reduction, not complete prevention.
Why This Matters for Security Teams
Prompt injection still matters because instruction hierarchy changes which text the model prefers, not what the surrounding system can do after a malicious instruction slips through. In agentic workflows, the real risk is downstream: tool calls, file writes, data exfiltration, and state changes. OWASP’s OWASP Agentic AI Top 10 treats this as an application security problem, not a prompt-quality problem.
The same pattern has shown up in real incidents. Gemini AI Breach — Google Calendar Prompt Injection and Amazon Q AI Coding Agent Compromised both illustrate that hostile instructions become dangerous when an agent can act on them with meaningful authority. NHIMG research shows that 97% of NHIs carry excessive privileges, which is exactly why a model that resists a bad instruction can still create harm if the tool and identity behind it remain too permissive.
Security teams often underestimate this because the attack looks like a language failure, but the failure is actually an authorisation and execution problem. In practice, many security teams encounter prompt injection only after an agent has already used its standing access to retrieve, modify, or transmit something it should never have been allowed to touch.
How It Works in Practice
Instruction hierarchy, system prompts, and prompt hardening can reduce how often a model obeys an injected instruction. They do not, by themselves, constrain the action space of the agent. If the model can still call a database tool, send email, or access a repo, the attacker is trying to turn text into execution. That is why current guidance increasingly treats prompt injection as a control failure across identity, policy, and runtime boundaries, not only a model-safety issue.
Teams that want durable risk reduction usually combine several layers:
- Limit tool scope so each agent can only reach the minimum resources needed for the task.
- Issue short-lived credentials so a compromised session expires quickly.
- Evaluate authorisation at runtime, not only at design time, because context changes per request.
- Separate untrusted input from command channels so content cannot silently become instruction.
- Log tool invocation, destination, and data movement so suspicious chains are visible.
That matters because autonomous systems can chain small permissions into a larger compromise. An injected instruction does not need to fully override the model if it can persuade the agent to use a legitimate connector in an unsafe sequence. Gemini CLI Breach — Silent Code Execution is a good example of how hidden execution can follow from weak separation between instruction and action. The practical answer is to treat the agent as an identity-bearing workload with constrained, verifiable authority, not as a chat session with a safety layer.
These controls tend to break down when agents have broad standing access to production data, long-lived secrets, or chainable tools that can trigger side effects without a second approval step.
Common Variations and Edge Cases
Tighter prompt controls often increase friction, requiring organisations to balance usability against the lower but still nonzero chance that a malicious instruction gets through. That tradeoff becomes especially visible in support agents, coding agents, and multi-step orchestrators where overblocking can hurt legitimate work.
There is no universal standard for this yet, but current guidance suggests treating different attack paths differently. A read-only summarisation agent may only need data minimisation and content filtering, while an execution agent should also have just-in-time credentials, policy checks at each tool call, and explicit separation between retrieval, reasoning, and action. In other words, the question is not whether the model can be “trained to ignore” prompt injection. It is whether the surrounding system can prevent the injected instruction from producing a harmful side effect.
Edge cases matter. Prompt hardening may appear stronger in lab tests than in production because real workflows include attachments, external links, web content, tickets, and previous conversation state. Those inputs expand the attack surface and can reintroduce risk even when the base prompt is well written. For that reason, NHI Management Group treats prompt injection as one control in a broader NHI and agentic governance stack, not as a stand-alone fix. If the agent can still reach high-value credentials or sensitive destinations, the attack remains operationally relevant.
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, CSA MAESTRO and OWASP Non-Human Identity Top 10 address the attack and risk surface, while 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 Agentic AI Top 10 | A03 | Prompt injection is a core agentic application abuse path. |
| CSA MAESTRO | P1 | Agent workflows need layered controls beyond prompt hardening. |
| NIST AI RMF | GOVERN | This is a governance and accountability issue for AI-enabled systems. |
| OWASP Non-Human Identity Top 10 | NHI-03 | Standing secrets and excessive privileges make prompt injection more damaging. |
| NIST Zero Trust (SP 800-207) | SC-4 | Zero trust limits what a compromised or misled agent can reach. |
Assign ownership for agent behavior and require documented risk decisions for tool access.
Related resources from NHI Mgmt Group
- What frameworks should teams use to govern agent prompt injection risk?
- Why do PCI numbers still leak into Slack even when teams use collaboration controls?
- Why does SAST still matter when teams already use code review and dynamic testing?
- What breaks when prompt injection controls are not tested against instruction hierarchy failures?
Deepen Your Knowledge
Reviewed and updated by the NHIMG editorial team on September 2, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org