Skip to content
IAM Insights

Briefing · Paper · source · published · Boston Identity

In Agent Security Bench, eight text-level defenses left agent hijacking high; none checks the tool call

Agent Security Bench, an ICLR 2025 benchmark from Zhejiang University and Rutgers, attacks LLM agents through the system prompt, the user's request, tool output and memory, on 13 models. Its headline 84.30% is the average for the strongest attack, three injections at once; the average across all five attack types is 46.91%. The eight defenses tried all work on the text the model reads, and the best left direct injection succeeding 44.45% of the time.

arXiv · Hanrong Zhang, Yifei Yao, Chenlu Zhan, Hongwei Wang, Jingyuan Huang, Kai Mei, Zhenting Wang, Yongfeng Zhang · May 30, 2025 · read

share
22,235 words. With Hanrong Zhang, author, Zhejiang University; Jingyuan Huang, author, Rutgers University; Kai Mei, author, Rutgers University; Yifei Yao, author, Zhejiang University; Zhenting Wang, author, Rutgers University; Chenlu Zhan, author, Zhejiang University and 2 more.
01

What's happening

Finding4
BI-FIND-2025-0275Lead finding

None of the eight defenses Zhang and colleagues tested held agent hijacking down, and the authors call current prevention-based defenses inadequate.

None of the eight defenses Zhang and colleagues tested held agent hijacking down. Against the strongest wording of direct injection, which succeeded 78.38% of the time with no defense, Dynamic Prompt Rewriting brought the average to 44.45% and Paraphrasing to 56.87%, while Delimiters and Instructional Prevention left it at 79.08% and 76.77%. Against injection through tool output, no defense brought the 27.98% average below 24.96%, and an LLM asked to spot poisoned memory entries missed 66% of them. The authors write that "current prevention-based defenses are inadequate". We note that every defense in the set works on the text the model reads, and none limits which tools a task may call, although each attack is scored by whether the agent calls the attacker's tool.

Fig. 1

Every attack in the benchmark arrives as text and counts as a success at the same point, a call to the attacker's tool; the eight defenses tested all act on the text.

Drawn from the paper's figure 1 and its Tables 2 and 5Source dated May 30, 2025Passage: Threat model and the five attack families

Swipe for the full figure →

BI-FIND-2025-0276

Of ASB's single attacks, instructions added to the user's request worked best, making the agent call the attacker's tool in 72.68% of attacked tasks on average.

Of ASB's single attacks, instructions added to the user's own request worked best. Across 13 backbone models, direct prompt injection got the agent to call the attacker's tool in 72.68% of attacked tasks on average; instructions planted in tool output managed 27.55%, and poisoned memory on its own 7.92%. The paper's headline 84.30% is the Mixed Attack, all three at once, and the average over all five attack types is 46.91%. The tools are simulated: each returns a fixed reply, and the attacker's tool is placed in the agent's tool list as part of the attack setup.

high confidencebest source: independent researchobserved May 2025EvidenceAttack results across 13 backbonesThreat model and the five attack familiesAppendix D.1
flag a problem with BI-FIND-2025-0276
BI-FIND-2025-0278

Whoever writes an agent's system prompt can plant a backdoor without training the model, and in ASB this worked in 42.12% of attacked tasks on average.

Whoever writes an agent's system prompt can plant a backdoor without training the model. In ASB's plan-of-thought attack, an attacker posing as a prompt engineer adds worked examples that tie a trigger phrase to a plan calling the attacker's tool. Run on five of the ten agents, it worked in 100% of attacked tasks on GPT-4o and 95.50% on GPT-4o-mini, against 17.50% on Claude-3.5 Sonnet and 8.25% on GPT-3.5 Turbo, 42.12% on average. Of the two defenses tried, Paraphrasing brought the average to 29.06%, and Shuffle left it at 44.37% while raising Claude-3.5 Sonnet's rate to 93.50%, which the authors do not explain.

high confidencebest source: independent researchobserved May 2025EvidenceThreat model and the five attack familiesAttack results across 13 backbonesAppendix D.1+1
flag a problem with BI-FIND-2025-0278
BI-FIND-2025-0277

In ASB, more capable models were hijacked more often until refusals pulled the rate down at the top, a link the authors draw from 13 models but do not test.

In ASB, more capable backbones were hijacked more often until, at the top, refusals pulled the rate back down; the authors put the rise down to better instruction following. Under direct injection GPT-4o refused 20.05% of attacks and was hijacked in 60.35% of them, while GPT-3.5 Turbo refused 3.00% and was hijacked in 98.40%. Claude-3.5 Sonnet, the only one of the 13 to finish every task when not attacked, still averaged 56.44% attack success across the five attack types. The capability link is the authors' reading of 13 models; they do not test the cause.

flag a problem with BI-FIND-2025-0277
02

Section by section

6

showing 6 of 6

[1]

What ASB is and what it claims over earlier agent-security benchmarks

Hanrong Zhang, Zhejiang University · Jingyuan Huang, Rutgers University · Kai Mei, Rutgers University · Yifei Yao, Zhejiang University · Zhenting Wang, Rutgers University · Chenlu Zhan, Zhejiang University · Hongwei Wang, Zhejiang University · Yongfeng Zhang, Rutgers University

AI trust

Zhang and colleagues present Agent Security Bench (ASB) as the first benchmark to attack an LLM agent at every stage of its loop: the system prompt, the user's request, tool use and memory. It covers 10 scenarios with one agent each, 400 attacker tools, 13 attack methods, eight distinct defenses, 13 backbone models and 7 metrics. They say earlier benchmarks such as InjecAgent and AgentDojo test only indirect injection or a few scenarios. Code and data are on GitHub.

technical artifactfrom published text + figures

[2]

Threat model and the five attack families

Hanrong Zhang, Zhejiang University · Jingyuan Huang, Rutgers University · Kai Mei, Rutgers University · Yifei Yao, Zhejiang University · Zhenting Wang, Rutgers University · Chenlu Zhan, Zhejiang University · Hongwei Wang, Zhejiang University · Yongfeng Zhang, Rutgers University

AI trust

The attacker is assumed to know the attack tools and to be able to add one to the agent's toolkit, for example through a third-party API platform. Posing as a prompt engineer, it can also plant a backdoor in the system prompt, and it has black-box access to the memory store but no knowledge of the backbone model. An attack succeeds when the agent calls the attacker's tool. The paper defines five attack families and tests eight defenses against them.

technical artifactfrom published text + figures

[3]

Attack results across 13 backbones: Mixed Attack 84.30%, memory poisoning 7.92%

Hanrong Zhang, Zhejiang University · Jingyuan Huang, Rutgers University · Kai Mei, Rutgers University · Yifei Yao, Zhejiang University · Zhenting Wang, Rutgers University · Chenlu Zhan, Zhejiang University · Hongwei Wang, Zhejiang University · Yongfeng Zhang, Rutgers University

AI trust

Averaged over 13 backbones, the Mixed Attack (direct and indirect injection plus poisoned memory) succeeded 84.30% of the time, direct injection 72.68%, the plan-of-thought backdoor 42.12%, indirect injection 27.55% and memory poisoning 7.92%. The average over all five is 46.91%, with 5.68% of tasks refused. The authors find more capable backbones hijacked more often until refusals rise at the top. On their combined score of task success and resistance, Claude-3.5 Sonnet ranks first at 43.56%.

technical artifactfrom published text + figures

[4]

Prompt-level defenses against DPI and IPI barely help

Hanrong Zhang, Zhejiang University · Jingyuan Huang, Rutgers University · Kai Mei, Rutgers University · Yifei Yao, Zhejiang University · Zhenting Wang, Rutgers University · Chenlu Zhan, Zhejiang University · Hongwei Wang, Zhejiang University · Yongfeng Zhang, Rutgers University

AI trust

Against direct injection in its strongest wording, which succeeded 78.38% of the time undefended, Dynamic Prompt Rewriting cut the average to 44.45% and Paraphrasing to 56.87%. Delimiters (79.08%) and Instructional Prevention (76.77%) barely moved it. Against indirect injection no defense brought the 27.98% average below 24.96%. The authors call current prevention-based defenses inadequate; each one changes the prompt the model reads.

technical artifactfrom published text + figures

[5]

Appendix D.1: combinations, PoT triggers, injection types, aggressive tasks

Hanrong Zhang, Zhejiang University · Jingyuan Huang, Rutgers University · Kai Mei, Rutgers University · Yifei Yao, Zhejiang University · Zhenting Wang, Rutgers University · Chenlu Zhan, Zhejiang University · Hongwei Wang, Zhejiang University · Yongfeng Zhang, Rutgers University

AI trust

Appendix D.1 breaks the attacks down. Direct injection plus poisoned memory reaches 83.02%, close to the three-way mix. All five backdoor triggers succeeded 99.75% to 100% of the time, but those runs used GPT-4o only; in the main table Claude-3.5 Sonnet's backdoor rate is 17.50%. The wording of an injection matters little, 38.01% for the combined template against 35.43% for the plain one, and harmless-looking injected tasks succeed more often than destructive ones, 38.98% against 33.12%.

technical artifactfrom published text + figures

[6]

Appendix D.2: why the defenses fail, utility cost, PoT and memory defenses

Hanrong Zhang, Zhejiang University · Jingyuan Huang, Rutgers University · Kai Mei, Rutgers University · Yifei Yao, Zhejiang University · Zhenting Wang, Rutgers University · Chenlu Zhan, Zhejiang University · Hongwei Wang, Zhejiang University · Yongfeng Zhang, Rutgers University

AI trust

Appendix D.2 adds the costs. Delimiters lower task success with no attack by 6.94 points. Shuffling the steps in the system prompt's examples left the backdoor's average at 44.37% and lifted Claude-3.5 Sonnet's rate from 17.50% to 93.50%, while paraphrasing brought the average to 29.06%. An LLM checking memory for poisoned entries missed 66% of them and flagged 20% of clean ones, at nearly the same rates on every backbone.

technical artifactfrom published text + figures

Terms used

Agent Security Bench
Agent Security Bench (ASB): an academic benchmark, published at ICLR 2025, that measures how often attacks such as prompt injection and memory poisoning hijack LLM agents, and how well defenses hold.
LLM
The text-predicting AI model behind chatbots and agents. It follows instructions statistically, which is why an instruction hidden in its input can redirect it.
Agent hijacking
Taking over an AI agent, usually by planting instructions in content it reads, so it acts for the attacker.
Direct prompt injection
Prompt injection where the attacker edits the instruction the user gives the agent, rather than text the agent later reads from a tool or document.
GPT-3.5-Turbo
OpenAI's chat model in the GPT-3.5 (Generative Pre-trained Transformer) family.
AgentDojo
A benchmark environment for testing whether a large language model (LLM) agent completes its task while resisting prompt-injection attacks in tool outputs and external content.
Application programming interface
Application programming interface: a defined way for software components to request operations or exchange data.
Memory poisoning
Planting malicious entries in an agent's long-term memory or retrieval store so they are fetched later and steer its actions.

Read next

Was this briefing useful?

Share this briefing

Every finding, forecast and open question on this site has a permanent ID. If we reword one, its ID stays the same, so a citation keeps pointing to the same claim.

Follow us on LinkedInRSS feed

Working on an identity problem this research touches? Talk to Boston Identity