In-depth lesson · technique
LLM data exfiltration
What every disclosed LLM data exfiltration report in the index teaches, put together: how it works, how it changed year by year, where it turns up, and things to try. Every point shows the reports it is seen in.
- reports cited in this lesson
- 114
- median public bounty
- $6,000
- highest public bounty
- $6,000
Learning AI and LLM features, step 4
Overview
What it is and why programs pay for it.
LLM data exfiltration is the abuse of an AI or LLM feature to move data out of an environment it should not leave. The model or the surrounding pipeline is steered into treating attacker supplied text as instructions, and that text causes a fetch, a render or a workflow step that carries private data to a destination the attacker controls. The evidence covers both classic channels, such as image fetches and DNS, and AI specific ones, such as hidden instructions in pages, emails, files, tool descriptions and repository content. Programs care because the data at risk is often session data, chat history, private repository contents or credentials, and because the flaw sits in the trust boundary between untrusted content and privileged actions.
In practice this usually leads to one of three outcomes: private data leaving through an outbound request, a privileged workflow or agent action being taken on attacker instructions, or a stored instruction firing later when the user returns. The reports show it most often in chat and assistant interfaces that render markdown or images, in retrieval and summarisation pipelines that ingest documents, emails or web pages, in AI coding assistants and CI workflows that read repository content, and in connectors and tool descriptions that the agent trusts. File upload and document rendering paths also appear, including a Firefox on Android upload handling case.
Seen in these reports5
How it works
The mechanics, as the reports show them.
The first step is getting attacker text in front of the model through a channel the application treats as content rather than as a command. That can be a web page the assistant is asked to summarise, an email or document in a retrieval pipeline, a public repository the coding assistant reviews, a tool description, or a URL parameter that is later treated as a genuine user query. The root cause is the same in each case: the model does not separate untrusted content from trusted instructions.
The second step is turning that text into an action. The hidden text asks the model to place data it can see, such as session data or chat history, into a location the application will fetch, typically an image reference or a link. The chat renderer then fetches that location without restricting hosts, and the data leaves in the request. Variants use CSS to leak content character by character, or DNS and ICMP to carry data past egress filtering.
Persistence and context manipulation extend the attack. Instructions stored in chat memory or custom instructions can trigger exfiltration later, recursive prompt injection can get around a patch for an earlier flaw, and framing a request as the continuation of an approved document can get past refusal behaviour. Wrapper tags around uploaded attachments that are not escaped let file content close them early, so the remaining text is treated as user instructions.
What makes all of this possible is a combination of broad default permissions, weak separation between instructions and content, and renderers or agents that fetch from any host. The fixes point the same way: keep untrusted content separate from instructions, restrict which hosts the renderer will fetch, check that resolved nodes belong to the authorised origin, escape wrapper tags, do not treat URL parameters as genuine queries, and do not run untrusted pull request workflows with secrets or write access.
Seen in these reports13
-
$6,000 High
Show 5 moreShow fewer
-
Medium -
Low
Year by year
4 yearsWhat each year's disclosed reports show, newest first. A year with few reports says less.
| 2023 | 9 |
|---|---|
| 2024 | 4 |
| 2025 | 22 |
| 2026 | 23 |
-
2026
New this year3
- Planting hidden instructions in MCP tool descriptions and checking whether the agent followed them first appears in the disclosed reports.
- Inserting hidden instructions into documents indexed by a retrieval pipeline and checking whether retrieved text was treated as commands first appears in the disclosed reports.
- Disguising an extraction request as a continuation of an approved document to get the hidden system prompt reproduced first appears in the disclosed reports.
Kept working5
- Checking whether a chat renderer automatically fetched markdown images from any host, including ones carrying data in the path, worked in the disclosed reports.
- Asking an assistant to summarise a page with hidden instructions and checking whether it placed session data into an image URL worked in the disclosed reports.
-
2025
New this year1
- DNS queries as a covert channel out of environments that block other egress first appears in the disclosed reports.
Kept working4
- Checking whether instructions persisted in chat memory or custom instructions could later trigger data exfiltration worked in the disclosed reports.
- Making an AI tool render an image whose URL carried data and watching whether the fetch left the environment was effective in the disclosed reports.
-
2024
New this year1
- Zero-click AI assistant exfiltration of content the user can access first appears in the disclosed reports.
Kept working1
- Asking an assistant to summarise a page with hidden instructions and checking whether it placed session data into an image URL worked in the disclosed reports.
Earlier years1
Root causes
8The mistakes in the code or configuration behind the reports.
-
The model did not separate untrusted content from trusted instructions, so text in pages, emails or files was followed as commands.
Seen in 6 reports
-
The AI agent resolved node identifiers without checking that the nodes belonged to the authorised origin.
Seen in 2 reports
-
A URL parameter let attacker text be treated as a genuine user query.
Seen in 1 report
-
The chat renderer fetched markdown images from any host without restriction.
Seen in 1 report
-
Wrapper tags around uploaded attachments were not escaped, so content inside the file could close them early.
Things to try
The most-reported tests in the largest contexts. Tick what you have tried; ticks stay in this browser and carry over to the full checklist. Test only what a program's scope allows.
ticked in this lesson
Prompt injection via indexed content
of 3 ticked-
Seen in 4 reports
-
Seen in 3 reports
Chat memory and custom instructions
of 3 ticked-
Seen in 3 reports
-
Seen in 1 report
Document and file upload handling
of 3 ticked-
Seen in 1 report
AI connectors and integrations
of 2 ticked-
Seen in 1 report
Bypasses and variations
3How reports got past filters, encoders and other defences.
-
Use DNS or ICMP rather than HTTP to carry data past egress filtering.
Seen in 1 report
-
Frame the request as a continuation of an approved document to get past refusal behaviour.
-
Use recursive prompt injection to get around a patch for an earlier exfiltration flaw.
Seen in 1 report
Payouts
1 paidPublic bounties in US dollars, from the data. 1 of 65 reports show an amount.
- a quarter paid up to
- $6,000
- median
- $6,000
- three quarters paid up to
- $6,000
- highest
- $6,000
One in ten paid reports was paid $6,000 or more.
| Severity | Reports | Paid | Median | Highest |
|---|---|---|---|---|
| High | 1 | 1 | $6,000 | $6,000 |
| Medium | 1 | 0 | None paid | None |
| Low | 2 | 0 | None paid | None |
| Unrated | 61 | 0 | None paid | None |
Highest-paid reports1
-
$6,000 High
Typical fixes
5How programs fixed it, as the reports describe.
-
Keep untrusted content separate from instructions and restrict which hosts the renderer will fetch images from.
-
Check that nodes resolved from AI-supplied identifiers belong to the authorised origin and frame.
Seen in 2 reports
-
Escape wrapper tags around uploaded attachments so file content cannot end the context early.
-
Do not treat text from a URL parameter as a genuine user query.
Seen in 1 report
-
Sanitise user prompts and filter model output before it is acted on.
Seen in 1 report
Tips for beginners
11Advice for a first hunt, drawn from the reports.
-
Start with the assistant and chat surfaces you can reach: ask one to summarise a page you control that contains hidden instructions and watch for outbound requests carrying session data. This is the clearest first test and maps directly to the renderer fetching images from any host.
Seen in 4 reports
-
Test the zero-click path: an assistant reads content the user can access and sends it to an attacker host without further interaction. Zero-click impact is much stronger than a test that needs the user to click.
Seen in 3 reports
-
Test retrieval and tool trust boundaries: plant hidden instructions in documents indexed by a retrieval pipeline, in an MCP tool description, or in a field an accessibility audit extracts, and see whether the agent follows them as legitimate.
Seen in 3 reports
-
Show impact with real data, not a bare request. Demonstrate that session data, chat history, private repository contents or credentials actually leave, and note whether the channel bypasses existing monitoring or data loss prevention.
Seen in 3 reports
-
Check the defences and variations before you write up: DNS or ICMP instead of HTTP, framing a request as a continuation of an approved document, and recursive prompt injection are all documented ways past filters, so a blocked first attempt does not mean the flaw is absent.
Seen in 3 reports
Guides and techniques
The best explainers, cheat sheets and technique posts on LLM data exfiltration, from around the web.
-
Building an Indirect Prompt Injection WorkflowSpecterOps walks through constructing an indirect prompt injection workflow against LLM applications, useful for AI security testing.
Technique specterops.io
-
Never Trust the Output: Data Pollution in AI Agents and MCPExplores data pollution attacks against AI agents and MCP servers, showing how untrusted tool output can hijack agent behaviour.
Technique blog.slonser.info
-
20 AI Red Teaming Techniques Every Security Professional Should Learn (Step-by-Step Guide)Lists twenty AI red teaming techniques with steps, aimed at testers probing large language model applications.
Methodology medium.com
-
Your AI can access it. Can an attacker?Frames prompt injection as a route to data exposure and tool abuse, urging teams to treat the model as untrusted and limit its reach.
Explainer pentestpartners.com
-
15 RAG Security Vulnerabilities Every AI Developer Should Know (And How to Fix Them)Lists fifteen security weaknesses in retrieval augmented generation pipelines and suggests mitigations for AI developers building them.
Explainer medium.com
Keep learning
Where this lesson fits, and what to read next.
Learning paths
The whole class
Related techniques
How this is made: our model read every listed LLM data exfiltration report in the index (our own summary where we have one, otherwise the title and the platform's label), listed the patterns, and merged them. Each point was kept only if the reports it cites exist, are listed and belong here; payouts are computed from the data, not written by the model. Read the originals before relying on a point. Generated 27 Nov 2026 from 117 reports. All LLM data exfiltration reports.