Briefing · Paper · source · published · Boston Identity
An agent's plan fixed before it reads untrusted data still leaves each call's arguments open to injection
Fourteen researchers from ETH Zurich, Invariant Labs, IBM, Google, Microsoft and others argue that general-purpose agents are unlikely to give reliable guarantees against prompt injection while they run on today's language models. Their six design patterns limit what an agent can do once it has read untrusted data. Their own examples show the limits: a plan fixed before the agent reads its calendar can still let planted text rewrite the email body, and five of the six leave the user's own prompt open to injection.
arXiv · Luca Beurer-Kellner, Beat Buesser, Ana-Maria Creţu, Edoardo Debenedetti, Daniel Dobos, Daniel Fabian, Marc Fischer, David Froelicher, Kathrin Grosse, Daniel Naeff, Ezinwanne Ozoani, Andrew Paverd, Florian Tramèr, Václav Volhejn · June 10, 2025 · read
What's happening
Finding3A plan fixed before the agent reads untrusted data keeps injected text from adding actions, but that text can still steer the allowed ones, the authors write.
Fixing an agent's plan before it reads untrusted data keeps text in that data from adding actions, and the actions the plan allows can still be steered. In the authors' own example, an assistant asked to send today's schedule to the user's boss commits to reading the calendar and writing one email. Text planted in the calendar "cannot inject any new instructions", they write, but it could arbitrarily alter the body of that email; they say the same of code-then-execute. On an operating-system assistant, a plan limited to the find and mv commands could still be talked into copying sensitive files to a public network drive, and in their email-assistant case recipients and bodies "could still be influenced by untrusted data." The protection also stops at the user's own prompt. The authors say the first five patterns still allow injections there, and the sixth, context-minimization, is meant to prevent some of them by removing the user's prompt from the model's context once it has shaped the action.
flag a problem with BI-FIND-2025-0272
Figure steps
- The user asks the assistant to send today's schedule to their boss, John Doe.
- Before it reads any data, the agent fixes its plan: read today's calendar, then write one email to John Doe's address.
- The agent reads the calendar. The events are untrusted data and may carry planted text.
- The email goes out as planned. The injected text could not add a call, but the authors say it could still rewrite the body.
The plan fixes both calls before the calendar is read, so text planted in an event cannot add a call; it can still rewrite the body of the email the plan sends.
Drawn from the paper's plan-then-execute example (section 3.1)Source dated June 10, 2025Passage: The six design patterns
Swipe for the full figure →
Beurer-Kellner, Tramèr and co-authors argue general-purpose agents are unlikely to give reliable safety guarantees while they rely on current language models.
Beurer-Kellner, Tramèr and twelve co-authors argue that while agents and their defenses rely on the current class of language models, general-purpose agents are unlikely to provide reliable safety guarantees, because model-level defenses and detectors are heuristic. Their six patterns (action-selector, plan-then-execute, LLM map-reduce, dual LLM, code-then-execute and context-minimization) share one rule: once an agent has ingested untrusted input, that input must not be able to trigger consequential actions. Each pattern gets there by stopping the agent from solving arbitrary tasks, and the authors recommend combining them, since "no single pattern is likely to suffice across all threat models or use cases." The abstract promises "provable resistance", but the body offers design reasoning and ten worked case studies with no proof or experiment, and says the patterns aim to mitigate the risk, "if not entirely eliminate" it.
flag a problem with BI-FIND-2025-0273
The authors advise capping an agent's permissions at its user's own access rights, then cutting further, as baseline practice apart from their six patterns.
Where the paper turns to identity, the user's own access is the ceiling, and the authors keep it apart from the six patterns as baseline practice every agent should follow. Their appendix says to authenticate the agent's user and to set the agent's permissions "maximally to the user's access rights", then cut them further. Their booking agent gets the user's own calendar privileges, which they say still leaves it open to injections in events created by other users. They weigh human confirmation case by case. In the email assistant, a vigilant user would stop many attacks but might miss covert exfiltration hidden in non-printing characters, and exempting "relatively safe" email inside the organization would still let an injected assistant ask a coworker to approve a security-sensitive action. On a shell assistant, confirmation would be cumbersome, and an attack could probably hide behind innocuous-looking commands. The paper does not discuss credentials, token exchange or delegation chains for the agent itself.
Also reported in +1 briefing
flag a problem with BI-FIND-2025-0274
Section by section
6showing 6 of 6
[1]Why general-purpose agents are not securable today, and the guiding principle
Luca Beurer-Kellner, Invariant Labs · Beat Buesser, IBM · Ana-Maria Creţu, EPFL · Edoardo Debenedetti, ETH Zurich · Daniel Dobos, Swisscom · Daniel Fabian, Google · Marc Fischer, Invariant Labs · David Froelicher, Swisscom · Kathrin Grosse, IBM · Daniel Naeff, ETH AI Center · Ezinwanne Ozoani, AppliedAI Institute for Europe · Andrew Paverd, Microsoft · Florian Tramèr, ETH Zurich · Václav Volhejn, Kyutai
AI trust
Why general-purpose agents are not securable today, and the guiding principle
Luca Beurer-Kellner, Invariant Labs · Beat Buesser, IBM · Ana-Maria Creţu, EPFL · Edoardo Debenedetti, ETH Zurich · Daniel Dobos, Swisscom · Daniel Fabian, Google · Marc Fischer, Invariant Labs · David Froelicher, Swisscom · Kathrin Grosse, IBM · Daniel Naeff, ETH AI Center · Ezinwanne Ozoani, AppliedAI Institute for Europe · Andrew Paverd, Microsoft · Florian Tramèr, ETH Zurich · Václav Volhejn, Kyutai
The authors argue that model-level defenses and input and output detectors are heuristic and cannot give guarantees, so general-purpose tool-using agents are unlikely to be made reliably safe with current models. They propose deliberately restricted, application-specific agents in which untrusted input, once ingested, cannot trigger consequential actions. This part rests on argument and design reasoning, with no experiments.
opinionfrom published text
[2]The six design patterns
Luca Beurer-Kellner, Invariant Labs · Beat Buesser, IBM · Ana-Maria Creţu, EPFL · Edoardo Debenedetti, ETH Zurich · Daniel Dobos, Swisscom · Daniel Fabian, Google · Marc Fischer, Invariant Labs · David Froelicher, Swisscom · Kathrin Grosse, IBM · Daniel Naeff, ETH AI Center · Ezinwanne Ozoani, AppliedAI Institute for Europe · Andrew Paverd, Microsoft · Florian Tramèr, ETH Zurich · Václav Volhejn, Kyutai
AI trust
The six design patterns
Luca Beurer-Kellner, Invariant Labs · Beat Buesser, IBM · Ana-Maria Creţu, EPFL · Edoardo Debenedetti, ETH Zurich · Daniel Dobos, Swisscom · Daniel Fabian, Google · Marc Fischer, Invariant Labs · David Froelicher, Swisscom · Kathrin Grosse, IBM · Daniel Naeff, ETH AI Center · Ezinwanne Ozoani, AppliedAI Institute for Europe · Andrew Paverd, Microsoft · Florian Tramèr, ETH Zurich · Václav Volhejn, Kyutai
In the action-selector pattern the model picks from predefined actions and never sees their output. Plan-then-execute fixes the tool calls before untrusted data arrives, which protects control flow only. Map-reduce gives each document its own isolated model. In the dual LLM pattern a privileged model holds the tools and a quarantined one reads the data, returning symbolic variables. Code-then-execute has the agent write a program; context-minimization drops the user's prompt after use.
technical artifactfrom published text + figures
[3]Case studies: OS assistant, SQL agent, email and calendar assistant
Luca Beurer-Kellner, Invariant Labs · Beat Buesser, IBM · Ana-Maria Creţu, EPFL · Edoardo Debenedetti, ETH Zurich · Daniel Dobos, Swisscom · Daniel Fabian, Google · Marc Fischer, Invariant Labs · David Froelicher, Swisscom · Kathrin Grosse, IBM · Daniel Naeff, ETH AI Center · Ezinwanne Ozoani, AppliedAI Institute for Europe · Andrew Paverd, Microsoft · Florian Tramèr, ETH Zurich · Václav Volhejn, Kyutai
AI trust
Case studies: OS assistant, SQL agent, email and calendar assistant
Luca Beurer-Kellner, Invariant Labs · Beat Buesser, IBM · Ana-Maria Creţu, EPFL · Edoardo Debenedetti, ETH Zurich · Daniel Dobos, Swisscom · Daniel Fabian, Google · Marc Fischer, Invariant Labs · David Froelicher, Swisscom · Kathrin Grosse, IBM · Daniel Naeff, ETH AI Center · Ezinwanne Ozoani, AppliedAI Institute for Europe · Andrew Paverd, Microsoft · Florian Tramèr, ETH Zurich · Václav Volhejn, Kyutai
Table 1 maps ten case studies to the patterns. For an operating-system assistant, the authors call a full shell a huge attack surface, think an attack could probably slip past confirmation with innocuous-looking commands, and show a find-and-mv plan still allowing exfiltration. The SQL agent's Python interpreter runs in a sandbox. The email assistant acts with the user's own privileges, and control-flow integrity leaves its action parameters exposed.
technical artifactfrom published text + figures
[4]Case studies: chatbots, booking, recommender, resume screening, medical, coding agent
Luca Beurer-Kellner, Invariant Labs · Beat Buesser, IBM · Ana-Maria Creţu, EPFL · Edoardo Debenedetti, ETH Zurich · Daniel Dobos, Swisscom · Daniel Fabian, Google · Marc Fischer, Invariant Labs · David Froelicher, Swisscom · Kathrin Grosse, IBM · Daniel Naeff, ETH AI Center · Ezinwanne Ozoani, AppliedAI Institute for Europe · Andrew Paverd, Microsoft · Florian Tramèr, ETH Zurich · Václav Volhejn, Kyutai
AI trustAgentic identity
Case studies: chatbots, booking, recommender, resume screening, medical, coding agent
Luca Beurer-Kellner, Invariant Labs · Beat Buesser, IBM · Ana-Maria Creţu, EPFL · Edoardo Debenedetti, ETH Zurich · Daniel Dobos, Swisscom · Daniel Fabian, Google · Marc Fischer, Invariant Labs · David Froelicher, Swisscom · Kathrin Grosse, IBM · Daniel Naeff, ETH AI Center · Ezinwanne Ozoani, AppliedAI Institute for Europe · Andrew Paverd, Microsoft · Florian Tramèr, ETH Zurich · Václav Volhejn, Kyutai
A customer-service chatbot authenticates the user before actions such as a return, or is barred from other users' data for the session. A booking agent gets the user's own calendar privileges. Recommender and resume-screening designs give each item its own isolated model with fixed outputs, though an item can still promote itself. A medical-diagnosis design removes the patient's prompt from context. A coding agent reads documentation only as strict API descriptions.
technical artifactfrom published text
[5]Conclusions and two recommendations
Luca Beurer-Kellner, Invariant Labs · Beat Buesser, IBM · Ana-Maria Creţu, EPFL · Edoardo Debenedetti, ETH Zurich · Daniel Dobos, Swisscom · Daniel Fabian, Google · Marc Fischer, Invariant Labs · David Froelicher, Swisscom · Kathrin Grosse, IBM · Daniel Naeff, ETH AI Center · Ezinwanne Ozoani, AppliedAI Institute for Europe · Andrew Paverd, Microsoft · Florian Tramèr, ETH Zurich · Václav Volhejn, Kyutai
AI trust
Conclusions and two recommendations
Luca Beurer-Kellner, Invariant Labs · Beat Buesser, IBM · Ana-Maria Creţu, EPFL · Edoardo Debenedetti, ETH Zurich · Daniel Dobos, Swisscom · Daniel Fabian, Google · Marc Fischer, Invariant Labs · David Froelicher, Swisscom · Kathrin Grosse, IBM · Daniel Naeff, ETH AI Center · Ezinwanne Ozoani, AppliedAI Institute for Europe · Andrew Paverd, Microsoft · Florian Tramèr, ETH Zurich · Václav Volhejn, Kyutai
The authors restate that securing general-purpose agents is out of reach with current capabilities, while application-specific agents can be secured through system design. They recommend building application-specific agents that follow the patterns and define clear trust boundaries, and combining patterns, since no single one is likely to suffice. Their case for practicality rests on the ten worked case studies.
opinionfrom published text
[6]Appendix A: general best practices
Luca Beurer-Kellner, Invariant Labs · Beat Buesser, IBM · Ana-Maria Creţu, EPFL · Edoardo Debenedetti, ETH Zurich · Daniel Dobos, Swisscom · Daniel Fabian, Google · Marc Fischer, Invariant Labs · David Froelicher, Swisscom · Kathrin Grosse, IBM · Daniel Naeff, ETH AI Center · Ezinwanne Ozoani, AppliedAI Institute for Europe · Andrew Paverd, Microsoft · Florian Tramèr, ETH Zurich · Václav Volhejn, Kyutai
AI trustAgentic identity
Appendix A: general best practices
Luca Beurer-Kellner, Invariant Labs · Beat Buesser, IBM · Ana-Maria Creţu, EPFL · Edoardo Debenedetti, ETH Zurich · Daniel Dobos, Swisscom · Daniel Fabian, Google · Marc Fischer, Invariant Labs · David Froelicher, Swisscom · Kathrin Grosse, IBM · Daniel Naeff, ETH AI Center · Ezinwanne Ozoani, AppliedAI Institute for Europe · Andrew Paverd, Microsoft · Florian Tramèr, ETH Zurich · Václav Volhejn, Kyutai
The appendix lists practices the authors want in every agent, apart from the patterns. Actions run in a sandbox with minimal per-action and per-user permissions, and output follows a strict format such as JSON. The agent's user is authenticated and the agent's access is capped at the user's rights, then reduced. User fatigue limits confirmation prompts, and users may ignore data and action attribution. The advice cites human-factors studies and is not evaluated.
opinionfrom published text