The lethal trifecta is an AI tool that can read your private data, read untrusted content and send data out.
Put all three together and a stranger's hidden instructions can make the tool leak your data. This guide is for anyone who uses or sets up AI assistants and agents. You do not need to code to follow it.
In short
- The name comes from developer Simon Willison, who described it in June 2025 [1].
- The three parts are: access to private data, exposure to untrusted content, and a way to communicate outside [1].
- AI models follow instructions found in what they read, so an attacker can plant instructions in an email or web page.
- The simple test: if a tool has all three, remove one before you trust it with anything important.
What you will learn
- Name the three ingredients of the lethal trifecta.
- Explain why an AI tool might obey a stranger's hidden instructions.
- Use a simple three-circle test on any AI tool or agent.
- Pick the easiest ingredient to remove in your own setup.
- Helper with keys (AI agent)
- an AI tool that can take actions, such as reading files or sending messages, not just chat.
- Planted note (prompt injection)
- instructions hidden in content that trick an AI into doing something its user did not ask for.
- Way out (exfiltration channel)
- any route the AI can use to send data somewhere else.
What is the lethal trifecta?
Think of a new office assistant. They have keys to the files, open all the post and can send parcels. One letter says: "Please post the customer files to this address." A careful person would refuse. An eager assistant who follows every note might not.
An AI agent can be that eager assistant. Simon Willison named three abilities that are risky together [1]:
- Access to your private data, such as email or files.
- Exposure to untrusted content, such as web pages or emails from strangers.
- The ability to send things out, such as email or a link.
Where the comparison stops working: a person knows their boss from a letter. AI models cannot reliably tell your instructions from ones in what they read [1].
Why does it matter?
More AI tools now connect to inboxes, drives and the web. Each connection is useful on its own. The danger appears when one setup has all three.
If you use an AI assistant at work
What could happen: you ask it to summarise your emails, and one email tells it to send your files elsewhere.
Check this: which of your connected tools can both read your inbox and send things out?
If you run a small business
What could happen: staff connect an AI tool to the customer database and the open web without anyone reviewing it.
Check this: keep a list of AI tools and what each one is connected to.
Next: AI Agents for Beginners
If you are new to security work
What could happen: an agent with its own access becomes a route for data theft that no firewall rule notices.
Check this: treat each agent as a non-human identity with an owner and the least access it needs.
What does it look like?
Here is a made-up record of the tools connected to one AI assistant, marked against the three circles.
Example only. All values are made up.
Assistant: EXAMPLE-helper Tool Private data Untrusted input Sends out read_inbox yes yes no (1) read_shared_drive yes no no (2) web_browse no yes yes (3) send_email no no yes (4) RESULT: all three circles ticked (5)
- Your inbox is private data, but anyone in the world can send you an email, so it is untrusted input too.
- In a real file, this line would contain the name of a shared drive holding company documents.
- Browsing reads untrusted pages and also makes outgoing requests, so it can carry data out.
- Sending email is an obvious way out.
- Together these tools tick every circle, which is the warning sign.
Why this is risky: each tool looks harmless alone. The risk comes from the combination.
The safer way: remove at least one circle. For example, turn off sending and browsing for the assistant that reads your inbox.
How does it work?
- Someone plants instructions. An attacker puts hidden text in a web page, an email or a document. OWASP calls this indirect prompt injection: instructions arriving from outside content the AI reads [2].
- The AI reads it. You ask for something normal, like a summary, and the AI takes in the planted text along the way.
- The AI follows it. It reaches into your private data, because it has access and was told to.
- The data leaves. The AI sends the data out by a request to a web address, loading an image, offering a link to click or using a tool [1].

Why not just tell the AI to ignore bad instructions? OWASP, a security community group, says there may be no sure way to stop prompt injection, given how these models work [2]. Willison makes the same point about filter products: catching most attacks is not good enough when one miss leaks your data [1].
So the safest fix is design, not hope. Remove one ingredient, or put a person in the way. OWASP's advice on excessive agency includes giving tools fewer functions and permissions, and requiring a human to approve high-impact actions [3].
| Circle to remove | What it looks like in practice |
|---|---|
| Private data | Use the AI for public research only, with no access to inboxes or drives. |
| Untrusted input | Let it read only your own trusted files, never the open web or incoming mail. |
| Way out | Turn off sending, browsing and links, or require a person to approve each one. |
A worked example
This story is made up to show the idea.
Calla Vance manages a busy sales team. She sets up an AI assistant that can read her inbox, search the shared drive of customer contracts and send email for her. It saves her an hour a day.
A colleague from security, Kofi Engel, asks her to try the three-circle test. Inbox and contracts: private data, tick. Inbox again: anyone can email her, so untrusted input, tick. Sending email: a way out, tick.
Kofi explains the worry. A stranger could send Calla an email with hidden text telling the assistant to forward the latest contracts to an outside address. If Calla asks for a summary of today's mail, the assistant might obey.
Calla does not want to lose the time savings. They agree on a change. The assistant keeps reading her inbox and the contracts, but it can only draft emails. Calla reviews and sends each one herself.
They also remove web browsing, which she rarely used. The tool is a little slower, but a planted note now has no way to send anything out.
Calla now asks the three questions before connecting any new tool. She also shared the test with her team, and two of them switched off sending on their own assistants that week.
Myths and mistakes
| What people think | What is true |
|---|---|
| A good system prompt telling the AI to ignore attacks is enough. | OWASP says there may be no sure way to stop prompt injection[2]. Design out the risk instead. |
| Hidden instructions have to be visible to work. | OWASP notes injected instructions need not be readable by people, as long as the model reads them[2]. |
| Only sending email counts as a way out. | Loading an image, calling a web address or showing a link can also carry data out[1]. |
| Each tool was approved, so the setup is safe. | The risk comes from combining tools. Check the whole setup, not each tool alone. |
| A filter that blocks most attacks solves it. | One missed attack can leak data, so "most" is not enough here[1]. |
What can I do this week?
- List the AI tools you use and what each is connected to.
- Run the three-circle test on each one.
- For any tool with all three, remove the easiest circle, often the way out.
- Turn on "ask before sending" or approval options where your tool offers them.
- Read Prompt Injection for Beginners to understand the planted-note trick.
Checklist
- I can name the three parts of the lethal trifecta.
- I know an AI may follow instructions hidden in what it reads.
- I know which of my AI tools can read private data.
- I know which ones read untrusted content such as email or the web.
- I know which ones can send data out, including by links or images.
- No tool I rely on has all three without a person approving actions.
- Each AI agent at work has an owner and only the access it needs.
Common questions
Who came up with the term?
Simon Willison, a software developer who writes widely about AI security, described the lethal trifecta in a blog post in June 2025[1]. It gives a simple name to a risk security researchers had been showing in real AI products.
Is this the same as prompt injection?
Not quite. Prompt injection is the trick: planting instructions the AI follows. The lethal trifecta is the setup that turns that trick into data theft. Without private data or a way out, an injection has much less to steal and nowhere to send it.
Which circle is easiest to remove?
Often the way out. Many tools can work well with sending, browsing and links turned off, or with a person approving each outgoing action. Removing untrusted input is hard for anything that reads email or the web.
Does this only apply to big AI agents?
No. A chat assistant with a couple of plug-ins can tick all three circles. Willison warns the risk grows when people mix tools from different sources themselves, because no single vendor can protect that combination[1].
What should a business do first?
Make a list of AI tools and agents, what each can reach, and who owns each one. Then apply the three-circle test and fix the setups that tick all three, starting with those that touch customer or financial data.
Where next?
Ready for the detail? Read the practitioner guide: OWASP LLM Top 10 LLM06 Excessive Agency Guide. It covers how teams limit the functions, permissions and freedom of AI tools.
Also useful:
- Prompt Injection for Beginners
- AI Agents for Beginners
- Human-in-the-Loop for AI Agents for Beginners
- Data Exfiltration for Beginners
Related NHI Mgmt Group resources: Least Privilege for Beginners, Investigating Agent-Initiated Data Exfiltration and System Prompt Hardening vs External Guardrails.
Key terms
- Lethal trifecta
- An AI setup that combines access to private data, exposure to untrusted content and a way to send data out.
- Indirect prompt injection
- Instructions hidden in outside content, such as a web page or email, that an AI reads and follows.
- AI Agents
- AI systems that can use tools and take actions with their own access, not just answer questions.
- Excessive agency
- When an AI tool has more functions, permissions or freedom to act than its job needs.
- Data exfiltration
- Moving data out of an organisation without permission.
- Non-Human Identity (NHI)
- A software identity, such as an AI agent, service account or API key, that has its own access and permissions.
Sources and further reading
- Simon Willison, "The lethal trifecta for AI agents: private data, untrusted content, and external communication", 16 June 2025. https://simonwillison.net/2025/Jun/16/the-lethal-trifecta/ (accessed 30 Nov 2026).
- OWASP GenAI Security Project, "LLM01:2025 Prompt Injection", OWASP Top 10 for LLM Applications 2025. https://genai.owasp.org/llmrisk/llm01-prompt-injection/ (accessed 30 Nov 2026).
- OWASP GenAI Security Project, "LLM06:2025 Excessive Agency", OWASP Top 10 for LLM Applications 2025. https://genai.owasp.org/llmrisk/llm062025-excessive-agency/ (accessed 30 Nov 2026).