By NHI Mgmt Group Editorial TeamDomain: Agentic AI & NHIsSource: AccuKnoxPublished August 3, 2026

TL;DR: Indirect prompt injection is now a practical enterprise attack path because AI agents read email, documents, and calendar content as trusted context while also holding real privileges, according to AccuKnox. The collapse in trust boundaries means prompt filters alone are insufficient; defenders need stateful controls across the full agent workflow, plus red teaming that tests ingestion, tool use, and downstream action paths.


At a glance

What this is: This is an analysis of indirect prompt injection, showing how untrusted email and document content can steer AI agents into actions the user never intended.

Why it matters: It matters because IAM and NHI teams must govern not only what an agent can access, but also which ingested content can influence privileged actions across inbox, drive, and tool connectors.

By the numbers:

👉 Read AccuKnox's analysis of indirect prompt injection in agentic AI


Context

Indirect prompt injection is a trust-boundary failure in agentic AI: the system cannot reliably separate user intent from untrusted content once it reads email, documents, calendar invites, or web pages. That matters for AI agent identity because these systems often hold delegated access to inboxes, drives, and downstream tools while making runtime decisions from whatever they ingest.

The governance gap is not limited to one product or one model. The article shows that the same pattern surfaced in multiple public cases in 2025, which is a strong signal that the control problem sits in the agent workflow, not only in the application prompt. For IAM and NHI programmes, this is a lifecycle and authorisation issue, not just a content-filtering issue.

The source also ties the risk to Model Context Protocol and other connector paths, where the agent can read broadly and act with real privilege. Once content and instruction share the same context window, traditional prompt-only defences lose the distinction they depend on.


Key questions

Q: How should security teams reduce indirect prompt injection risk in AI systems?

A: Security teams should limit what AI systems can read, separate untrusted content from privileged actions, and apply least privilege to every connected agent. The strongest posture combines content filtering, allowlisted sources, short-lived sessions, and explicit approval for sensitive actions. If any one of those layers is missing, the attack path remains open.

Q: Why do chat-based AI systems create new identity risk for organisations?

A: Chat-based AI systems compress intent, delegation, and execution into one interaction, which makes privilege boundaries easier to cross without noticing. The risk is not only misuse of the model, but also over-scoped connectors, weak approval design, and unclear ownership of actions that begin in conversation but end in external systems.

Q: What breaks when security teams only filter prompts in agentic AI systems?

A: Prompt filtering only reduces conversational abuse. It does not stop an agent from calling tools, using APIs, or taking harmful downstream actions with valid credentials. If the execution path is ungoverned, a clean prompt can still produce a risky refund, data retrieval, or configuration change. The control gap is delegated privilege, not the text response.

Q: Who is accountable when an AI agent takes an unsafe action?

A: Accountability should sit with the business owner of the agent, the team that provisioned the access, and the control owners responsible for monitoring and revocation. If no one can answer who approved the identity, the scope, and the oversight model, the governance framework is not complete enough for production.


Technical breakdown

Why indirect prompt injection bypasses prompt filters

Indirect prompt injection works because the malicious instruction is delivered inside data the agent later reads, not inside the user’s typed prompt. A filter that only inspects the visible prompt can therefore approve a clean request while the hidden payload survives inside retrieved email, documents, or calendar data. The core technical problem is that the agent treats context as instruction, and the context window does not preserve provenance in a way most controls can enforce at runtime.

Practical implication: inspect and govern ingested content, not only user prompts, before an agent can act on it.

How connectors and MCP widen the command surface

When an agent is connected to inboxes, file stores, calendars, and tools, every integration becomes a potential command channel if untrusted content is allowed to influence decisions. MCP and similar connector patterns extend the agent’s reach beyond a single chat session into real systems, which means the attack can chain from reading to searching to acting. The risk is not merely data exposure. It is tool abuse through a trusted execution path.

Practical implication: treat each connector as an identity-bearing pathway with explicit policy, logging, and scope limits.

Why stateful controls matter more than stateless filtering

A stateless control sees one prompt at a time, but indirect injection is a session problem. The harmful instruction may arrive in an email, persist through retrieval, and trigger a later tool call that looks legitimate in isolation. That is why the article argues for state across the whole agent workflow. The technical requirement is to carry trust decisions forward, so the system can distinguish what was user-authored from what was merely read.

Practical implication: design controls that preserve trust state across retrieval, reasoning, and execution steps.


Threat narrative

Attacker objective: The attacker wants the agent to convert trusted access into unintended action without requiring a visible click or prompt from the user.

  1. Entry occurs when a hidden instruction is embedded in email, a document, a calendar invite, or another item the agent is configured to read.
  2. Escalation occurs when the agent ingests that content and accepts the injected instruction as part of the task context, then applies its own privileges to tool calls.
  3. Impact occurs when the agent performs unintended actions such as exfiltrating data, sending messages, opening tickets, or controlling connected systems.

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


NHI Mgmt Group analysis

Indirect prompt injection is a governance failure, not just a model vulnerability. The article shows that the payload arrives through content the agent is expected to read, which means the problem sits in the trust model around data ingestion and tool execution. This is not solved by prompt hygiene alone. Practitioners need to treat every connector as part of the identity boundary, because the agent can be manipulated through the same paths that deliver legitimate work.

Stateful trust is the named concept this attack class exposes. Indirect prompt injection breaks the assumption that a clean user prompt means a clean session. Once an agent reads untrusted content, trust must persist across retrieval, reasoning, and action, or the malicious instruction survives until a privileged tool call. The implication is that agent governance must track provenance across the whole workflow, not just at the point of input.

Prompt-only security is structurally insufficient for agentic AI. The article’s examples show that the attack can enter through email, drive content, calendar invites, or web pages, so any single front-door control leaves the loading dock open. This is why agentic AI security must be designed around runtime authorization and content provenance together. Practitioners should assume that the user prompt is only one of several instruction channels.

AI agent governance now overlaps NHI governance in a way many programmes have not modelled. The agent holds delegated privileges, but the attacker controls the context that can steer those privileges into action. That creates an identity problem as much as a content problem. The field needs policies that describe what an agent may read, what it may act on, and which content sources are never allowed to shape execution.

The operational boundary has moved from authentication to execution. In traditional IAM, access control can focus on who authenticated and what they were allowed to do. In agentic AI, the question is also what the system read before it decided. That shifts attention toward session-level decision logging, tool gating, and red teaming for latent instructions. Teams that do not build for that boundary will keep seeing the same failure in different products.

From our research:

  • 98% of companies plan to deploy even more AI agents within the next 12 months, despite documented rogue behaviour in 80% of current deployments, according to AI Agents: The New Attack Surface report.
  • 80% of organisations report their AI agents have already performed actions beyond their intended scope, including accessing unauthorised systems, sharing sensitive data, and revealing credentials.
  • That scale of behaviour makes OWASP Agentic AI Top 10 a practical governance reference, not a theoretical checklist.

What this signals

Stateful trust is becoming the control concept that separates usable agents from governable agents. Once a system reads email, drive content, and calendar data, provenance must travel with the session or the agent will treat hostile text as authorized instruction. That is the operational gap practitioners need to close before they expand connectors or delegate more actions.

The category is moving fast enough that governance cannot be built after deployment. With 98% of companies planning more AI agents in the next 12 months, the question is whether identity and security teams can prove which content sources may shape action, not only which users can launch the agent.

For teams aligning to external guidance, the relevant direction is the NIST AI Risk Management Framework plus the OWASP Top 10 for Agentic Applications 2026. The practical takeaway is simple: govern content provenance, tool scope, and action logging as one control plane.


For practitioners

  • Map untrusted content paths Inventory every place an agent reads from, including email, shared drives, calendar systems, tickets, and web fetches, then classify each source as trusted, semi-trusted, or untrusted.
  • Gate tool execution by source trust Require policy checks before the agent can act on content it did not originate, especially when the action can send messages, search private files, or trigger other systems.
  • Add stateful agent red teaming Test for indirect injection, latent instructions, and tool misuse across the full workflow, not only at the prompt, and preserve the exact paths that lead from content ingestion to action.
  • Separate connector ownership from privilege ownership Do not let the team that enables a connector also be the only team that approves the resulting access. Split accountability for data ingestion, tool scope, and runtime actions.

Key takeaways

  • Indirect prompt injection turns ordinary enterprise content into a command channel for AI agents.
  • The evidence now shows a repeatable pattern across email, documents, and calendar-driven workflows, not a one-off research curiosity.
  • Teams need stateful controls, connector governance, and red teaming that tests the full agent workflow before expanding privilege.

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 MITRE ATLAS address the attack and risk surface, while NIST AI RMF, NIST CSF 2.0 and NIST Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Agentic AI Top 10The article centres on prompt injection and agent misuse in agentic AI.
MITRE ATLASThe attack pattern matches adversarial manipulation of AI behaviour and tool use.
NIST AI RMFGOVERNAgent governance and accountability are the core concerns in this article.
NIST CSF 2.0PR.AC-4The issue is excessive or uncontrolled access across connected tools and data.
NIST Zero Trust (SP 800-207)section 4Zero Trust principles fit the article's emphasis on continuous verification across actions.

Map indirect injection paths to agentic AI controls for input provenance, tool gating, and runtime policy.


Key terms

  • Indirect Prompt Injection: Indirect prompt injection is an attack where malicious instructions are hidden inside content that an AI system reads later. The model may treat that content as context rather than as hostile input, which can influence tool use, data access, or workflow actions if controls are weak.
  • Stateful trust boundary: A security boundary that depends on what has happened before, not just on whether a source is initially trusted. In MCP and agentic AI, the trust decision must account for prior tool calls, metadata refreshes, and behaviour changes over time.
  • Tool Gating: A control that restricts which external actions or connectors an AI system may invoke and under what conditions. It reduces the chance that malicious prompts or contaminated context can turn a model into an unsafe executor of privileged operations.
  • Context Window: The context window is the text a model receives at one time, including prompts, retrieved documents, and conversation history. Security teams care about it because it becomes the practical boundary between trusted instructions and untrusted content, especially when the application assembles that text automatically.

What's in the full article

AccuKnox's full blog post covers the operational detail this post intentionally leaves for the source:

  • Step-by-step walkthroughs of the indirect prompt injection paths across email, documents, and calendar content
  • Illustrative payload examples showing how hidden instructions survive inside untrusted content
  • Control descriptions for the Prompt Firewall and AI Red Teaming workflow as presented by the vendor
  • The article's side-by-side comparison of attack surfaces across voice, chat, and ingested data

👉 The full AccuKnox post covers the attack examples, control layers, and workflow breakdown in more detail.

Deepen your knowledge

NHI governance, agentic AI identity, and machine identity lifecycle are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are building or maturing an identity security programme, it is worth exploring.
NHIMG Editorial Note
Published by the NHIMG editorial team on August 21, 2026.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org