Safeguards: How are the risks reduced? · MarLuc synopsis

CaMeL: a rule-based layer around AI agents blocked prompt-injection attacks in tests

PreprintDeterministic controlControls around the model

A fixed software layer controlling what an AI agent may do with untrusted data stopped every in-scope prompt-injection attack in a standard benchmark, at some cost in tasks completed.

Read the research (opens in a new tab)

The research at a glance

Research
“Defeating Prompt Injections by Design”, Edoardo Debenedetti et al.
Produced by
Google (AI company); Google DeepMind (AI company); ETH Zurich (University)
Published
24 Mar 2025; latest version 24 Jun 2025
Evidence
PreprintPublic research not yet peer-reviewed (for example on arXiv)
Type of research
Experiment
Control type
DeterministicA fixed rule that gives the same result every time for the same input
Topics
Controls around the model · Security and attacks
Checked
21 Nov 2026 against the research; independently checked 21 Nov 2026.

Research starting point. Not advice. Each synopsis describes one piece of research in the setting its authors tested; results may not hold for other models, versions or uses. Read the original before relying on it.

1Why it matters

Most defences against prompt injection (hidden instructions in content an AI reads) try to make the model itself resist, which can fail when attackers find new wording. This research asks whether a system built around the model, using established software-security ideas, can block harmful outcomes even if the model is fooled.

2What they did

The authors designed CaMeL, which splits an agent into two AI models: a privileged model that turns the user's request into a small program and never sees untrusted data, and a quarantined model that extracts information from untrusted data but cannot call tools. A custom interpreter runs the program, tracks where every piece of data came from and who may see it, and checks written security policies before each tool call, halting or asking the user for approval if a check fails. They tested it on the AgentDojo benchmark of simulated email, Slack, travel and banking tasks with 949 attacks. The June 2025 revision re-ran the evaluation with newer models from Google, Anthropic and OpenAI.

3What they found

As the authors report it, in the setting they tested.

  • In the June 2025 revision, the authors report that CaMeL solved 77% of AgentDojo tasks with provable security, against 84% for an undefended system; the first version had reported 67%.
  • What it stopped: with security policies in place, no prompt-injection attack in AgentDojo succeeded; the only attacks AgentDojo scored as successful were, in the authors' analysis, not due to prompt injection. In a comparison of defences on one model, successful attacks were 0 with CaMeL against 8 for the next best defence.
  • Some outcomes the benchmark counted as successful were outside the defence’s threat model, including manipulation of text shown to the user.
  • The authors state that CaMeL cannot stop attacks that only change text shown to users, such as misleading summaries or phishing messages, and that it is vulnerable to side-channel attacks (leaking information indirectly through observable behaviour).
  • The costs: about 2.8 times the input and output tokens for the median task, lower task completion in the travel tasks for some models, and approval requests to users when policies block an action.

4Limits

What the research does not show, or where its results may not carry over.

  • This is a preprint and has not been peer-reviewed; no conference or journal version was found.
  • Security was tested against AgentDojo's existing attacks in simulated environments. The authors suspect attacks that chain together individually allowed steps could work against CaMeL, and say prompt injection is not fully solved.
  • The approach depends on people writing and maintaining security policies, and on tools supporting the data-tracking scheme; the authors warn that frequent approval requests can lead users to approve harmful actions out of fatigue.
  • The June 2025 revision tested models dated up to May 2025 (for example o3-2025-04-16); later models were not tested.

5What it could mean for an organisation

General information, not advice. Whether it applies depends on the systems you build, buy or use.

  • Organisations deploying agents that handle untrusted content have, in this research, an example of a deterministic control (fixed rules enforced by software, not by a model's judgement) that blocked all benchmark prompt-injection attacks; the authors contrast this with other defences, which they describe as probabilistic and without guarantees.
  • Such a layer does not cover manipulated text shown to people, such as phishing or misleading summaries, so other measures are still needed for those risks.
  • Running this kind of control means writing and maintaining policies, accepting more computing cost and some lost tasks, and managing how often users are asked to approve actions.
  • The authors recommend using CaMeL together with other defences as defence in depth rather than on its own.

Sources

  1. [1]arXiv abstract page, arXiv:2503.18813 (v2) (opens in a new tab)The research itself · arxiv.org
  2. [2]Full paper, arXiv PDF (v2, June 2025) (opens in a new tab)The research itself · arxiv.org
  3. [3]arXiv abstract page, first version (v1, March 2025) (opens in a new tab)The research itself · arxiv.org

Checked 21 Nov 2026 · independently checked 21 Nov 2026 · synopsis version 1.0

Spotted an error or newer research? Tell us