Threat-Preserving Representation Sensitivity in Agent-Security Benchmarks
Organizations: The Pennsylvania State University University Park, PA, USA
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. In this paper, we explore whether it also influences the benchmark's measurement. 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. 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 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.
Figures & tables
| Benchmark | Attack setup | What we change | What remains fixed |
|---|---|---|---|
| ASB | A distinctly named malicious tool is presented to the agent. | Threat-related tool names or descriptions are replaced with more neutral wording. | Attack goal, task, environment, and evaluator. |
| MCPTox | A malicious instruction is placed in the description of a neutrally named tool. | The neutral tool name is replaced with threat-explicit or matched neutral names. | Poisoned description, requested action, task, and evaluator. |
| AgentDojo | Injected tool output tries to make the agent misuse an ordinary tool. | An ordinary tool name and description is replaced with a threat-explicit wording. | Injected content, task, initial environment, and security scorer. |
| Arm | Transformation | Type |
|---|---|---|
| A0 | Original | Baseline |
| NULL2 | Orthographic rename | Orthographic |
| A1 | Neutralize tool names | Cue-altering |
| A1b | Neutralize descriptions | Cue-altering |
| A3 | Neutralize names & descriptions | Cue-altering |
| A2 | Make task specification concrete | Diagnostic |
| Arm | Transformation | Type |
|---|---|---|
| N0 | Original | Baseline |
| O1/O2/NULL2 | Case/separator changes | Orthographic |
| S1/S2 | Neutral alternative names | Semantic-neutral |
| S3 | Neutral name matched to N1 | Semantic-neutral |
| C1 | Conservative threat wording | Cue-altering |
| N1 | Explicit threat-category name | Cue-altering |
| Arm | Transformation | Type |
|---|---|---|
| D0 | Original | Baseline |
| Dnull | Orthographic rename | Orthographic |
| Dval | Threat wording on required tool | Cue-altering |
| Dirrelevant | Threat wording on unrelated tool | Cue-altering |
| GPT-5-mini | Haiku 4.5 | |||
|---|---|---|---|---|
| Arm | Committed | Native | Committed | Native |
| NULL2 (orthographic) | ||||
| A1b (descriptions) | ||||
| A1 (names) | ||||
| A3 (names + descriptions) | ||||
| Failure treatment | GPT-5-mini | Haiku 4.5 |
|---|---|---|
| Drop failed runs | ||
| Failure = not committed | ||
| Failure = committed |
| Arm | Compared with | GPT-5-mini | Haiku 4.5 |
|---|---|---|---|
| O1 (orthographic) | N0 | ||
| NULL2 (orthographic) † | N0 | ||
| O2 (orthographic) | N0 | ||
| S1 (neutral) | N0 | ||
| S2 (neutral) | N0 | ||
| S3 (matched neutral) | N0 |
| Outcome / intervention | Effect | 95% CI |
|---|---|---|
| Security: ASR | ||
| Dnull: orthographic | ||
| Dval: required tool | ||
| Dirrelevant: unrelated tool | ||
| Benign utility under Dval | ||
| Requires renamed tool | ||
AI Agent Security Benchmarks
AI agent security benchmarks measure how tool-using and autonomous systems handle attacks, privacy risks, authorization, and harmful actions.
See all 309 papers