What is the "lethal trifecta," and how do you design agent systems around it?
Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.
Model answer: the part to lead with
Simon Willison's term (June 2025) for the combination that makes an agent exploitable for data theft: (1) access to private data, (2) exposure to untrusted content, and (3) an external communication channel for exfiltration. Any agent holding all three can be compromised by prompt injection into stealing data: the untrusted content carries the attacker's instructions, the private data is the loot, and the outbound channel - an HTTP tool, email send, or even a rendered markdown image URL with data in query params - carries it out. Remove any one leg and the exfiltration attack collapses.
Full worked answer with diagram
Simon Willison's term (June 2025) for the combination that makes an agent exploitable for data theft: (1) access to private data, (2) exposure to untrusted content, and (3) an external communication channel for exfiltration. Any agent holding all three can be compromised by prompt injection into stealing data: the untrusted content carries the attacker's instructions, the private data is the loot, and the outbound channel - an HTTP tool, email send, or even a rendered markdown image URL with data in query params - carries it out. Remove any one leg and the exfiltration attack collapses.
The framing's power is that it converts an unsolvable problem ("prevent models from following injected instructions" - we can't, reliably) into a tractable one: audit and control capability combinations. Design moves:
- Inventory per agent/session: which tools grant private-data reads? which inputs are untrusted (web, email, tickets, uploaded files, other agents' outputs)? which tools can communicate externally - including subtle channels like URL fetches, image rendering, git pushes, and writes to shared systems that others read?
- Break leg 3 first (usually cheapest): egress allowlists, no free-form URL parameters carrying context data, render-time blocking of external images, outbound-capable tools stripped from any session that touched untrusted content.
- Break the combination dynamically: capability downgrade - the moment a session ingests untrusted content, revoke external-send tools or route all sends through human approval. Session-scoped credentials rather than ambient god-tokens.
- Isolate: process untrusted content in a quarantined, tool-less context and pass only structured, validated output to the privileged agent.
Also name the composition trap: each MCP server or tool may be individually safe, but connecting them assembles the trifecta - the browsing server provides leg 2, the files server leg 1, the email server leg 3. Trifecta review must happen at the host/session level, not per-tool, and it's the single best rubric for reviewing an agent's tool manifest.
Worth sketching. Three legs meeting at one point makes the review question concrete: which leg do I cut for this session?
flowchart TD
A["Private data access<br/>files, mail, database"] --> D["Exfiltration is reachable"]
B["Untrusted content<br/>web, tickets, uploads"] --> D
C["Outbound channel<br/>HTTP, send, image URL, push"] --> D
D -->|"revoke send tools once a session<br/>has touched untrusted content"| E["Combination broken,<br/>injection succeeds and gains nothing"]
What a good answer covers
- Simon Willison's term (June 2025) for the combination that makes an agent exploitable for data theft
- Any agent holding all three can be compromised by prompt injection into stealing data
- Remove any one leg and the exfiltration attack collapses
- The framing's power is that it converts an unsolvable problem ("prevent models from following injected…
- Inventory per agent/session
Key terms: access to private data · exposure to untrusted content · an external communication channel · audit and control capability combinations · Inventory per agent/session · Break the combination dynamically · Isolate
In the glossary: Prompt injection · MCP
Interviewer follow-ups to expect
A coding agent has repo access, reads GitHub issues, and can push branches - walk through the trifecta. Which leg would you break for a customer-support agent, and how?
Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep