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.
It posts the secrets where the attacker can read them.
What goes wrong:
- An attacker hides instructions inside an ordinary support ticket.
- A developer asks the assistant to summarise new tickets.
- The assistant obeys the ticket and reads the private tables.
- It posts the secrets where the attacker can read them.
With the safeguard:
- An attacker hides instructions inside an ordinary support ticket.
- The ticket text reaches the assistant as data to summarise, never as orders.
- Its tools cannot reach private tables, so the injected request is refused.
- 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. 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. 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.
Real incidents with this pattern
Documented incidents first. Each links to its public source.
Prompt injection makes GitHub Copilot turn off its own confirmations and run commands (CVE-2025-53773)
Instructions planted in content the agent reads could make GitHub Copilot write "chat.tools.autoApprove": true into the project's .vscode/settings.json, which turns off all user confirmations.
Safeguard: Never let an agent change its own permissions
Prompt injection in a README plus weak allow-list matching lets Gemini CLI silently run attacker commands (2025)
Researchers hid a prompt injection inside a README.md (in the text of a software license) so that Gemini CLI, asked only to inspect a codebase, would request shell commands.
Safeguard: Match allow-listed commands exactly
Hidden instructions in a support ticket make an MCP-connected assistant expose private SQL tables (Supabase MCP, 2025)
General Analysis showed that hidden instructions in a customer support ticket could make a developer's MCP-connected assistant query a private table of integration tokens.
Safeguard: Give agents least-privilege, read-only database roles
EchoLeak: zero-click prompt injection lets a crafted email exfiltrate Microsoft 365 Copilot data (2025)
EchoLeak (CVE-2025-32711, CVSS 9.3) is a zero-click vulnerability in Microsoft 365 Copilot in which a crafted email could trigger indirect prompt injection.
Safeguard: Isolate retrieved untrusted content from privileged context
Prompt injection in a public GitHub issue makes an MCP-connected agent leak private repository data (2025)
Invariant Labs showed that a malicious instruction placed in an issue on a public repository could be read by an agent connected through the GitHub MCP server.
Safeguard: Scope agent credentials per task and repository
More records with this pattern5 security advisories · 3 illustrative scenarios
Showing 8 of 8
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.
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…
mcp-video-analyzer issue could let injected instructions steer its AI features
mcp-video-analyzer 0.2.0 before 0.10.1 contains a server-side request forgery vulnerability that allows attackers to reach internal addresses by supplying any http(s) URL ending in a video extension.
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…
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…
Real-Time Message Cache Inconsistency During Large Redis Cluster Migration
Migrating message caches between Redis clusters caused race conditions and state drift between cache and Cassandra persistence layer.
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.
Distributed Consensus Split-Brain State Divergence
Asymmetric network partition caused two leader nodes to accept client writes simultaneously, corrupting ledger state.
In the standards
CollectSEA's mapping; not an official determination by the standards bodies.
- ASI01Agent Goal HijackOWASP Agentic Top 10
- ASI02Tool Misuse and ExploitationOWASP Agentic Top 10
- ASI06Memory and Context PoisoningOWASP Agentic Top 10
- LLM01Prompt InjectionOWASP LLM Top 10
- LLM02Sensitive Information DisclosureOWASP LLM Top 10
- AC-4Information Flow EnforcementNIST SP 800-53
- SI-10Information Input ValidationNIST SP 800-53
- MAP 5.1Estimate impacts from past uses and public incident reportsNIST AI RMF
- Goal 3Reducing entire classes of vulnerabilityCISA Secure by Design
- CWE-1427Improper Neutralization of Input Used for LLM PromptingCWE
- MITRE ATLAS AML.T0051 — LLM Prompt Injection