arXiv:2610.03585cs.CROct 2026

Manuscript Offprint

arXiv:2610.03585

Threat-Preserving Representation Sensitivity in Agent-Security Benchmarks

Neeraj Karamchandani, Piyush Nagasubramaniam, Xinhong Xie, Sencun Zhu, Dinghao Wu

Neeraj Karamchandani, Piyush Nagasubramaniam, Xinhong Xie, Sencun Zhu, and Dinghao Wu

The Pennsylvania State University

University Park, PA, USA

{njk5270, pvn5119, xjx5116, sxz16,dinghao}@psu.edu

Abstract—Security benchmarks for LLM-based agents often report the attack success rate (ASR) as a measure of model robustness and use these scores to compare different models and defense mechanisms, assuming that they describe the security of the agent. Prior work has shown that tool metadata can influence agent behavior. In this paper, we explore whether it also influences the benchmark's measurement. We ask how much a measured ASR reflects the robustness of the agent, and how much it reflects the way the benchmark happens to represent the threat.

To measure the effect of the benchmark representation, we introduce threat-preserving representation sensitivity (TPRS), which measures how much the ASR changes when we change the agent-visible representation while holding the underlying task, harmful action, security policy, ground truth, environment, and the evaluation criteria fixed.

We show that across 28,904 agent runs on three independent benchmarks, the attack success rate moves in both directions, showing substantial but non-uniform sensitivity. On Agent Security Bench (ASB), replacing threat-related tool names with threat-neutral names raises the committed attack success rate by 11.67 percentage points on GPT-5-mini and by 13.21 points on Claude Haiku 4.5. On MCPTox, replacing the original neutral tool name with an explicit threat-related name lowers the ASR by 11.00 percentage points on GPT-5-mini and 4.11 points on Claude Haiku 4.5. On AgentDojo, adding threat-related wording to the attack-relevant tool changes ASR by only 0.50 percentage points on GPT-4o-mini, yet the benign utility falls by 5.36 points on tasks requiring that tool.

We also show that the sensitivity is not explainable by threat vocabulary alone. We ran an experiment on MCPTox where we observed that a threat-neutral name matched on token count, length, and casing reproduces most of the shift produced by the threat-explicit name (8.54 of 11.00 points on GPT-5-mini).

The results show that a security score measured under one representation may fail to generalize across threat-preserving representations of the same security problem. Robustness claims should therefore be supported by performance across a controlled set of threat-preserving representations rather than relying on a single representation-dependent score.

Index Terms—LLM agents, agent security, benchmark validity, trustworthy machine learning, security evaluation

I. INTRODUCTION

Security benchmarks for LLM agents summarize the complex behavior of an LLM agent using metrics like attack success rate (ASR) so that it is easy to assess or compare a model's security. Such scores can be used to make an argument for a model's robustness against a certain class of attack or for a defense [1]-[3].

Because LLM agents condition their actions on the context they receive, an agent-security benchmark can itself influence the behavior it measures. To measure the success of an attack, the benchmark must decide how to present the environment and the attack to the model. It has to choose the names of the tools, the descriptions of the tools, how their capabilities are described, and what instructions or data the agent receives before acting. All these choices become part of the input fed to the LLM and can influence its behavior [4]-[6]. This raises an important question. If the underlying task, attack mechanism, harmful action, environment, and evaluation criteria remain the same while only this representation changes, how stable is the security score?

For example, in Agent Security Bench (ASB) [1], the benchmark uses a tool named DNSPoisoning. Suppose we change just the tool name to a more neutral-sounding DNSConfiguration while keeping everything else the same. If the ASR changes, what should the difference in ASR be attributed to? Does it reflect a difference in the agent's security behavior, or sensitivity to how the benchmark represents the same underlying threat?

This distinction matters when one uses a benchmark score to compare models or evaluate proposed defenses. If a reported result is sensitive to representational choices such as tool names or descriptions, conclusions drawn from a single benchmark configuration may be narrower than the reported score alone suggests.

Previous work has shown that metadata of tools and instructions can influence which actions an LLM agent may take [4]–[6]. Recent work has also shown that models can recognize evaluation contexts and that behavior can change under controlled variations in evaluation-related cues or framing [7]–[11]. Deckenbach et al. [12] show that models trained on documents about how safety evaluation is performed perform better in safety benchmarking even without explicitly mentioning benchmarking. In this paper we ask a different question: when the model and the underlying security-relevant aspects of the task remain fixed, how stable is the security score produced by the benchmark?

We call this threat-preserving representation sensitivity (TPRS). We call a representation change threat-preserving when it changes what an agent sees but keeps the underlying task, environment, attacker objective, security policy, success criteria, and evaluation criteria fixed. We re-run the benchmark after performing threat-preserving changes and measure how much its ASR moves. A threat-preserving change does not need to leave the agent's behavior completely unchanged. Some behavioral change by the model is expected. The question is whether a measured security score such as ASR is stable enough to support conclusions that do not depend strongly on the benchmark's particular representational choices. In this paper we ask three questions. First, how much does ASR change under threat-preserving representation changes? Second, to what extent are these changes explained by explicit threat-related wording, such as 'malicious' or 'poisoning'? Third, how does observed representation sensitivity differ across the tested benchmarks, models, and evaluation outcomes?

We use three independently developed agent-security benchmarks that differ in how they represent the attacks to answer the above questions. In Agent Security Bench (ASB) [1] the names of the tools often contain threat-related terms, so we replace them with more neutral names and re-run the benchmark. In MCPTox [2] most of the tool names are already neutral, so we replace them with threat-related names. AgentDojo [3] differs from the first two because its attacks induce misuse of ordinary tools rather than introducing a dedicated malicious tool. There we change the names of the benign tools. With all three benchmarks we change what is visible to the agent while keeping the actual threat, environment, and evaluation criteria the same.

We show that across 28,904 agent runs, the measured security score, ASR, can depend substantially on the representation of the threat, but not uniformly. On ASB, replacing threat-related wording with more neutral wording caused the committed ASR to increase by 11.67 percentage points on GPT-5-mini and 13.21 percentage points on Claude Haiku 4.5. On MCPTox, replacing neutral names with relevant threat-related wording led to a decrease in ASR of 11.00 percentage points on GPT-5-mini and 4.11 points on Claude Haiku 4.5. Thus, in terms of explicitness of their threat, results for ASB and MCPTox are directionally aligned: more threat-explicit naming is associated with lower measured ASR in both cases.

On AgentDojo, the change in ASR on GPT-4o-mini was only -0.50 points (95% CI [−3.65,+2.51][-3.65, +2.51]), but the same change caused a dip of 5.36 points in benign utility on tasks that require the renamed tool. Explicit threat vocabulary is not necessary for most of the GPT-5-mini effect. On MCPTox, threat-neutral names matched to the threat-explicit names in token count, length, and casing reproduced much of the GPT-5-mini shift (8.54 of the 11.00 percentage points). We also show that how success is measured matters: in ASB, the sensitivity looks different depending on whether success is defined at tool invocation or also requires that the agent does not refuse, while AgentDojo shows a small ASR effect alongside a larger benign utility shift.

Our goal is not to identify a single correct representation for measuring an agent-security metric. Instead, we show that a security score measured under one representation may not generalize to other threat-preserving representations of the same security problem.

The interpretation of representation sensitivity can also depend on who controls the representation. If an attacker controls it (like naming a tool), then the representation can become part of the attack itself. When a benchmark designer has control over it, it can indicate how much the ASR is dependent on the benchmark's choice of representation.

Security benchmarks should therefore characterize this sensitivity rather than treat a single representation as measurement-neutral.

In this work we make the following core contributions:

  1. A security-specific measurement and validity audit. We introduce threat-preserving representation sensitivity (TPRS), which measures how security scores can change when the agent-visible representation changes and the underlying security problem and evaluation criteria remain fixed.

  2. Large representation effects on two benchmarks and a smaller effect on a third. Across 28,904 agent runs and three attack architectures, representation changes substantially shift measured ASR on ASB and MCPTox, raising it when threat wording is removed and lowering it when threat wording is added, while the corresponding AgentDojo ASR effect is much smaller.

  3. Controls showing that threat wording alone does not explain representation sensitivity. Orthographic and semantic-neutral controls, including a form-matched threat-neutral MCPTox arm, show that the explicit threat wording is not necessary for most of the large GPT-5-mini effect.

  4. Metric and evaluation-dimension dependence. Using ASB and AgentDojo, we show that the effects may depend on how attack success is defined and on whether the evaluation considers security or benign utility.

References (24)