The lethal trifecta for an AI agent with email
The lethal trifecta is Simon Willison's name for three abilities that together let an attacker steal data from an AI agent: access to private data, exposure to untrusted content and a way to communicate externally. An agent connected to a mailbox usually has all three. Take one away to close that path.
Updated
What is the lethal trifecta?
Willison described it in a post dated June 16, 2025. The three capabilities, in his words:
- "Access to your private data"
- "Exposure to untrusted content"
- "The ability to externally communicate in a way that could be used to steal your data"
The root cause is that a model follows instructions it finds in content, whoever wrote them. With all three in place, text from a stranger can tell the agent to fetch your data and send it to the stranger.
Why does an email agent have all three?
| Leg | Where it comes from in an inbox |
|---|---|
| Private data | Past threads, attachments, contacts, contracts, invoices and, in your own mailbox, sign-in codes |
| Untrusted content | Every incoming body, subject, sender name, attachment and calendar invitation |
| External communication | Send, reply, forward and invitation answers. Links and images in the agent's output. Any web tool |
Willison used email as his example of untrusted content: an attacker can email your model and tell it what to do. His sample message asks an assistant to forward password reset emails to the sender's address and then delete them.
Count the quiet exits. An answer to a meeting invitation leaves the mailbox. An image in a rendered answer fetches an address with no click, which was the exit in EchoLeak. A link needs one click.
Which leg should you remove?
| Design | Leg removed | What the agent still does | What remains |
|---|---|---|---|
| Read and label only, output as plain text | External communication | Triage, sorting, summaries | A wrong or planted summary |
| Drafts only | External communication, while a human reads each draft | Writes every answer | A send clicked without reading |
| Approval on every send | The same, for sends | Prepares and queues mail | Approval fatigue |
| Fresh inbox, no history, no data tools | Private data | Sign-ups, public enquiries, scheduling | Spam or wrong answers sent in your name |
| Mail from your own senders only, the rest held | Untrusted content | Works freely on that mail | A taken over sender account |
| One model reads mail with no tools, another acts on fixed fields | Keeps the legs apart | Structured jobs | Free text slipping through a field |
Reply-only is not on that list. If the attacker wrote the message, the reply goes to the attacker. Limiting recipients to those who wrote in does not close the third leg.
Is a filter or guardrail enough?
Willison's answer is no. He wrote that nobody yet knows how to prevent this reliably, and that in web application security a guardrail catching most attacks is still a failing grade. Screening lowers how often an attack arrives. Removing a leg changes what a successful one can do.
He points to a design patterns paper that puts the rule this way: once an agent has taken in untrusted input, it must be constrained so that the input cannot trigger any consequential action.
Meta's Agents Rule of Two (October 31, 2025) builds on the trifecta. Within a session an agent should satisfy no more than two of: processing untrustworthy inputs, access to sensitive systems or private data, and changing state or communicating externally. An agent that needs all three should not run without supervision.
Willison added a caution on November 2, 2025: untrusted input plus the power to change state can do harm even with no private data. Two legs are not automatically safe.
How do you remove a leg in practice?
- List every way bytes can leave: mail, calendar, web fetch, file sharing, rendered output.
- Give the agent its own inbox, not yours. Your old mail is the private data you did not mean to share.
- Make the missing leg a permission, not a sentence in the prompt.
- Check the other tools in the same session. One file search tool brings the private data leg back.
- Try it. Send the agent a message that asks for data and confirm that nothing leaves.
On Trotta Mail the limits sit on the key and the inbox, outside the model. Run these with an admin key that the agent never sees:
# Take away the send leg: a key that can only read one inbox.
curl -X POST https://api.trotta.email/ v1/ keys \
-H "Authorization: Bearer $ADMIN_KEY" -H "Content-Type: application/ json" \
-d "{\"name\": \"triage\", \"inbox_id\": \"$INBOX_ID\", \"scopes\": [\"mail:read\"]}"
# Or keep sending, and have a human approve every message.
curl -X PATCH https://api.trotta.email/ v1/ inboxes/ $INBOX_ID \
-H "Authorization: Bearer $ADMIN_KEY" -H "Content-Type: application/ json" \
-d '{"send_approval": "always"}'agent_write: drafts leaves every send to a human. lockdown mode delivers mail from your own organization and from allow-listed senders that prove who they are, and holds the rest, which narrows the untrusted leg. The security model has the rules.
Screening is not removal. Trotta Mail holds mail it finds dangerous and gives agents a safe view, and no filter catches everything. Design as if one hostile message will get through.
Questions
Who came up with the lethal trifecta?
Simon Willison, in a post dated June 16, 2025. He also coined the term prompt injection.
Is the lethal trifecta the same as prompt injection?
No. Prompt injection is the technique. The trifecta describes the setup in which an injection can steal data.
Does drafts-only break the trifecta?
For sending, yes, if a human reads each draft and nothing else can carry data out. Check links and images in whatever displays the draft.
Can an email assistant with all three be made safe?
Not by instructions to the model. Meta's Rule of Two says an agent that needs all three should not operate on its own and needs supervision.
Sources
- Simon Willison, The lethal trifecta for AI agents: private data, untrusted content, and external communication, June 16, 2025
- Simon Willison, New prompt injection papers: Agents Rule of Two and The Attacker Moves Second, November 2, 2025
- Meta, Agents Rule of Two: A Practical Approach to AI Agent Security, October 31, 2025