TRANSMISSION // 2605.30454v3

Why an AI Agent’s Security Score Depends on Where You Test

Source published

A controlled benchmark study finds that identical prompt-injection text can change which language models appear most robust when it is placed in a tool description rather than a tool output.

AI-generated conceptual illustration for Why an AI Agent’s Security Score Depends on Where You Test
AI-generated conceptual illustration; not documentary evidence.

A security benchmark can give a misleading impression if it tests only one route by which malicious instructions reach an AI agent. In a study using AgentDojo, researchers moved identical attack text between tool outputs and tool descriptions. Model rankings often changed—and some defenses that helped in one setting did little in the other.

The question: does the attack’s entry point matter?

AI agents that use tools may encounter instructions in material they retrieve, such as a tool’s output. But a tool’s description—the information telling the model what that tool does—can also contain untrusted text. Both are potential routes for prompt injection: instructions intended to divert an agent from the user’s request.

Security benchmarks often report an attack success rate for each model. That score can sound like a general measure of how robust the model is. The researchers behind this study ask a narrower question: would the comparison between models stay the same if the same attack arrived through a different part of the agent interface?

A controlled comparison

The team tested 13 language models on four AgentDojo task suites: banking, Slack, travel and workspace. For each matched user task and attack task, they used a payload template instantiated with that task’s attacker objective. They placed the resulting byte-identical payload in one of two locations: the return value of an attacker-controlled tool, or that tool’s natural-language description. They kept the task, payload, available tools, evaluation criteria and agent setup the same between each pair of tests, changing only where the text appeared.

They measured attack success using AgentDojo’s task-specific checks of the resulting environment state and tool-call trace. In addition to comparing attack success rates, the researchers examined whether models’ relative rankings changed between the two surfaces. They also tested whether a model’s more vulnerable surface, identified using three task suites, would predict the riskier surface in the remaining suite.

Rankings shifted across surfaces

In 35 of 78 pairwise model comparisons, the models’ relative order changed between tool-output and tool-description tests—a ranking inversion rate of 44.9%. This pattern appeared in all four suites. It does not mean every model became substantially more vulnerable when the payload moved. Instead, models differed in which surface exposed them more.

For example, Gemini-3-Flash had an average attack success rate of 8.8% on tool outputs and 74.6% on tool descriptions. GPT-4.1 showed the opposite pattern: 54.9% on tool outputs and 6.8% on descriptions. These results illustrate why one surface cannot provide a reliable, universal ordering of model robustness in this experiment.

The amount of risk missed by testing tool outputs alone also varied substantially. Across the 13 models, the mean increase from data-only testing to the worse of the two measured surfaces was 9.1 percentage points; the median was 1.4 points. The difference between those figures reflects a strongly uneven pattern, with much of the average driven by a small number of models. The authors therefore do not claim that every model hides a large vulnerability.

There was some predictive signal within the tested benchmark. Choosing each model’s riskier surface based on its results in three suites identified the more vulnerable surface in the held-out fourth suite in 76.9% of cases. But the estimated improvement over data-only testing had a wide confidence interval that included zero, and the paper reports that surface preference did not reliably transfer to an unseen model family. This is evidence of a useful pattern in this evaluation, not a guarantee about new models or settings.

Defenses and trade-offs

The defense tests were narrower: they covered three models on the banking suite. Repeating the user’s instruction and using Spotlighting reduced attack success on tool outputs but left substantial success on tool descriptions. A description-aware tool filter brought attack success to 0% on both tested surfaces, but clean-task success fell from 64.6% without a defense to 27.1% with the filter. In this subset, broader protection came with a marked utility cost.

What the study can—and cannot—show

The central result is about evaluation: a model’s measured robustness depends on the attack surface tested, and that dependence differs across models. The experiment isolates the location of the payload by pairing tests with byte-identical text for each injection task; the payload was not necessarily identical across different tasks, because its template was filled with each task’s attacker objective. The authors also note that the main study covers only two surfaces and one main payload family. Other routes, independently designed payloads, tasks and agent setups may produce different results.

The paper reports acceptance at the NeurIPS 2026 Workshop on AIWILD. It is a workshop paper, not evidence that the findings apply to every deployed agent or security setting. The results support a practical caution: a low attack success rate on one tested surface should not be treated as proof of broad prompt-injection robustness. Security evaluations should say which surfaces they tested—and, where relevant, measure more than one.

Reviewed cross-references

These connections were reviewed by a model, not independently fact-checked by a human. Similarity does not imply agreement; consult the original papers and the evidence below.

  • When benchmark details change an AI agent’s security score

    Supporting evidence: Both studies show that agent-security conclusions can change with evaluation choices: the origin paper reports that moving an identical payload between tool outputs and descriptions reverses 44.9% of model-pair rankings, while Bounite and Iklassov report that hash-seed-driven tool ordering and evidence ordering can change verdicts. These are complementary findings about different evaluation factors, not a replication or a direct comparison of effect sizes; the latter paper’s deepest analysis concerns ASB.

    Model review: · openai-codex/gpt-6-luna

    Evidence and provenance

    Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.

    • 2605.30454v3 — Original paper

      Excerpt reference: static/papers/2605.30454v3.md:20-67
      Basis: Paper text
      Source file SHA-256: 9633828d97b41b80cd9192017b45ead58adfde6ceaa14773644ee21b39f625b5

    • 2611.30259v1 — Original paper

      Excerpt reference: static/papers/2611.30259v1.md:13-70
      Basis: Paper text
      Source file SHA-256: a9d37eb2a509b3ab7145098f537fd1edc429bfe7600320ad78d587eb5e21fe67

  • A finer-grained fence for AI agents’ tool calls

    Supporting evidence: The origin paper’s controlled AgentDojo results show that tool descriptions can produce substantially different prompt-injection vulnerability measurements than tool outputs. Li, Cao and Xiao separately report that ToolFence’s request-derived authorization blueprint prevents hostile tool descriptions from granting authority. Together these findings support the bounded point that tool descriptions matter to agent security and merit explicit consideration; the studies test different systems and outcomes, so they do not establish that ToolFence resolves the origin paper’s measured surface sensitivity.

    Model review: · openai-codex/gpt-6-luna

    Evidence and provenance

    Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.

    • 2605.30454v3 — Original paper

      Excerpt reference: static/papers/2605.30454v3.md:167-222
      Basis: Paper text
      Source file SHA-256: 9633828d97b41b80cd9192017b45ead58adfde6ceaa14773644ee21b39f625b5

    • 2609.37196v2 — Original paper

      Excerpt reference: static/papers/2609.37196v2.md:178-259
      Basis: Paper text
      Source file SHA-256: e15db5d62820abc6f8b72ad32e4411e5b3b3b38cb65611edd8ce6e2edf64c11a

Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.