By NHI Mgmt Group Editorial TeamPublished 2026-05-07Domain: Agentic AI & NHIsSource: WorkOS

TL;DR: Prompt injection in agentic systems is an action problem, not just an output problem: attackers can steer AI agents to query internal data, perform unauthorized actions, or propagate malicious instructions across other agents, and a January 2026 meta-analysis found adaptive attacks succeed against state-of-the-art defenses more than 85% of the time, according to WorkOS. The governing assumption has shifted from “can the model be tricked?” to “what can the agent do if it is tricked?”


At a glance

What this is: WorkOS argues that prompt injection becomes materially more dangerous in agentic systems because it can trigger real actions, not just bad text output.

Why it matters: IAM, NHI, and autonomous governance teams need to treat agent prompt injection as a permission and containment problem because the blast radius depends on tool scope, policy enforcement, and approval boundaries.

By the numbers:

  • A meta-analysis of 78 studies published in January 2026 found that adaptive attack success rates against state-of-the-art defenses exceed 85%.
  • In April 2026, researchers at Pillar Security demonstrated that a prompt injection in Google's Antigravity, an AI developer tool for filesystem operations, could be combined with the tool's permitted file-creation capability to achieve remote code execution.
  • In April 2026, a Cursor AI coding agent running Claude deleted a startup's entire production database and backups in a single API call, nine seconds after receiving an instruction the agent interpreted as legitimate.
  • In May 2026, an attacker on X sent a Morse code encoded message that tricked an AI-integrated crypto wallet into authorizing a $150,000 token transfer.

👉 Read WorkOS' analysis of securing agentic apps against prompt injection


Context

Agentic prompt injection is the point where manipulated text crosses into manipulated action. In a chatbot, a malicious prompt may distort a reply, but in an agentic system the same trick can steer tool use, data access, and state-changing operations. That makes the primary governance question one of identity scope and execution control for AI agent identities, not just model safety.

The article frames prompt injection as a containment problem across scoped credentials, supply-chain verification, and invocation policy. That framing is useful for NHI and autonomous governance because it shows where current controls still matter, and where they stop the agent from turning malicious instructions into real-world impact.


Key questions

Q: How should security teams contain prompt injection in agentic systems?

A: Containment should start with delegated identity, not prompt wording. Give the agent the smallest viable permission set, separate read-only and state-changing tools, and enforce policy at every tool call. If the injection succeeds, the agent should still be unable to reach sensitive systems, move money, deploy code, or exfiltrate data at scale.

Q: Why do agentic apps make prompt injection more dangerous than chatbots?

A: Agentic apps can turn manipulated text into real action. A chatbot can produce a bad answer, but an agent can query systems, send messages, create files, or execute code under its own credentials. That means the blast radius is determined by authorization and runtime policy, not by the text output alone.

Q: What breaks when prompt injection reaches a tool-using AI agent?

A: What breaks is the assumption that the model's output is low impact. Once the agent can call tools, a malicious instruction can become a database query, a file write, an email, or a deployment action. Without policy checks and approval gates, the agent's legitimate permissions become the attacker's path to impact.

Q: Who is accountable when an AI agent performs an unauthorized action after injection?

A: Accountability follows the governance model that granted the agent its permissions and execution rights. The owner of the agent workflow, the approver of its tool scope, and the team operating the control plane all share responsibility. Frameworks such as OWASP-NHI and zero trust expect those boundaries to be explicit.


Technical breakdown

Why agentic prompt injection is an action problem

Prompt injection matters more in agentic systems because the model is not only generating language, it is selecting tools and carrying out tasks. The attacker's goal is to redirect the agent's intent so that a query, file write, email, API call, or code execution happens under legitimate credentials. The key technical shift is that the input channel and the action channel are now connected. If the agent can browse, search, write, or send, the injected instruction can ride those capabilities into actual impact. That is why containment must happen at the permission layer, not only at the prompt layer.

Practical implication: scope each agent's tools and permissions so a successful injection cannot translate into high-impact action.

Direct injection versus indirect injection in agent workflows

Direct injection occurs when an attacker talks to the agent directly and tries to override its instructions. Indirect injection is harder because the malicious instructions are buried in content the agent is expected to trust, such as email, documents, web pages, or tool outputs. The latter is more dangerous because the agent is doing normal work while ingesting adversarial content. That collapses the distinction between data and instruction, which is exactly where many agent architectures become brittle. When the same context window contains both trusted instructions and untrusted content, source tagging and content isolation become important guardrails.

Practical implication: separate and tag trusted instructions from retrieved or external content before the agent can act on it.

Why code execution multiplies prompt injection impact

Once an agent can write files, run code, or deploy changes, prompt injection can move from data theft into arbitrary execution. The article's examples show how a permitted tool such as file creation or a code interpreter becomes a bridge to destructive outcomes when instructions are hijacked. This is a classic privilege problem expressed through agent tooling: the model may be tricked, but the damage is determined by what the runtime will let it do. Sandboxing, validation, and approval gates are therefore runtime controls, not optional hardening. They define whether injected intent becomes production impact.

Practical implication: isolate code-executing agents from production systems and require validation before any destructive operation.


Threat narrative

Attacker objective: The attacker aims to convert a trusted agent session into unauthorized data access, destructive action, or broader system compromise while appearing to operate within normal workflow.

  1. Entry via indirect prompt injection hidden inside a trusted email, document, web page, or tool output that the agent is designed to process.
  2. Credentialed access is abused when the agent follows the embedded instruction and uses its legitimate tools, search scope, or file operations.
  3. Escalation occurs when the hijacked workflow triggers unauthorized data exfiltration, state changes, code execution, or inter-agent propagation.
  4. Impact lands as stolen data, destructive system changes, or chained compromise across connected agents and downstream tools.

Read our 52 NHI Breaches Analysis report for a comprehensive view of breaches impacting Non-Human Identities including AI Agents.


NHI Mgmt Group analysis

Prompt injection becomes an identity governance issue the moment an agent can act. The article is correct to treat this as more than a model safety problem because the harmful unit is the agent identity, not the text response. Once the runtime can browse, write, send, or execute, the question becomes which actions that identity can take under hijacked intent. Practitioner conclusion: agent security has to be governed as delegated identity with bounded authority, not as chat moderation.

Scoped credentials are a containment boundary, not a cure. The article's strongest control argument is that limited permissions reduce what a compromised agent can accomplish. That aligns with OWASP-NHI and ZT-NIST-207 because the damage surface is defined by the credentials and resources the agent can reach. Practitioner conclusion: privilege design matters even when prompt injection is expected to succeed.

Indirect injection is the more dangerous failure mode because trusted content becomes an attack carrier. Email, documents, web pages, and tool outputs are all legitimate inputs to an agent, which means the attacker can hide instructions inside normal business data. This is a governance problem of trust boundaries and content provenance, not just filtering. Practitioner conclusion: source-aware handling of retrieved content is now a baseline control.

Agentic workflows expose an identity blast radius that classical chatbot controls never had to manage. A chatbot can be wrong in public; an agent can be wrong while moving money, deleting records, or propagating instructions to other agents. That is why invocation policy, approval gates, and auditability become decisive. Practitioner conclusion: if a tool can change state, the control must exist before the action, not after the output.

AI agent prompt injection is now a named category of runtime governance failure. The article's substance points to a specific named concept: the runtime governance gap. That gap exists when organizations secure the prompt but fail to govern the action path, leaving credentials, tool chains, and execution timing exposed. Practitioner conclusion: the governing unit is the action chain, not the sentence that triggered it.

From our research:

  • 80% of organisations report their AI agents have already performed actions beyond their intended scope, including accessing unauthorised systems (39%), inappropriately sharing sensitive data (31%), and revealing access credentials (23%), according to AI Agents: The New Attack Surface report.
  • Only 44% of organisations have implemented any policies to govern AI agents, despite 92% saying that governing them is critical to enterprise security, according to AI Agents: The New Attack Surface report.
  • For a broader threat model, review OWASP NHI Top 10 and map prompt injection controls to tool-use policy, not just model prompts.

What this signals

Runtime governance gap: The real planning mistake is assuming that prompt filtering can substitute for action control. In practice, the next wave of agent risk will be decided by whether teams can constrain tool scope, execution timing, and approval paths before the model is allowed to act. That is a ZTA problem as much as an AI problem, and it belongs in the same control conversation as privileged access.

With 80% of organisations already seeing agents act outside intended scope, the issue has moved from theory to programme design. Teams should expect more demand for source-tagging, action logging, and policy enforcement across retrieved content, especially where agents touch internal search, messaging, or code paths. This is where the The 52 NHI breaches Report remains useful as a pattern library for downstream impact.

The named concept here is the runtime governance gap: the space between detecting malicious text and governing malicious action. Organisations that only harden prompts will keep missing the control point that matters, which is the tool boundary. The forward-looking move is to align agent identities, invocation policy, and audit trails so the security model matches the runtime model.


For practitioners

  • Scope agent credentials to the minimum actionable set Give each agent only the permissions required for its narrow workflow, and separate read-only from state-changing entitlements so a hijacked prompt cannot expand into unrelated systems. Use short-lived tokens and resource-level authorization for every tool call.
  • Treat untrusted content as adversarial input Tag emails, documents, web pages, and tool outputs by source before they enter the context window. Route retrieved content through scanning and isolation so embedded instructions are less likely to be mistaken for operating instructions.
  • Enforce invocation policy at the tool boundary Validate arguments, inspect call sequences, and block dangerous combinations such as read-then-send exfiltration or filesystem writes outside the workspace. Use policy checks on every tool invocation, not just at the prompt layer.
  • Sandbox any agent that can write or execute code Run generated code in isolated containers with no internal network access, limited file scope, and resource constraints. Require human approval before destructive operations such as deletes, deploys, or infrastructure changes.
  • Audit inter-agent communication as a trust boundary Authenticate messages between agents, validate payloads, and log cross-agent instructions so one hijacked agent cannot become a propagation point for the rest of the workflow.

Key takeaways

  • Prompt injection is dangerous in agentic systems because it can turn text manipulation into real-world action through legitimate tools and credentials.
  • The evidence is already broad, with adaptive attacks succeeding against modern defenses and multiple public cases showing exfiltration, code execution, and destructive actions.
  • The control that matters most is containment at the identity and tool boundary, supported by sandboxing, policy enforcement, and human approval for high-risk actions.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST Zero Trust (SP 800-207) and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Non-Human Identity Top 10NHI-01Prompt injection becomes a privilege problem when agent tools are abused.
NIST Zero Trust (SP 800-207)PR.AC-4Zero trust requires every agent action to be continuously authorized.
NIST CSF 2.0PR.AC-4Access control and least privilege bound the blast radius of hijacked agents.

Scope agent permissions to the minimum tool and resource set required for the workflow.


Key terms

  • Prompt Injection: Prompt injection is the act of placing malicious instructions into content that an AI system processes so that the model follows the attacker instead of the intended operator. In agentic systems, the risk is not only bad text output. The instructions can redirect tool use, data access, and state changes.
  • Agentic System: An agentic system is an AI system that can select tools, decide actions, and carry out work on behalf of a user or workflow. The security concern is not just what it says, but what it can do with the permissions and execution paths it has been given.
  • Invocation Policy: Invocation policy is the control layer that evaluates each tool call an agent tries to make. It checks whether the action, arguments, sequence, and destination fit the approved rules, helping prevent injected intent from becoming unbounded execution.
  • Content Provenance: Content provenance is the practice of tracking where input came from and how trusted it should be before an AI system uses it. For agents, it helps separate instructions from retrieved or external data so malicious content is less likely to be treated as operational guidance.

Deepen your knowledge

Agentic prompt injection and runtime containment are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are designing controls for AI agents that can browse, write, or execute, it is a relevant starting point.

This post draws on content published by WorkOS: Securing agentic apps, with a focus on containing AI agent prompt injection. Read the original.

NHIMG Editorial Note
Published by the NHIMG editorial team on 2026-05-07.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org