Lethal trifecta
An AI agent that has private data, reads untrusted content and can send data out can be tricked into leaking that data.
The lethal trifecta is an AI agent that combines three capabilities: access to private data, exposure to untrusted content and a way to send data out. Together they let an attacker trick the agent into leaking that data. Simon Willison named it in June 2025.
Each capability is ordinary on its own: reading the inbox, opening a web page, calling an API. Together, an instruction hidden in an email or a page can tell the agent to collect private data and send it out, through a link, an image URL or a tool call. Models cannot reliably tell instructions from data, so filters that catch most attacks are not enough. MCP makes the combination easy to assemble by accident: a user who connects a mail server, a browsing tool and anything that can make web requests has all three in one session.
The fix is to remove one leg per session, most often the way out: once untrusted text enters the context, block outbound requests, rendered images and links. Prompt injection is the mechanism; the trifecta is the condition under which it becomes a data leak. Excessive agency is the wider risk of an agent doing harmful actions, and an agent sandbox without network access enforces the cut in code.
Sources
- Simon Willison: The lethal trifecta for AI agents: private data, untrusted content, and external communication simonwillison.net
Related terms
- Prompt injection: Instructions hidden in data (a web page, an email, a file) that the model follows as if they came from you.
- Excessive agency: An AI agent with more tools, permissions or autonomy than its task needs, so a mistake or an injected instruction can do real damage.
- 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.
- Agent sandbox: An isolated environment where an AI agent runs code and commands without access to your network, secrets or real files.
- MCP (Model Context Protocol): An open protocol for plugging tools and data into AI apps: write a server once, use it from any client.
- Guardrails: Checks around a model that block, fix or flag inputs and outputs that break the rules.
- Data classification gate for agents: A check that keeps secrets, personal data and other restricted data out of what a coding agent can read, send to a model or write to logs.
