Lethal trifecta – Mangrove

GlossaryAgent failure modes

Lethal trifecta

Definition: The lethal trifecta is the combination, in one AI agent, of access to private data, exposure to untrusted content and a way to send data out.

Simon Willison listed three capabilities: access to private data; exposure to untrusted content, meaning any way that text or images controlled by an attacker can reach the model; and the ability to communicate externally in a way that could be used to steal data. He wrote that if an agent combines all three, “an attacker can easily trick it into accessing your private data and sending it to that attacker”. The mechanism is prompt injection, a separate entry: the model follows instructions in the content it reads, wherever they came from. The outward channel can be small. Willison wrote that a tool able to make an HTTP request, load an image or even provide a link for the user to click can pass stolen information back to an attacker. His example of all three in one tool was GitHub’s server for the Model Context Protocol (MCP), a separate entry, in an exploit found by Marco Milanta and Luca Beurer-Kellner. The server could read issues, the reports of bugs, tasks and ideas that people file on a project, including public issues that an attacker could have filed; read the user’s private code repositories; and create pull requests, which are proposed code changes, in a way that exposed the private data. For example, an agent that can read a user’s trade history, reads posts on a public forum and can publish replies may be told by a forum post to paste the trade history into a reply.

Willison’s advice to users who combine tools themselves is, in his words: “The only way to stay safe there is to avoid that lethal trifecta combination entirely.” He noted that vendors fixed almost all of the attacks he had listed, usually by locking down the channel used to send data out, which removes the third capability. He was “deeply suspicious” of what vendors sell as “guardrail” products, which claim to detect and prevent these attacks. Such products, he wrote, almost always claim to catch about 95% of attacks, and “in web application security 95% is very much a failing grade”.

Simon Willison used the phrase in a 26 May 2025 post about an exploit of GitHub’s MCP server, calling it “the lethal trifecta for prompt injection”, and set the idea out in full in The lethal trifecta for AI agents: private data, untrusted content, and external communication (16 June 2025).