Risks: How does AI go wrong? · MarLuc synopsis
AgentDojo: a test bed showing how hidden instructions hijack AI agents
Peer-reviewedBoth, layered controlSecurity and attacksA reusable test environment for AI agents found that planted instructions succeeded in under a quarter of cases against the top-performing agents, and no defence tested was complete.
Read the research (opens in a new tab)The research at a glance
- Research
- “AgentDojo: A Dynamic Environment to Evaluate Prompt Injection Attacks and Defenses for LLM Agents”, Edoardo Debenedetti et al.
- Produced by
- ETH Zurich (University); Invariant Labs (Company)
- Published
- 19 Jun 2024; latest version 24 Nov 2024
- Evidence
- Peer-reviewed, NeurIPS 2024, Datasets and Benchmarks Track (Advances in Neural Information Processing Systems 37)Published in a peer-reviewed journal or accepted at a peer-reviewed conference (venue named)
- Type of research
- Benchmark
- Control type
- Both, layeredDeterministic and probabilistic controls combined
- Topics
- Security and attacks · Evaluation and testing · Controls around the model
- 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
AI agents read emails, web pages and files, then act through tools. Prompt injection (hidden instructions in content an AI reads) can hijack those actions. This research builds a repeatable way to measure both how useful an agent is and how often such attacks succeed, with and without defences.
2What they did
The authors built four simulated environments (a workspace with email, calendar and cloud storage; Slack; travel booking; and e-banking) filled with dummy data. They wrote 97 everyday user tasks and combined them with attacker goals to make 629 security test cases. Success was scored by fixed checks on the state of the environment rather than by another AI model. They tested agents built on ten AI models available in 2024, then tested four published defences on one model (GPT-4o).
3What they found
As the authors report it, in the setting they tested.
- Without any attack, the models solved fewer than 66% of tasks; with attacks, most lost 10% to 25% of absolute utility (the share of tasks completed correctly).
- The authors' attacks succeeded against the top-performing agents in under 25% of cases, but rates varied by setting: 92% in the Slack environment, where attackers control much of the content the agent reads.
- The authors report that more capable models tended to be easier to attack, which they explain partly by weaker models failing to carry out the attacker's goal at all.
- A prompt injection detector (a trained classifier, so probabilistic) cut attack success to 8% but raised too many false alarms and significantly reduced utility.
- A tool filter, where the agent limits itself to the tools a task needs before reading untrusted data, cut attack success to 7.5%, but cannot help when the tools needed for the task are enough for the attack, which was true in 17% of test cases.
4Limits
What the research does not show, or where its results may not carry over.
- The agents ran in simulated environments with dummy data, covering four application areas and single tasks; the authors note that agents given several tasks over time are not yet covered.
- The models tested were 2024 versions, and the defences were tested on one model only.
- The authors say they used relatively simple attacks and defences; one defence (repeating the user's request after each tool result) is, in their words, unlikely to withstand adaptive attacks.
- The paper was revised after publication to fix a bug in one model's implementation and update the travel tasks; this synopsis uses the latest version (November 2024).
5What it could mean for an organisation
General information, not advice. Whether it applies depends on the systems you build, buy or use.
- Organisations whose agents both read outside content and can act (send emails, make payments, share links) face higher risk where attackers control more of what the agent reads, as the 92% Slack result shows.
- Limiting an agent to the tools a task needs was the most effective defence in these tests, but it leaves a gap where the same tools serve both the task and the attack.
- Detection classifiers can trade security for usefulness: in these tests the detector blocked many legitimate tasks.
- A repeatable benchmark with fixed scoring gives a way to measure an agent design's usefulness and security together before deployment; the authors released AgentDojo as an extensible framework.
6Related in MarLuc's libraries
AI governance: EU AI Act · NIST AI 100-2, ARIA and Cyber AI Profile · EU CRA · ISO/IEC 42001
Sources
- [1]arXiv abstract page, arXiv:2406.13352 (v3) (opens in a new tab)The research itself · arxiv.org
- [2]Full paper, arXiv PDF (v3) (opens in a new tab)The research itself · arxiv.org
- [3]NeurIPS 2024 proceedings page (Datasets and Benchmarks Track) (opens in a new tab)The research itself · proceedings.neurips.cc
Checked 21 Nov 2026 · independently checked 21 Nov 2026 · synopsis version 1.0
Spotted an error or newer research? Tell us