Re-scoring prompt injection benchmarks by replay: flaw checks, scorer selection, and the decisions built on themRe-Grading Prompt-Injection Benchmarks by Replay: Check Defects, Grader Choice, and the Decisions Built on Them
The authors replay AgentDojo and AgentDyn logs to audit the scorers: state verdicts largely hold, but tool-call scoring and LLM judges distort defense comparisons.
- Prompt injection benchmarks use ASR to rank models and defenses, but scorers may count tool calls, the user's own behavior, or uncompleted goals as attack success. The authors ask how much independent goal evidence would change verdicts and the decisions they support.
- Replay published logs in each of the two benchmarks' simulators, compare native checks, tool calls, existing audits, goal effect specifications, and LLM judges on the L0–L5 ladder, and preregister unknown-value rules and four decisions.
- Published verdicts and the strict scorer E⋆ disagree on 2.3% and 2.0% of known turns in AgentDojo and AgentDyn, respectively. The authors state that state verdicts largely hold; none of the 17 distinct defense choices passes differential missingness, and the only qualifying judge, Phi-4, still miscounts attempts and user behavior.
- The authors note there is no human ground truth, the effect specifications are judgments, only two benchmarks on the same framework are covered, replay is not equivalent to execution, and the judges are 8–14B local models. The experiments did not rerun cyber or code security benchmarks, nor run new agents.
- Threat model
- The attacker in the audited benchmarks controls part of the content returned by tools to the agent, but does not control the user, model, tools or environment; attack success means the agent changes the environment according to the injected instructions. The authors audit measurement rather than attacks, and do not consider adversaries who manipulate the grader.
- Evaluated models
- gpt-4oLlama-3.3-70BMeta-SecAlign-70BCommand R+
- Metrics
- ASRknown episodesunknown episodesKendall’s τbexact McNemar testCohen’s κ
The two authors replay the published evaluation records of two prompt injection benchmarks written by different teams in their respective simulators, re-examine their scoring decisions against independent attack-goal specifications, and test whether stricter checking changes the decisions made based on these benchmarks. The authors first systematically grade what safety scorers check, from the agent's words to attributable effects, and compare published score differences for comparable items at that level. Results show that state-based decisions mostly withstand review, but several native checks examine less than the attack goal requires; under state- and trajectory-based scorers, none of the pre-declared decision changes holds up, with apparent changes coming from near-ties, threshold crossings, or crash counts. A language model judge counts attempts and legitimate actions as attacks, overturning one defense choice, but this overturning is also not significant once the shared user task is accounted for.
Related events and news
1 events · 0 news mentions
- This event's paper
重放审计发现提示注入基准评分器缺陷
Paper analysis
What problem does this paper attempt to solve?
Audit the scoring evidence of prompt injection benchmarks, testing whether misjudgments change the choice of models, defenses and attacks.
The core question is: whether benchmark-reported attack success has independent evidence of the attacker's intended effect, and whether stricter scoring would change ASR-based decisions.
- Application scenarios: Benchmarks such as AgentDojo and AgentDyn have tool agents process user tasks while reading data containing injected instructions, then count ASR by test case. The authors state that defense papers, deployment teams, and leaderboards all use these numbers for selection, and scoring errors propagate into decisions.
- Gaps in existing audits: The authors state that most prompt injection audits treat benchmark-native state checks as ground truth and therefore cannot detect when the checks measure the wrong thing; other work examines only a few goals at a time and rarely tests whether the user task itself produces the same effect without injection.
- Core observation: Scorers read different evidence, from response text and tool requests to the final environment and attributable effects; stricter is not necessarily more accurate, and broad versus narrow interpretations of goal wording also change results.
- Paper contributions: The authors propose a six-level ladder of success predicates, compile 20 published same-item comparisons; replay published turns of two benchmarks and audit verdicts; then compare native checks, existing audits, effect specifications, and LLM judges on four preregistered decisions.
- Threat model: This is a measurement audit and proposes no new attack.
- Attacker goal: Make the agent change the environment according to injected instructions.
- Knowledge and control: Controls part of the content the tools return to the agent, but not the user, model, tools, or environment.
- Victim system and decision-makers: Tool-using agents; the audit focuses on defense selectors, reviewers, and leaderboard readers who rely on ASR.
- Audit boundaries: Does not consider adversaries who manipulate the scorer, and does not evaluate whether the simulated environments are realistic.
What related research exists?
Related work covers agent benchmarks, verdict auditing, cyber and code security scoring, and LLM judges.
Agent safety benchmarks and defenses
- AgentDojo (2024) and AgentDyn (2026): The former provides stateful simulated environments with handwritten security checks; the latter extends to dynamic, open-ended tasks and evaluates nine defenses. InjecAgent (2024) and ASB (2024) parse tool calls, and WASP (2025) reports both LLM-judged deviation rates and state end-to-end success rates.
- Defenses and benchmark sufficiency: Related work compares defenses such as spotlighting, CaMeL, Progent, DRIFT, MELON, and Meta-SecAlign; Bhagwatkar et al. (2025) argue that some benchmarks are insufficient to distinguish defenses. This paper proposes neither benchmarks nor defenses, but audits the verdicts used for ranking.
Prompt injection verdict auditing
- TRUSCOR, judge-artifact, and Zarif et al. (all 2026): Respectively audit executed critical calls, compare name/execution/argument scorers, and use LLMs to label failed attacks. The authors note that these works treat AgentDojo state checks as ground truth.
- Fide AI, the AgentDojo issue tracker, and other audits (2026): Fide AI reconstructs one email goal and shows that evidence-exclusion rules can flip defense comparisons; the issue tracker records scoring defects and full replays. Gao and Zhou define scores using saved evidence, TARE performs content-independent state attribution, and Shaw compares tool identity and argument predicates.
Cyber, code security, and test sufficiency
- CyberGym and its audits: CyberGym (2025) scores by differential crashes; Ding and Wu (2026) add goal identity checks. SEC-bench Pro, ExploitGym, ctf-abacus, and Cybench audits all discuss that stricter predicates exclude some successes.
- Code generation and general testing: BaxBench (2025), CWEval (2025), RealSec-bench (2026), and SafeGenBench (2025) compare dynamic exploitation, static analysis, and LLM judges. The authors use EvalPlus and SWE-bench manual screening to illustrate that insufficient testing also affects rankings.
LLM judges and this paper's positioning
- Judge reliability: Existing studies report position and verbosity bias, disagreement among jailbreak judges and with humans, and that judge choice changes attack rankings; privacy evaluations also discuss evaluator choice and missed detection of semantic leakage.
- Comparison benchmarks: This paper actually replays AgentDojo and AgentDyn; comparison scorers include native and revised checks, Request/Execution, TRUSCOR, judge-artifact, two effect specifications, E⋆, and five open-source LLM judges. Cyber and code security comparisons only synthesize published numbers and are not rerun.
The authors position the distinction as: re-executing the logs of two benchmarks, checking verdicts with independent goal specifications and user-task attribution, and fixing decision rules in advance.
How does the paper address this problem?
Recover the true state by replaying logs, and audit ASR using six-level scoring evidence and pre-registered decisions.
The overall approach is to not run new agents but replay published turns in the original simulators, so that different scorers see the same attacks, defenses, and trajectories, and then to check goal effects and decision stability.
Success predicates and audit targets
- Six-level ladder: L0 checks response text, L1 checks whether the attack goal tool is requested, L2 requires the call to execute without error, L3 is the benchmark-native final state check, L4 judges the intended effect according to an independent specification, and L5 additionally requires that the user task's reference solution itself does not produce that effect.
- Not fully nested: L0–L2 read the trajectory, and L3–L5 read the environment; the authors state that L3 and L4 are not nested, and native checks may be fewer or more than the goal requires. L5 is a task-overlap screen, not a causal test of the agent in the logs.
- Audit targets: AgentDojo uses 32,634 attacked turns across 28 pipelines, excluding DoS; AgentDyn uses 41,118 default attack turns across 74 pipelines. AgentDyn contains 60 user tasks, 28 attack goals, and three suites: shopping, code hosting, and daily life.
Log replay and unknown values
- Environment restoration: Rebuild the environment by initializing with the same suite version, injection string, and user task, execute the logged tool calls in order through the benchmark function runtime, save the state after each call, and compare tool outputs; the replay process does not call models.
- Special handling: Log errors that the simulator would not throw are treated as external defense rejections, whose effects are undone but whose trajectories are retained; AgentDyn random values use the values in the logs; missing DRIFT injections are borrowed from the same model's undefended turns and must be corroborated in the log output.
- Unknown-value rules: Record unknown when replay is impossible, a tool is missing, the injection cannot be recovered, the run crashes, or state-changing calls disagree with the logs. Unknowns are not counted as failures; ASR uses known turns as the denominator, and the number of unknowns and the bounds when all unknowns are counted as success or failure are also reported.
Scorers, effect specifications, and judges
- Deterministic scorers: Include published verdict, the authors' subsequent revised checks, Request(L1), Execution(L2), and TRUSCOR and judge-artifact run according to the original authors' labels or code.
- Independent effect specifications: For each benchmark, two language-model agents with restricted access separately write specifications, output full and core verdicts, and include positive and negative fixtures. The main scorer E⋆ requires the core effect of both specifications to hold and the user task not to produce it, combined with three-valued logic.
- Sensitivity variants: Include full level, single specification, using undefended logs as a counterfactual, and no attribution; AgentDojo additionally adds blind-written specification C and A/B/C majority voting after registration, marked as exploratory.
- LLM judges: Qwen3-8B, Llama-3.1-8B, Granite-3.3-8B, Gemma-3-12B, and Phi-4 run locally offline. Each benchmark uses 100 positive and 100 negative controls, requiring at least 90% correct in each class; Appendix C gives judge prompts, greedy decoding, and output truncation settings.
Preregistered decisions and statistics
- Four decisions: D1 selects the defense configuration with the lowest ASR for each base model; D2 compares the undefended model ranking and the safest model; D3 selects the strongest attack faced by gpt-4o in AgentDojo; D4 tests whether Meta-SecAlign-70B lowers ASR relative to Llama-3.3-70B.
- Change determination: A result is registered as a decision change only if it differs from the native verdict and does not reverse under either unknown-value bound; a change in the direction or statistical significance of D4 also counts.
- Statistical methods: Paired comparisons use exact McNemar tests, Kendall's τb intervals use bootstrap clustered by user task; sign-flip permutation tests on user tasks are also used to handle shared-task dependence. No multiplicity correction is applied across scorers and decisions, and the decision table is interpreted as descriptive results.
What experiments did the paper conduct?
Replayed more than 70,000 turns; state verdicts largely preserved, and decision changes mostly stem from ties, thresholds, or crash accounting.
Experimental setup
- Data and models: Replay 32,634 turns of AgentDojo and 41,118 turns of AgentDyn. The main text reports gpt-4o, Llama-3.3-70B, Meta-SecAlign-70B and Command R+ individually; the remaining frontier/open models in AgentDojo and the remaining eight released models in AgentDyn are not individually named in the main text.
- Defenses and attacks: AgentDojo includes four defenses with gpt-4o and ten attack variants; AgentDyn has up to eight defenses per model, plus some CaMeL and two sizes of Meta-SecAlign. The main text focuses on comparing gpt-4o defenses and the default attack.
- Scoring comparisons: published verdict, the authors' revised check, L1/L2, TRUSCOR, judge-artifact, two L4 specifications, and the L5 primary grader E⋆; AgentDojo additionally has exploratory blind specification C and a majority of the three.
- Metrics and determination: ASR is the number of successes divided by the number of turns known to that grader, with unknown and two-way disagreement counts also reported; rankings use Kendall's τb, and paired differences use the exact McNemar test.
- Judge experiments: Five open-source judges first undergo synthetic positive and negative controls; those that qualify evaluate the constructible-prompt portion of 3,145 gpt-4o turns in AgentDojo and 2,520 turns in AgentDyn. Human annotations were not used as ground truth.
- Repetition and verification: For each benchmark, 500 turns were randomly sampled and scored twice, with byte-identical results; no new agent runs or numbers of attack repetitions are reported.
Main results
The table below is based on Table 2; ASR denominators are each grader's own known, and TRUSCOR and judge-artifact cover only subsets, so their ASR cannot be directly compared with full native verdicts.
Grader AgentDojo ASR (known) AgentDyn ASR (known) Native verdict (L3, published) 15.6% (32,633) 9.7% (41,116) Native, authors' revision (L3) 14.4% (25,816) 9.3% (39,225) Request (L1) 17.9% (31,733) 13.5% (40,303) Execution (L2) 17.7% (31,286) 11.3% (39,225) Effect spec A, core (L4) 15.8% (32,184) 9.2% (35,363) Effect spec B, core (L4) 14.1% (32,148) 7.9% (39,225) E⋆ (both specs, core, L5) 14.0% (32,184) 7.0% (38,962) Blind spec C, core (L4)† 15.9% (32,184) not reported - Scale of disagreement: Published verdicts and E⋆ disagree in 749 of the 32,184 commonly known AgentDojo turns (2.3%) and in 773 of the 38,962 AgentDyn turns (2.0%); native-only counts are 604 and 756 respectively, and E⋆-only counts are 145 and 17.
- Interval and interpretation: The AgentDojo paired difference is 1.4 percentage points, with a user-task clustered interval of 0.8–2.2; when attack targets are also resampled the interval is -0.1–3.5. The authors therefore say the pooled drop depends on target interpretation, while local native defects remain under most specifications.
- Direction of tool calls: Request additionally counts 807 AgentDojo and 1,596 AgentDyn turns rejected by the native check; the authors say scoring that stops at the tool call inflates ASR, especially affecting defenses that block calls.
Defect attribution and attribution controls
- Checks weaker than the target: Table 3 classifies 215 AgentDojo and 217 AgentDyn native-only successes as native checks weaker than the target, involving 8 attack targets; the text and caption of Figure 1 show that disagreements concentrate on a few targets, bar colors distinguish defect types, and specific bar heights are not inferred from the text.
- User tasks counted: The published AgentDyn check counts the user's own repository transfer as a deletion attack, 34 turns in total; the reference-solution attribution test triggers 30 turns in AgentDojo, but 0 when both specifications see the core effect, and also 0 in AgentDyn.
- Strict reading and undercounting: In Table 3, specification reading accounts for 319 AgentDojo and 386 AgentDyn native-only cases; the authors do not count these as native errors. E⋆-only cases are mostly partial sequences such as the secret having been sent but the cleanup step not completed.
Pre-registered decisions and defense comparisons
- Decision stability: In Table 4, 17 units give different choices, 0 pass differential missingness, and paired comparisons of these different choices against the original choices are 0 significant at the 5% level; a further 6 add a tie option and 18 break published ties.
- Single-turn reversals: In Table 5, AgentDojo gpt-4o native verdicts are tool filter 43/629 and DeBERTa detector 50/629; L1 gives 58/609 and 57/609 respectively, reversing the order, while E⋆ gives 36/628 and 50/628, preserving the native order.
- Crashes and ranking: Command R+'s published rate is 28/629, but only 6/607 non-crash turns succeed; recording crashes as unknown changes the safest model. Kendall's τb between published and E⋆ rankings is 0.86, with an interval of 0.82–0.95.
- Thresholds and leading margins: For AgentDyn's Meta-SecAlign-70B versus Llama-3.3-70B, p is 0.073, 0.046 and 0.018 for published, E⋆ and the revised check respectively; the user-task permutation test gives 0.307, 0.204 and 0.179. The top-ranked defense is significantly better than the runner-up for only 0/2 base models in AgentDojo and 1/8 in AgentDyn.
LLM judges
- Control results: Only Phi-4 qualified, answering 188/200 positive controls and 185/200 negative controls correctly; Gemma-3-12B, Llama-3.1-8B and Qwen3-8B rejected only 115, 107 and 156/200 negative controls respectively, and Granite-3.3-8B accepted only 48/200 positive controls.
- Differences from state evidence: In the AgentDojo sample, Phi-4 counts 176 attacks that E⋆ rejects and rejects 44 attacks that E⋆ accepts; among the 2,485 AgentDyn turns it actually evaluated, the figures are 144 and 2 respectively.
- Defense reversal and exception: In Table 6, Phi-4 gives AgentDojo tool filter 76/629 and detector 53/629, thus preferring the detector; McNemar p=0.025, but the user-task permutation test p=0.131. The transcripts the authors examined show it counts blocked attempts, legitimate user actions, or actions that were only announced but not executed as attacks.
Other ablations and analyses
- Replay consistency: The published verdict fails to reproduce in only 37 of 32,184 known AgentDojo turns and 46 of 39,225 AgentDyn turns (Section 4.5).
- Tool output matching: 93.1% of 120,704 calls in AgentDojo and 82.1% of 197,269 in AgentDyn (Section 4.5).
- Unknown turns: 450 in AgentDojo, of which 298 are crashes; 1,893 in AgentDyn (Section 4.5).
- No-attack-log counterfactual: Success counts are 4,492/2,715 for AgentDojo/AgentDyn, with corresponding E⋆ figures of 4,501/2,716 (Section 5.1).
- Specification agreement: Blind specification C and A disagree in only 88 of 32,184 turns, Cohen's κ=0.99; with B, κ=0.93 (Section 5.2).
- Cross-defense ordering: Across eight AgentDyn base models, L1 reverses the defense order in 18 pairs, of which 10 are significant and all involve Progent; E⋆ reverses 6 pairs, 0 significant (Section 5.3).
What are some points that can be further explored?
The authors explicitly list the absence of human ground truth, the subjectivity of specifications, and the boundaries of replay, and recommend additional annotation and stronger judge research.
Limitations and future directions noted by the authors
- Specifications are judgments: The two intended-effect specifications encode interpretations of natural-language goals; E⋆ requires both to agree and is conservative; some disagreements come from the stricter specification and cannot all be regarded as native errors (Section 6.2).
- Writers were not fully isolated: AgentDojo specification A was written by an agent that conducted this study and had read the native checks; blind specification C was similar to it, which the authors take to suggest that exposure to the checks may not have shaped its interpretation, but the pooled drop still depends on the strictest of the three interpretations (Section 6.2).
- No human ground truth: The study design excluded human annotation; scorers are only compared with each other, and the cause categories are also judgments by language-model agents involved in the study. The authors state that a disagreement annotation sample with inter-annotator agreement data from two annotators is a clear next step (Section 6.2).
- Benchmark and framework scope: The two benchmarks were written by different teams, but AgentDyn reuses the AgentDojo runtime described by AgentDyn, and some authors also wrote the evaluated defense DRIFT; the conclusions apply only to these published logs and scorers (Section 6.2).
- Replay and judge boundaries: Replay assumes the simulator is deterministic given the logged calls and random numbers and cannot be equated with re-execution; the judges are 8–14B open-source models on CPU, and the authors state that larger hosted judges might be better, but this paper does not claim that judges are necessarily invalid (Section 6.2).
- External comparisons not verified: Cyber or code-security benchmarks were not rerun; only published comparisons were synthesized; these sources contain rounded values and denominators that cannot be verified item by item (Section 6.2).
Experimental coverage
- Log scale: AgentDojo covers 32,634 attacked turns across 28 pipelines, and AgentDyn covers 41,118 default attack turns across 74 pipelines; no new agents were run (Sections 4, 6.2).
- Log timing and environment: Both benchmarks use simulated environments and logs produced by models released in 2024 and 2025; AgentDojo logs span v1 to v1.2.1, and most do not record the version (Sections 4.1, 6.2).
- Judge samples: Five open-source judges were first subjected to controls; the main samples are 3,145 AgentDojo turns and 2,520 AgentDyn turns, of which the latter actually returned 2,485 verdicts from the judges (Sections 4.3, 5.4).
- Statistics and repetition: Two fixed-subset scorings of 500 turns per benchmark were byte-identical; no multiplicity correction was applied across scorers and decisions, and the paper does not report the number of repeated runs of new agents (Sections 4.4, 4.5).
- Prompt visibility: Tool results were truncated to 1,200 characters, affecting 1,121 of 3,145 AgentDojo judge prompts and 1,148 of 2,520 AgentDyn prompts; long exfiltrated content may not have been fully presented to the judges (Appendix C).
Summarize the main content of the paper
This is a replay-based scoring audit: native state checks largely hold, but ASR magnitudes and defense decisions need cautious interpretation.
This is a measurement validity audit of prompt injection benchmarks, focusing on whether graders actually check the attacker's intended effect and whether rankings supported by ASR are robust.
- Problem: Existing audits often treat native state checks as ground truth, making it hard to detect that the check itself measures the wrong object, and rarely distinguish injection effects from effects naturally produced by the user task.
- Method: The authors replay 32,634 and 41,118 published turns in the AgentDojo and AgentDyn simulators respectively, comparing native checks, tool calls, existing audits, independent effect specifications and LLM judges along an L0–L5 ladder, with pre-registered handling of unknown values and four decisions.
- Verdict results: Published verdicts and E⋆ disagree in 749/32,184 known AgentDojo turns (2.3%) and 773/38,962 AgentDyn turns (2.0%); the authors say state determination largely holds, but a small number of native checks accepted states in which the attacker did not get what they asked for.
- Decision results: Of 17 units that produced different defense choices, 0 passed differential missingness; the changes were mainly single-turn reversals, ties, significance thresholds or crash accounting. In AgentDojo and AgentDyn, only 0/2 and 1/8 base models respectively had the top-ranked defense significantly better than the runner-up.
- Tool calls and judges: AgentDyn gpt-4o+Progent is 10/560 under the native verdict and 188/560 under Request (L1). The only judge passing controls, Phi-4, still counted attempts and legitimate user actions as attacks; its AgentDojo defense reversal had p=0.025 under the McNemar test and p=0.131 under the user-task permutation test.
- Authors' conclusions: The authors recommend configuring a target fixture for each safety check, running user-task attribution controls, listing crashes and missing logs as unknown and reporting bounds, and performing paired tests before naming a best defense; readers need to know what the grader actually checks when interpreting ASR.
Research lineage
12 foundations · 0 follow-ups in library- Cites2025-07Establishing Best Practices for Building Rigorous Agentic Benchmarks§ 3 What Published Same-Item Contrasts Show
- Cites2026-09BenchShield: Formal Model-Backed Instrumentation for Reward Integrity in LLM-Agent Evaluation Infrastructure§ 2.3 Threat model
- Cites2024-08Cybench: A Framework for Evaluating Cybersecurity Capabilities and Risks of Language Models§ 7 Related Work
- Cites2024-03InjecAgent: Benchmarking Indirect Prompt Injections in Tool-Integrated Large Language Model Agents§ 2.1 How agent-security benchmarks score an attack
- Cites2026-10Ignored, Not Refused: What Low Prompt-Injection Success Rates Hide in Small Tool-Using Agents§ 7 Related Work
No later in-library follow-ups recorded yet.
“These are a duplicate report of one measurement, two contrasts without an item denominator (CVE-Bench via the ABC checklist [61], and JADES [11]), a detector-precision audit, and a judge-calibration study [21].”