Field Note 011 / AI Agents

Every document is now executable.

Once an agent reads web pages, email, and tickets, that text is input to the thing holding your credentials. An instruction hidden in a PDF is an attack on whatever the agent can reach. Treat retrieved content like untrusted code: least privilege on tools, and a human in front of anything irreversible.

Indirect injection

The attacker never talks to your agent. They leave text where it will be read: white-on-white in a web page, a comment in a shared document, a line in an email signature, a field in a support ticket. When the agent processes that content on behalf of a real user, the hidden instruction arrives with the same standing as everything else in its context.

Three things that should not meet

The dangerous combination is an agent that has access to private data, reads content an outsider can influence, and has some way to send information out. With all three, an injected instruction can read the private data and deliver it, sometimes through something as small as an image URL with the data in the query string.

Remove any one of the three and that path closes. Most agent security work is deciding which one to remove for a given task.

Building for it

Give each task the narrowest set of tools that completes it. Separate agents that read untrusted content from agents that hold credentials. Restrict where outbound requests can go. Require confirmation for sending, paying, deleting, and sharing, and show the human exactly what will happen. Log every tool call. And test it by attacking it, because the failures are not visible from reading the prompt.

Related: AI security & red teaming →AI engineering →

← Note 010All field notesNote 012 →

Have this problem
for real?

Book a callSend a message