What is the AI lethal trifecta?
The AI lethal trifecta is the risky combination of private data access, exposure to untrusted content and the ability to send data outside within one AI agent, which makes data exfiltration through prompt injection possible.
The idea spread in 2025 through a security researcher's post. Indirect prompt injection is the technique; the trifecta names the three conditions that turn it into data exfiltration. Removing any one component sharply cuts this risk.
- Topic
- AI security
- Also known as
- Lethal trifecta
- Origin
- 2025, Simon Willison
How the AI lethal trifecta works
- The agent can reach the organisation's private data: emails, documents, databases.
- The same agent reads untrusted content: outside emails, web pages, uploaded files or third-party tool output.
- The agent can send data out, by emailing, calling an address or producing an answer with an outbound link.
- A hidden instruction in the untrusted content can steer the agent into sending private data through that outbound channel.
In more detail
Hidden exfiltration channels: Markdown images, link previews and tool side effects
The outbound exfiltration leg does not require an explicit email or HTTP POST tool. Even a read-only agent can leak sensitive data if the chat interface renders Markdown images (``), triggers automatic link unfurling or writes parameters into a shared calendar invite or ticket accessible outside the trust boundary.
Dual-LLM and data-flow tracking (CaMeL) architectures
Beyond splitting tasks across separate agents, robust designs isolate untrusted data processing from privileged actions using patterns such as the Dual-LLM architecture or capability-based taint tracking (e.g., CaMeL). Under these designs, a quarantined model parses untrusted inputs into structured values, while a privileged orchestrator enforces data-flow policies before any sensitive call runs.
Compound tool risk and dynamic MCP connectors
In enterprise platforms supporting plug-and-play connectors or MCP (Model Context Protocol) servers, an agent that starts safely with two capabilities can suddenly form a lethal trifecta when a user enables a third connector. Governance controls must evaluate the combined tool graph per session rather than auditing each connector in isolation.
Commonly confused terms
| Term | How it differs |
|---|---|
| Indirect prompt injection | Indirect prompt injection is the attack vector (malicious instructions hidden inside retrieved documents, emails or web pages); the lethal trifecta is the specific combination of three agent capabilities that turns that attack into covert data exfiltration. |
| AI excessive agency | Excessive agency refers broadly to giving an agent more tools, permissions or autonomy than needed for any dangerous action (deletion, fraud, sabotage); the lethal trifecta specifically models the three conditions required for silent data exfiltration via untrusted inputs. |
| AI data poisoning | Data poisoning corrupts training or RAG corpus data beforehand to distort future model behaviour across users; the lethal trifecta exploits live runtime exposure to untrusted content inside a single session with private data and an outbound channel. |
Why the AI lethal trifecta matters for on-premises AI
In in-house agent design it serves as a checklist: if an agent holds all three capabilities, one is removed where possible. For example, an agent reading outside emails cannot make outbound requests, an agent with internal data does not read untrusted content, or outbound communication requires human approval. Filters cannot fully close this risk, so architectural separation is the more reliable defence. Air-gapped setups narrow outbound channels, but leakage paths between internal systems are assessed separately.
A company's purchasing assistant reads and summarises supplier emails but cannot send email or open links; a separate agent with access to the internal price database sees no outside content, passing only approved fields between them.
Common questions
How is the AI lethal trifecta broken?
Remove at least one of the three capabilities or put it behind human approval: private data access, reading untrusted content or sending data out. This usually means separating agents by task.
Doesn't a prompt injection filter solve this?
Not fully. Filters catch known patterns, but new attacks can pass; not combining all three capabilities in one agent is the more reliable defence.
Related terms
- Indirect prompt injection
- Prompt injection
- Data exfiltration via AI
- Agentic AI security
- Tool poisoning
- Human-in-the-loop
Sources
- Willison, The lethal trifecta for AI agents, 2025
- Greshake et al., Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection, 2023
In the glossary: Glossary, D to L