Lethal Trifecta
A warning from AI agent security: when an agent combines access to private data, exposure to untrusted content and the ability to send information outside the system, the risk of data leakage increases.
What does Lethal Trifecta mean in simple terms?
The lethal trifecta means a deadly combination of three things. Developer Simon Willison set it out on his blog in June 2025. The first is the ability to read private data such as your email and documents. The second is the ability to read material whose author you don't know, such as web pages or emails from others. The third is the ability to send information out, such as opening links or sending email. When all three come together in one agent, instructions hidden in outside material can pull private data out. Its practical value is the rule that removing any one of them greatly reduces the risk.
How can Lethal Trifecta be explained with an analogy?
It is like an employee who holds the vault key, reads a note handed over by a stranger and can ship a parcel right away: an accident waiting to happen.
Where is Lethal Trifecta used?
Simon Willison — Naming the three-part combination
In a post on June 16, 2025, Willison named three elements: access to private data, exposure to untrusted content and the ability to communicate externally.[1] He wrote that avoiding this combination is the only way to stay safe, and said there is still no known way to stop prompt injection 100% of the time.[1]
Result: Brought publicly reported leaks, including Microsoft 365 Copilot and GitHub's official MCP server, under a single checklist (per the blog post).[1]
Invariant Labs — Demonstrating an attack via GitHub MCP
On May 26, 2025, Invariant Labs showed how a single malicious issue posted to a public repository could steer a user's AI agent into leaking information from private repositories through a pull request in a public repository.[2] The researchers explained that this was not a flaw in the GitHub MCP server code but a problem with how agent systems are built.[2]
Result: Reproduced in practice the leak path that opens when private data, outside material and outside output meet in one agent (per the research blog).[2]
Learning steps, limitations and developments
- For each AI agent you use, mark in a table whether it has each of the three abilities.
- For agents that have all three, start by considering switching one off, for example by blocking outbound sending or stopping it from reading public material.[1]
- When adding an MCP tool, check which of the three elements it adds.[2]
- Use "always allow" settings only for agents that do not have the dangerous combination.[2]
Removing all three elements also removes much of an agent's usefulness, so this rule works better as a design checklist than as a ban list. The concept starts from the point that even if guardrail products filter out some attacks, they do not guarantee they will block them all.[1]
How has Lethal Trifecta evolved?
Which concepts are related to Lethal Trifecta?
- Base conceptPrompt InjectionThe attack method by which hidden instructions cause leaks
- Underlying technologyMCPConnecting tools makes it easy for the three abilities to gather in one place
- Related componentMCP ServerA connection point that adds data access and sending abilities to an agent
- Applies toAI AgentA problem for agents that use several tools together
Checking each of the three elements
Which sources explain Lethal Trifecta?
- Simon Willison — The lethal trifecta for AI agents: private data, untrusted content, and external communication (2025-06-16) — https://simonwillison.net/2025/Jun/16/the-lethal-trifecta/
- Invariant Labs — GitHub MCP Exploited: Accessing private repositories via MCP (2025-05-26) — https://invariantlabs.ai/blog/mcp-github-vulnerability
Tell us what you think
Your feedback helps us improve the content.