Subscribe to the Non-Human & AI Identity Journal
Home FAQ AI Security What do security teams get wrong about prompt…
AI Security

What do security teams get wrong about prompt injection in agentic workflows?

← Back to all FAQ
By NHI Mgmt Group Editorial Team Updated August 2, 2026 Domain: AI Security

They often treat prompt injection as an input validation problem only. In reality, the risk appears when hostile context is converted into action, especially if the agent can run commands, call tools, or make network requests. The control objective is to prevent unsafe action, not just detect bad text.

Why This Matters for Security Teams

Prompt injection becomes a security issue when an agent treats untrusted text as a command source, not just as content. That changes the risk from misleading output to unauthorised action: data exfiltration, unsafe API calls, privilege misuse, or workflow abuse. Security teams often focus on prompt filters and miss the larger trust boundary around tool use, memory, retrieval, and orchestration. Guidance from the OWASP Agentic AI Top 10 and the NIST AI Risk Management Framework both point toward governing system behaviour, not just text cleanliness.

The operational mistake is assuming the model will reliably distinguish instructions from hostile content on its own. In agentic workflows, retrieved documents, emails, tickets, web pages, and chat messages can all become active inputs if the agent is allowed to reason over them and act on the result. That means prompt injection is really a control-plane problem across identity, authorisation, and execution boundaries. In practice, many security teams encounter prompt injection only after an agent has already queried a sensitive system or sent an unintended request, rather than through intentional threat modelling.

How It Works in Practice

Prompt injection succeeds when malicious instructions are placed inside content the agent is designed to read, retrieve, summarise, or transform. The attack does not need to “break” the model. It only needs the workflow to grant the model enough trust to convert the malicious instruction into a tool call, file access, message, or downstream action. The core defence is to separate interpretation from execution and to constrain what the agent may do after it reasons.

Practically, teams should define explicit policy gates before any action is taken. That usually means allowlisting tools, enforcing per-tool scopes, requiring human approval for high-impact actions, and removing ambient access to secrets or broad network reach. Logging should capture the prompt, retrieved context, tool selection, and final action so the organisation can reconstruct how a malicious instruction propagated. The MITRE ATLAS adversarial AI threat matrix is useful for mapping attack paths, while the CSA MAESTRO agentic AI threat modeling framework helps structure controls around agents, tools, and trust boundaries.

  • Restrict tool access by task, environment, and sensitivity level.
  • Separate untrusted content from system instructions and action policies.
  • Use short-lived credentials and narrow scopes for any agent that can act externally.
  • Validate outputs before execution, especially when actions affect money, identity, code, or production systems.
  • Monitor for unexpected tool chaining, repeated retrieval, and attempts to exfiltrate context.

These controls tend to break down when agents are given broad SaaS access and long-lived credentials because the workflow can transform a single poisoned input into many authorised actions.

Common Variations and Edge Cases

Tighter action controls often increase friction, requiring organisations to balance agent autonomy against oversight and throughput. That tradeoff becomes more visible in environments where the agent is expected to handle support tickets, generate code, or operate across multiple business systems without human review. Best practice is evolving, and there is no universal standard for how much autonomy is acceptable for each class of task.

One common edge case is retrieval-augmented generation, where the injected text arrives through a document store or search index rather than a user chat box. Another is multi-agent orchestration, where one agent’s output becomes another agent’s input and malicious instructions can propagate across the chain. A third is memory poisoning, where the agent stores hostile context and later reuses it as if it were trusted state. The OWASP Top 10 for Agentic Applications 2026 is particularly relevant here because it frames these failures as system design issues, not just prompt hygiene. For high-risk use cases, the practical question is not whether the model can recognise malicious text, but whether the workflow can stop that text from becoming an instruction with authority.

Where regulated or sensitive data is involved, the safest pattern is to treat every external input as hostile until policy checks prove otherwise, especially when the agent can move data across trust zones.

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, MITRE ATLAS and CSA MAESTRO address the attack and risk surface, while NIST AI RMF and NIST AI 600-1 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Agentic AI Top 10Agentic prompt injection is a core risk in the agentic application threat model.
NIST AI RMFAI RMF frames prompt injection as a govern, map, measure, and manage risk issue.
MITRE ATLASATLAS helps map adversarial AI tactics that turn injected text into harmful actions.
CSA MAESTROMAESTRO is directly relevant to threat modelling agent, tool, and orchestration boundaries.
NIST AI 600-1The GenAI profile adds practical control guidance for generative system risks.

Classify prompts, tools, and memory as attack surfaces and constrain unsafe actions before execution.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on August 2, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org