Imagine you’re a scientist testing a new lock. You try to pick it twice. The first time, it holds firm. The second time, it snaps open instantly. You haven't changed your tools, the lock is the same, and you’re using the exact same technique. What happened?
In the world of LLM agents, the answer might be as trivial as which drawer you pulled your screwdriver from. This paper reveals that our current methods for measuring AI security are being haunted by "content-free state"—tiny, seemingly irrelevant details that can flip a security verdict from "safe" to "compromised" without changing a single word of the actual attack or defense.
TL;DR
Security benchmarks for LLM agents are surprisingly sensitive to "noise" like Python hash seeds and the order of tools in a list, which can swing results by up to 19 points. This paper introduces TARE, a framework that filters out this randomness to ensure that when we say a defense works, it’s actually the defense doing the work, not just a lucky roll of the dice.
What Problem Does This Paper Address?
When we evaluate how well an LLM agent resists a prompt injection attack, we usually look at the Attack Success Rate (ASR). We assume that if the ASR goes down, our defense is working.
However, the authors discovered a "ghost in the machine." LLM agents are incredibly sensitive to the order in which information is presented. Because Python randomizes how it stores "sets" of data (like a list of available tools) using something called a hash seed, two identical runs of the same benchmark can produce different results just because the attacker's tool moved from the bottom of the list to the top.
If our benchmarks are this twitchy, how can we trust a claim that "Defense X reduces ASR by 5%"? Is it the defense, or did the hash seed just happen to move the tools into a more favorable position?
Methods
The authors propose a new framework called TARE (Testing Attribution of Reported Effects). It’s a disciplined way to separate the signal (the defense) from the noise (the content-free state).
The TARE process involves five key steps:
- Declare: Identify all "content-free" variables (like seeds and tool orders).
- Strip: Remove what you can. For example, instead of letting Python's random seed decide tool order, use a Keyed Order—a stable, reproducible shuffle based on a secret key.
- Measure: Run the system multiple times to see how much the "noise" actually moves the needle.
- Attribute: Only credit a defense if its effect is significantly larger than the measured noise (the "margin").
- Report: Provide a "TARE card" that transparently shows these influences.
Datasets
The researchers put three major security benchmarks under the microscope:
- Agent Security Bench (ASB): The primary focus, where they found the most significant tool-ordering issues.
- AgentDojo: Used to verify if these findings held across different environments.
- InjecAgent: Used as a "negative control" because its tool lists are already fixed.
- $\tau^2$-bench: Used to extract real-world tool-call proposals for testing LLM "judges."
Key Insights and Ideas
- The Tool-Order Trap: In the ASB benchmark, attacker tools often have CamelCase names (like
DiagnosisManipulation), while benign tools use snake_case. Sorting these alphabetically puts the attacker tools first, which—due to LLM "primacy bias"—can inflate the attack success rate by nearly 19 points! - The Inaction Illusion: Some defenses appear successful because they simply break the agent. If an agent stops making tool calls entirely, the attack "fails," but the agent is now useless. TARE tracks the "tool-action rate" to catch this.
- Judge Fragility: When using an LLM as a "gatekeeper" to decide if an action is safe, reordering the evidence caused judges to flip their decisions on 17% to 91% of cases.
Key Results
- Verdict Flips: Simply changing the Python hash seed changed up to 17% of an agent's individual verdicts, even though the total ASR only moved by 5 points.
- Defense Attribution: Across 18 agent-defense combinations, TARE found that many reported "improvements" were actually smaller than the influence of the random seed.
- The "Inaction" Cost: In one attributed defense, 69% of the "stopped" attacks were actually cases where the agent just gave up and didn't call any tools at all.
Limitations and Future Work
The authors acknowledge that their measurements are lower bounds. They only tested a handful of seeds; the actual "noise floor" might be even higher. Furthermore, TARE comes with a literal cost: it requires running benchmarks multiple times with different keys, which can triple the GPU hours needed for an evaluation.
Future work involves expanding this "noninterference" requirement to other parts of the AI pipeline, ensuring that our evaluations measure the intelligence of the agent, not the luck of the shuffle.
Summary updated