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:

  1. "Access to your private data"
  2. "Exposure to untrusted content"
  3. "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?

LegWhere it comes from in an inbox
Private dataPast threads, attachments, contacts, contracts, invoices and, in your own mailbox, sign-in codes
Untrusted contentEvery incoming body, subject, sender name, attachment and calendar invitation
External communicationSend, 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?

DesignLeg removedWhat the agent still doesWhat remains
Read and label only, output as plain textExternal communicationTriage, sorting, summariesA wrong or planted summary
Drafts onlyExternal communication, while a human reads each draftWrites every answerA send clicked without reading
Approval on every sendThe same, for sendsPrepares and queues mailApproval fatigue
Fresh inbox, no history, no data toolsPrivate dataSign-ups, public enquiries, schedulingSpam or wrong answers sent in your name
Mail from your own senders only, the rest heldUntrusted contentWorks freely on that mailA taken over sender account
One model reads mail with no tools, another acts on fixed fieldsKeeps the legs apartStructured jobsFree 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?

  1. List every way bytes can leave: mail, calendar, web fetch, file sharing, rendered output.
  2. Give the agent its own inbox, not yours. Your old mail is the private data you did not mean to share.
  3. Make the missing leg a permission, not a sentence in the prompt.
  4. Check the other tools in the same session. One file search tool brings the private data leg back.
  5. 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:

shell
# 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

Give your agent an inbox of its own. Free for three agent inboxes and you. No card.