Topic 3 of 5 · 4 min read
Exfiltration incidents in shipped AI products
Goal: Trace a published exfiltration incident step by step and name which leg of the trifecta let the data leave.
Data theft through AI agents is not theoretical: security researchers have shown it against assistants, coding tools and tool servers that real people use. Reading these cases as a chain of three steps teaches you to spot the pattern in your own system.
Check yourself · 1 of 3
In the 2025 GitHub MCP server case, which text did the attacker control?
Why it matters
Each published case follows the same shape: attacker text enters through one door, the model reads private data through another, and data leaves through a third. If you can name the legs in a known case, you can name them in a design review.
How to trace an incident
Write three lines for every case:
- Entry. Where did the attacker's text arrive?
- Access. What private data could the session reach?
- Exit. How did the data leave?
The exit is usually the leg that the vendor then closed.
Cases to study
- Markdown image leaks in chat assistants. Researchers such as Johann Rehberger showed assistants rendering an image whose address held conversation data. Entry: a web page or document the user asked about. Access: the chat history. Exit: the automatic image request. Vendors fixed this by limiting where images may load from.
- Slack AI, 2024. A message in a public channel could steer the assistant into pulling text from private channels the attacker could not read, and presenting it in a link. Entry: a public channel message. Access: private channel content the user could see. Exit: a crafted link.
- GitHub MCP server, 2025. Invariant Labs showed that a malicious issue in a public repository could instruct a coding agent, which also had access to the user's private repositories, to copy private details into a public pull request. Entry: a public issue. Access: private repositories through the user's token. Exit: a public pull request.
- Microsoft 365 Copilot "EchoLeak", 2025. A crafted email could lead the assistant to leak data from the user's context with no user action. Entry: inbound email. Access: Copilot's view of the user's data. Exit: a request built from the response.
Simon Willison's exfiltration tag collects many more, and the Embrace The Red blog documents the technique details. Check the dates there: vendors patch individual holes, and the design pattern stays.
Before and after
Before: "That was a bug in one product. Ours is different."
After: "In the GitHub case the exit was a public pull request. Our agent can open pull requests and read private repositories, and it reads public issues. Same three legs."
What goes wrong
- Teams treat each incident as a product bug and not as a design pattern.
- Teams copy only the vendor's patch, such as the image allow-list, and leave the other exits.
- Teams read the headline but never trace the chain, so they cannot map it to their own tools.
Examples
Trace the GitHub MCP case
Entry: a malicious issue in a public repository. Access: the user's token reaches private repositories. Exit: the agent writes private details into a public pull request. Leg removed in a fix: scope the token to one repository, or stop the agent combining public and private repos in one session.
Map it to your own tools
If your agent reads public support tickets, queries a private billing database and can post to a public status page, the shape is the same as the cases above, even though the tools are new.
Key points
- Published attacks on assistants, coding agents and MCP setups all follow entry, access and exit.
- The exit leg is usually the one a vendor patches, but the pattern remains in other forms.
- A public issue or channel message can steer an agent that also holds a token for private data.
- Tracing incidents as three-step chains lets you map them to your own agent.
- Vendor patches fix one channel, not the combination of all three legs.
Common mistakes
- Dismissing a case as a one-product bug.
- Fixing only the specific exit that was reported.
- Skipping the entry step, which shows where untrusted text really comes from.
- Treating old incidents as irrelevant because the vendor patched them.
Check yourself · 2 of 3
An agent reads public issues, has a token for private repositories and can open public pull requests. Which leg is the outbound channel?
Check yourself · 3 of 3
After a vendor patches one image-leak hole, what should a team conclude?
Practice items, not counted towards your mastery.
Start here
- The lethal trifecta for AI agents (Simon Willison) (opens in a new tab)ArticleFree
The post that named the trifecta, with real incidents and the plain rule that follows.
- Meta: Agents Rule of Two, a practical approach to AI agent security (opens in a new tab)ArticleFree
Meta's rule of allowing at most two of three risky properties per session without a human check.
- LLM01: Prompt Injection (OWASP) (opens in a new tab)StandardFree
The standard description of prompt injection, with attack types and mitigations.
More for this topic
- Simon Willison: exfiltration attacks (opens in a new tab)ArticleFree
A running list of published data-theft attacks on AI products, newest first.
- Embrace The Red (Johann Rehberger) (opens in a new tab)ArticleFree
Worked, step-by-step exfiltration attacks on shipped assistants and coding agents.