What is the lethal trifecta for AI agents?

Answered by Falk Gottlob · Reviewed · 2 min read

THE SHORT ANSWER

The lethal trifecta is Simon Willison's name for three things an AI agent should never have at once. They are access to your private data, exposure to untrusted content, and the ability to send data out. With all three, hidden instructions in the content can make the agent leak the data. Meta turned this into a design rule it calls the Agents Rule of Two. In one session, an agent gets at most two of the three. If it truly needs all three, a person or another reliable check must approve.

Simon Willison, the developer who coined the term prompt injection, gave this problem a name that stuck. The lethal trifecta is three abilities that are fine alone and dangerous together:

  • access to your private data
  • exposure to untrusted content
  • the ability to communicate externally

Put all three in one agent and a stranger can steer it. A web page, an email, or a public issue carries a hidden line. The agent reads it, finds your data, and sends it out. Willison's advice is to avoid the combination entirely.

Invariant Labs, an AI security research firm, showed it with the GitHub MCP server. MCP stands for Model Context Protocol, the standard that lets AI apps call other software. A public issue could steer a user's agent into copying private repository data into a public place. Invariant said the flaw wasn't in the server code. It was the combination.

Meta turned the idea into a design rule, the Agents Rule of Two. In one session an agent can have no more than two of these three. One, it processes untrustworthy inputs. Two, it can reach sensitive systems or private data. Three, it can change state or communicate externally. If a job truly needs all three, the agent shouldn't run on its own. At minimum it needs supervision, by a person or another reliable check.

I like this rule because a product manager can apply it with a pencil. List each agent. Mark which of the three it has. Any agent with three marks gets redesigned or gets a person in the loop.

Meta's examples are useful templates. A travel assistant reads your data and the web, but asks before it books. A research agent browses anywhere, in a sandbox without your logins.

The full audit template is in AI Security for Product Managers. The series starts at AI Security From Zero, and every guide is on the AI security hub.

SOURCES

THE LONG VERSION

RELATED ANSWERS

If this was useful, The AI Product Transformation is where I share more of it.

One email every Monday with the week's best posts and what changed on the site.

Unsubscribe anytime. Read past issues.