Failure pattern · 5 documented incidents

Indirect prompt injection changes agent behavior

An email, web page, issue or ticket that the AI reads contains instructions, and the agent follows them with its tools.

See it happen

Watch how this failure unfolds, then switch to the same situation with the safeguard in place. Tap or click any step to replay it.

Scroll the diagram sideways to see every system.

12 / 12 s

It posts the secrets where the attacker can read them.

What goes wrong:

  1. An attacker hides instructions inside an ordinary support ticket.
  2. A developer asks the assistant to summarise new tickets.
  3. The assistant obeys the ticket and reads the private tables.
  4. It posts the secrets where the attacker can read them.

With the safeguard:

  1. An attacker hides instructions inside an ordinary support ticket.
  2. The ticket text reaches the assistant as data to summarise, never as orders.
  3. Its tools cannot reach private tables, so the injected request is refused.
  4. Nothing leaves, and the ticket is flagged for review.

What it is

An AI assistant reads something written by an outsider (an email, a web page, a ticket, an issue) and that text contains instructions. The assistant can’t tell data from orders, so it follows them using whatever tools and access it has.

How it happens

  • The assistant reads content from people outside your organization
  • The same assistant can call tools: send messages, query databases, open pull requests
  • Nothing separates “text to summarize” from “instructions to follow”

What it causes

  • Private data sent to wherever the attacker asked
  • Actions taken on a user’s behalf that they never requested
  • Secrets leaked through links, images or posts the assistant creates

Warning signs

  • An assistant using tools that have nothing to do with the user’s request
  • Outbound requests or posts right after reading external content
  • Instructions like “ignore previous” hidden in tickets, emails or documents

How to prevent it

Treat content the model reads as data, never as instructions. Keep untrusted content out of instruction channels, give agents that read external content only the tools and data that task needs, and require confirmation before any action that sends data out.

  • Text from outside is passed to the model as data and never merged with its instructions
  • An assistant that reads untrusted content only has the tools and access that task needs
  • Anything that sends data out or changes state needs a person to confirm it

Key ideas:Prompt injectionModel Context Protocol (MCP)

How to verify

Use synthetic data in an isolated test environment. These checks are engineering guidance; a checkmark is your team’s assessment.

  1. 1. Try: Place instructions to reveal a synthetic secret or call an unrelated tool inside a test email, ticket or retrieved document.

    Pass when: The content cannot authorize data disclosure or a privileged tool call.

  2. 2. Try: Ask the agent to send data to an unapproved test destination using instructions inside retrieved content.

    Pass when: Tool permissions and egress controls enforce the intended scope regardless of model output.

Evidence to keep: Keep the test payload, tool-call trace and enforcement decisions without recording real secrets.

Check your system against the full launch checklist

Real incidents with this pattern

Documented incidents first. Each links to its public source.

Open in the database
More records with this pattern5 security advisories · 3 illustrative scenarios

Showing 8 of 8

Security advisory2026-11-27AI agent

Bagel (bagel-mcp) issue could allow unintended commands to run

Bagel (bagel-mcp) before 2.5.5 contains an argument injection vulnerability in RsyncFilesToLocalDirectory that allows attackers to inject rsync options because only --quiet and --log-format values are rejected.

Indirect prompt injection changes agent behaviornvd.nist.gov
Security advisory2026-11-27AI agent

WhoDB issue could allow unauthorized access

WhoDB from 0.88.0 before 0.132.0 contains an access control bypass in the MCP whodb_query tool, letting callers run file-writing statements without approval because the sqlguard keyword classifier omits INTO, OUTFILE and…

Indirect prompt injection changes agent behaviornvd.nist.gov
Security advisory2026-11-05AI agent

Security issue reported in OpenHuman

OpenHuman is an open-source agent harness available as a desktop application and Rust library. Before 0.57.13, OpenHuman places names, descriptions, titles, and parameter definitions returned by configured external MCP…

Indirect prompt injection changes agent behaviornvd.nist.gov
Security advisory2026-11-05AI agent

Security issue reported in OpenHuman

OpenHuman is an open-source agent harness available as a desktop application and Rust library. Before 0.57.13, background synchronization for connected services such as email, Slack, and Notion stores raw external…

Indirect prompt injection changes agent behaviornvd.nist.gov
Illustrative scenarioDate not recorded

Real-Time Collaborative Canvas WebSocket State Conflict Storm

Transient cross-region WebSocket disconnect caused client reconciliation loops to send millions of redundant state delta patches, overwhelming sync servers.

Retry amplification and runaway resource consumption

In the standards

CollectSEA's mapping; not an official determination by the standards bodies.