Briefing · Paper · source · updated · Boston Identity
AgentDojo's best defence against prompt injection was a tool list fixed before the agent reads anything
AgentDojo, from ETH Zurich and Invariant Labs, is a benchmark for prompt injection against AI agents that use tools. It gives agents 97 ordinary tasks in email, Slack, travel and banking, then plants instructions in the data they read. GPT-4o carried out the attacker's goal in about half the attacked cases, and a plain allowlist of tools chosen per task cut that to under one in ten.
arXiv (NeurIPS 2024 Datasets and Benchmarks) · Edoardo Debenedetti, Jie Zhang, Mislav Balunović, Luca Beurer-Kellner, Marc Fischer, Florian Tramèr · June 19, 2024 · read
What's happening
Finding2Against AgentDojo's fixed attack on GPT-4o, letting the model pick its tools before it reads untrusted data cut attack success from 57.7 to 6.8 percent.
Of the four defences AgentDojo tested on GPT-4o, two cut attacks below one in ten, and only the access control did it without losing tasks. Letting the model choose, before it reads any untrusted data, which tools the task needs and then withholding the rest cut the attacker's success from 57.7 to 6.8 percent while task completion rose slightly, to 73.1 percent. A prompt-injection detector reached a similar 8.0 percent but cut completion to 41.5 percent, and wrapping data in delimiters or repeating the user's prompt left 42 and 28 percent of attacks working. The filter fails where the tools cannot be planned ahead or where the tools the task legitimately needs are enough for the attack, 17 percent of cases. Every defence was tested against the paper's fixed attack only, not an adaptive one, and the authors expect prompt repetition would not hold up against adaptive attacks. In identity terms the filter grants least privilege per task, though the paper does not use the phrase.
Also reported in +1 briefing
flag a problem with BI-FIND-2024-0020
Against AgentDojo's strongest simple attack, GPT-4o followed an attacker's planted instruction in 47.7 percent of cases and Claude 3.5 Sonnet in 33.9 percent.
AgentDojo gives an agent 97 ordinary tasks across email and calendar, Slack, travel booking and online banking, and plants an attacker's instruction in the data the task reads, 629 cases in all. Against the strongest of its simple attacks, GPT-4o did what the attacker asked in 47.7 percent of cases (57.7 in the defence runs; the paper does not explain the gap) and Claude 3.5 Sonnet in 33.9 percent, and the share of user tasks still completed fell by roughly a quarter to a third. The authors find that more capable models tend to be easier to attack. Some attacker goals are the ones an identity team fears, such as sending a security code to an outside address, though the paper notes its attacks rarely succeed when the goal is that abnormally security-sensitive.
Also reported in +1 briefing
flag a problem with BI-FIND-2024-0019
Section by section
4showing 4 of 4
[1]Benchmark design: four suites, tasks and metrics (Sections 1-3)
AI trustAgentic identity
Benchmark design: four suites, tasks and metrics (Sections 1-3)
ETH Zurich and Invariant Labs build an extensible, stateful benchmark: four suites (Workspace, Slack, Travel, Banking), 97 user tasks, 27 injection tasks, 629 security cases (user x injection), checked by formal state-based utility and security functions rather than an LLM judge. Metrics: benign utility, utility under attack, targeted ASR.
technical artifactfrom published text + figures
[2]Attack results across models and attack ablations (Sections 4.1-4.2)
AI trustAgentic identity
Attack results across models and attack ablations (Sections 4.1-4.2)
Ten models face the Important message attack. Claude 3.5 Sonnet has top benign utility (78.22%), GPT-4o 69.00% with 47.69% targeted ASR (highest), Command-R+ lowest ASR 0.95% but 25.44% utility. More capable models tend to be easier to attack. Slack suite ASR 92%; injections at the end of tool output work best; knowing user and model names adds ~1.9 points.
technical artifactfrom published text + figures
[3]Prompt injection defenses on GPT-4o (Section 4.3)
AI trustAgentic identity
Prompt injection defenses on GPT-4o (Section 4.3)
Four defenses tested on GPT-4o: delimiters, BERT-based detector, prompt repetition (sandwiching), tool filter. Tool filter cuts ASR to 6.84% while raising benign utility to 73.13%; it works where the task needs only read tools and the attack needs write tools, fails for 17% of cases and for plans not knowable in advance. Detector gets 7.95% ASR but halves utility.
technical artifactfrom published text + figures
[4]Limitations and extensions (Section 5)
AI trust
Limitations and extensions (Section 5)
Authors list limits: simple attacks and defenses, manual task and utility specification, no multimodal agents, no constraints on injection length or format, no multi-task sessions. They frame it as a live benchmark with a leaderboard and MIT-licensed code, and say stronger adaptive attacks need LLMs that separate instructions from data.
technical artifactfrom published text