Skip to content

< CollectionsArticle

The lethal trifecta.

The lethal trifecta for AI agents: private data, untrusted content, and external communication

Simon Willison · 2025

Read the post (opens in a new tab)

An agent with private data, untrusted content and a way to send data out can be made to leak. Take one of the three away.

3 sections · 6 problems

0 of 6 done

Start Next: 01 Redact Secrets Before They Reach the Model

Fig. 1. Private data, an injected instruction, and a pipe to the outside. With all three open, data leaks. Close any one valve and nothing leaves.

Section 01

Private data

0 of 2

The post: The first leg: the agent can read something that should not leave.

  1. 01Redact Secrets Before They Reach the Modelimplement · medium
  2. 02Keep the File Tools Inside the Workspaceimplement · easy

Section 02

Untrusted content

0 of 2

The post: The second: text from someone else reaches the model, and may carry instructions.

  1. 03Ignore the Instructions Hidden in Your Documentsdebug · hard
  2. 04Fix the Agent That Follows the Web Pagedebug · hard

Section 03

A way out

0 of 2

The post: The third: a tool that can send data somewhere an attacker can read it.

  1. 05Gate the Tool That Sends Data Outharness · hard
  2. 06Sandbox the Shell Toolimplement · medium
All collections