AI agent data exfiltration
An attack in which injected instructions make an AI assistant or agent send private data to an outsider, through a tool call, a link or an image URL.
Exfiltration is the step where an indirect prompt injection turns into a data breach. The agent has read private data, has read attacker text, and has some way to send something out. The lethal trifecta names those three conditions.
The outbound channel is often not an obvious “send” tool. Johann Rehberger showed in 2023 that Bing Chat could be made to output a Markdown image whose URL carried data from the conversation; the browser loaded the image and delivered the data to the attacker’s server without a click. Links, web fetches, email drafts, file uploads and webhook tools work the same way. Rehberger believed the fix relied largely on a Content Security Policy limiting where images can load from.
The defenses follow from that: allowlist the domains a client may render or fetch, strip remote images from model output, require approval for anything that leaves the system, and log tool calls so DLP or a reviewer can see what went where.
Sources
- Embrace The Red (Johann Rehberger): Bing Chat: Data Exfiltration Exploit Explained (June 2023) embracethered.com
Related terms
- Lethal trifecta: An AI agent that has private data, reads untrusted content and can send data out can be tricked into leaking that data.
- Indirect prompt injection: Prompt injection that arrives in content an AI system reads on its own, such as a web page, email, document or tool result, instead of what the user types.
- Prompt injection: Instructions hidden in data (a web page, an email, a file) that the model follows as if they came from you.
- CSP (Content Security Policy): An HTTP header that tells the browser which scripts, styles and connections a page may use, limiting the damage of injected code.
- DLP (data loss prevention): Tools and rules that spot sensitive data, such as card numbers or customer records, and block or flag it when it leaves by email, upload or AI chat.
- Tool poisoning (MCP): An attack that hides instructions in a tool’s name, description or output, so an agent using that tool follows the attacker instead of the user.
