TRANSMISSION // 2612.04580v1
Do AI security benchmarks grade attacks correctly?
Source published
A replay-based audit finds that prompt-injection benchmark verdicts mostly hold up, but some checks miss what attackers actually achieve. Apparent changes in defense rankings are generally fragile.

When a benchmark says a prompt-injection attack worked, did the attacker’s intended action really happen? Researchers replayed published agent runs and compared the benchmarks’ verdicts with independent checks of the resulting state. Their findings suggest that grading can distort attack rates, even when it rarely changes which defense appears best.
Security benchmarks for AI agents often report an attack success rate: the share of tests in which an injected instruction appears to have worked. But “worked” can mean different things. Did the agent merely mention the attacker’s request, call a tool, or actually change the environment in the way the attacker intended? And would that change have happened anyway as part of the user’s legitimate task?
A new preprint by Jie Pan and Weicheng Wang examines how these grading choices affect conclusions about defenses. The authors ask two related questions: whether benchmark verdicts match independent evidence of an attacker’s intended effect, and whether using stricter checks changes decisions such as which defense to choose.
Replaying the same episodes
Rather than run agents again, the researchers replayed released records from two prompt-injection benchmarks, AgentDojo and AgentDyn, inside each benchmark’s own simulator. Replay let them reconstruct what happened to the simulated environment and compare different graders on the same episodes.
They organized grading methods by what they inspect: an agent’s text, a tool request, whether that request ran, the benchmark’s own final-state check, and independent specifications of the attacker’s intended effect. They also tested whether the user’s task, without the attack, could produce that effect. For example, if the user already asked the agent to transfer money to a particular account, the transfer alone may not show that an injection caused an attack to succeed.
The team compared the published checks with revised checks, existing audits, and language-model judges. Before examining results, they specified four decisions to track, including which defense to select and which model to rank as safest. Episodes that could not be replayed or had incomplete evidence were marked unknown rather than automatically counted as successes or failures.
State checks mostly held up—but not perfectly
The published verdicts and the researchers’ strictest independent grader agreed on most replayable episodes. They disagreed on about 2% of known episodes in each benchmark. In most disagreements, the benchmark’s own check called the attack successful while the independent grader did not.
Some checks plainly tested less than the attacker’s stated goal. In one banking example, a check meant to verify that private information appeared in a payment memo could pass simply because money reached the attacker’s account—even if the memo contained no private information. Other checks overlooked whether an email contained the requested material, or whether a transfer involved the specified amount. In one AgentDyn case, a user-requested repository transfer was counted as success for an attacker goal to delete a repository.
But not every disagreement proves that the benchmark was wrong. Natural-language goals can be ambiguous, and the independent specifications sometimes interpreted them more strictly than the benchmark did. The authors say that this stricter reading accounts for much of the overall difference. A third, exploratory specification for AgentDojo also found that the pooled change in the attack rate depended on how strictly certain goals were interpreted, though several specific check defects remained identifiable.
Grading based only on tool calls produced a different problem. It often counted attempted calls that a defense blocked, or legitimate user actions involving the same tool. Such graders could make defenses that block tools look much less effective than state-based checks suggested.
Rankings were fragile, not robustly overturned
Several graders changed a choice under the study’s predeclared comparison rule. On closer inspection, however, these apparent changes came down to near ties, broken ties, crossing a statistical threshold, or how crashed runs were counted. None of the different defense choices survived the authors’ check for unequal missing data, and none of the 17 different choices was statistically significant in their paired tests.
One language-model judge did reverse the choice between two leading AgentDojo defenses. It counted some attempted attacks and legitimate user actions as attacks, even when the intended effect did not occur. The reversal was not significant when the analysis accounted for test cases that shared the same user task. Four of the five judges tested also failed the researchers’ synthetic control checks; only one qualified, and it still made consequential errors.
The authors’ broader point is that graders can substantially change reported attack rates without providing strong evidence that one defense is better than another. In most of the defense comparisons they examined, the leading option was not significantly better than the runner-up under the published verdicts or the deterministic graders they tested.
What the study cannot settle
This is a preprint, not necessarily peer-reviewed research. Its conclusions concern released logs and grading rules for two related benchmarks; the authors did not run new agents, test real-world environments, or re-run the cyber and code-security benchmarks included in their review of earlier studies. AgentDyn also uses AgentDojo’s underlying framework, so the two benchmarks are not wholly independent examples.
Replay depends on being able to reconstruct the simulator from logs. Some episodes were unknown, and unknowns were more common in AgentDyn. The “intended effect” checks were written by language-model agents, not validated against human annotations, and the paper acknowledges that reasonable readers may disagree about ambiguous goals. The authors also found and corrected bugs in their own replay system during the work.
For benchmark builders, the paper recommends testing each check with examples of both a successful attack and a wrong action aimed at the right target, reporting crashes and missing evidence separately, and checking whether the user’s task alone can satisfy an attacker goal. For readers of benchmark scores, the practical lesson is to ask what a grader actually measures—and whether small differences between defenses are sturdy enough to support a ranking.
- AI security
- prompt injection
- AI benchmarks
- agent evaluation
- grading reliability
- AgentDojo
- AgentDyn
Related reading
Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.
A Bit Budget for Safer AI Agents
Source published
Shared keywords: ai security, prompt injection
Why more AI attacks don’t always make agents safer
Source published
Shared keywords: ai security, prompt injection
How PrismGuard Checks AI Agent Tool Calls
Source published
Shared keywords: prompt injection
When an AI Defense Learns to Refuse Too Much
Source published
Shared keywords: ai security, prompt injection
When Benign Chat History Becomes Attack Material
Source published
Shared keywords: ai security, prompt injection