Penn State University proposes TPRS, quantifying the impact of tool naming on ASR in agent safety benchmarksThreat-Preserving Representation Sensitivity in Agent-Security Benchmarks
Quick read
Evaluation and benchmarksBased on the paper PDF (generated by Gemini); refer to the original
The paper tests 3 agent safety benchmarks and finds that neutralizing tool names increases GPT-5-mini's committed ASR on ASB by 11.67 percentage points.
- Agent safety benchmarks often measure model robustness and compare defenses using attack success rate (ASR), assuming the score reflects agent safety. However, the benchmark's representational choices about the environment and threats act as inputs to the model. The key question is: how stable are the safety scores measured by the benchmark when the underlying task and evaluation remain unchanged?
- Proposes threat-preserving representation sensitivity (TPRS), which changes only the agent-visible representation while keeping the underlying task, harmful behavior, environment, and evaluation criteria fixed. Constructs orthographic, semantic-neutral, and cue-altering representation branches on ASB, MCPTox, and AgentDojo for measurement.
- Based on 28,904 runs, representation sensitivity is found to be substantial and non-uniform: neutralizing tool names in ASB increased GPT-5-mini's committed ASR by 11.67 percentage points; adding threat words in MCPTox decreased its ASR by 11.00 percentage points, and form-matched neutral names reproduced most of the decrease; ASR changes on AgentDojo were near zero.
- The tested transformations are not exhaustive, only changing tool names and descriptions; sensitivity attribution is incomplete, not fully isolating all properties of identifiers; the experiments cover only 3 benchmarks and 3 model configurations, without evaluating defenses or ranking flips; runs are non-independent due to shared transformations.
- Evaluated models
- GPT-5-miniClaude Haiku 4.5GPT-4o-mini
- Benchmarks
- Agent Security Bench (ASB)MCPToxAgentDojo
- Metrics
- ASRcommitted ASRnative ASRbenign utilityTPRS
Researchers at Penn State University propose Threat-Preserving Representation Sensitivity (TPRS), measuring the change in attack success rate (ASR) when only the agent-visible representation changes while the task, harmful actions, safety policy, ground truth, and evaluation criteria remain constant. Across 28,904 agent runs on three benchmarks—ASB, MCPTox, and AgentDojo—the direction of ASR changes is inconsistent: on ASB, after replacing threat-related tool names with neutral names, GPT-5-mini's committed ASR increased by 11.67 percentage points, and Claude Haiku 4.5 increased by 13.21 percentage points; on MCPTox, after replacing neutral names with threat-related names, GPT-5-mini's ASR decreased by 11.00 percentage points, and Haiku 4.5 decreased by 4.11 percentage points; on AgentDojo, ASR changed by only 0.50 percentage points on GPT-4o-mini, but benign utility on tasks requiring that tool decreased by 5.36 percentage points.
Why it was selectedThe paper quantifies the impact of representation changes such as tool naming on ASR using nearly 29,000 agent runs; teams doing agent safety evaluation can use this to check whether their own benchmarks are sensitive to representation.
Paper analysis
What problem does this paper attempt to solve?
The paper investigates the stability of ASR measured by agent safety benchmarks when the underlying task and evaluation standards are fixed but the threat representation changes.
Is the attack success rate (ASR) measured by agent safety benchmarks overly dependent on how the benchmark represents the threat, rather than merely reflecting the actual robustness of the agent model?
- Scenario and importance: Safety benchmarks often use ASR to measure the robustness of LLM-based agents and evaluate defense strategies; these evaluations typically assume the scores accurately describe agent safety.
- Limitations of existing benchmarks: Benchmarks must decide how to present the environment and attacks to the model, including tool names, descriptions, and instruction wording; these choices become part of the model input, but existing benchmarks often treat a single representation as measurement-neutral.
- Core observation and hypothesis: The authors argue that LLM agents condition their behavior on context; if the underlying task, attack mechanism, and evaluation criteria remain unchanged, merely changing the threat representation may shift the measured ASR.
- Proposed approach: The authors propose Threat-Preserving Representation Sensitivity (TPRS) to quantify the impact of representation changes on benchmark safety scores.
- Threat settings of the evaluated environments: The authors audit benchmarks with three attack architectures: ASB includes standalone malicious tools, MCPTox poisons benign tool descriptions, and AgentDojo induces abuse of ordinary tools through untrusted tool outputs.
What related research exists?
The paper reviews three categories of related work: agent safety benchmarks, agent representation and context sensitivity, and benchmark measurement validity.
The paper reviews three categories of related work: agent safety evaluation, context sensitivity, and benchmark validity:
Agent safety benchmarks
- InjecAgent (Zhan et al., 2024) and AgentDojo (Debenedetti et al., 2024): InjecAgent evaluates the vulnerability of tool-integrated LLM agents; AgentDojo evaluates agents executing ordinary tools on untrusted data by measuring benign task utility and prompt injection susceptibility.
- Agent Security Bench / ASB (Zhang et al., 2025) and MCPTox (Wang et al., 2026): ASB comprehensively evaluates attacks and defenses across multiple scenarios and tools; MCPTox studies tool poisoning attacks in the Model Context Protocol (MCP) setting.
- Benchmark-based defense evaluation work: Task Shield (Jia et al., 2025), MELON (Zhu et al., 2025), and CaMeL (Debenedetti et al., 2026) use AgentDojo to report attack success rate and task utility, examining whether defenses block attacks and preserve benign functionality.
Representation and context sensitivity of LLM agents
- Tool metadata and format sensitivity: Faghih et al. (2025) modified tool descriptions and found tool invocation counts varied by more than an order of magnitude; BiasBusters (Blankenstein et al., 2026) showed tool selection depends heavily on the match between queries and metadata; Pan et al. (2026) noted that schema-formatted tool specifications weaken refusals and increase unsafe executions; de Zarza et al. (2026) tested the impact of semantics-preserving rewrites such as paraphrasing and reordering on agent reasoning.
- Evaluation awareness and contextual cues: Needham et al. (2025) noted that models can distinguish evaluation contexts from real deployment interactions; Li et al. (2026) independently varied evaluation environment factors; Nayan et al. (2026) measured behavioral differences under evaluation frameworks; Deckenbach et al. (2026) noted that models trained on documents describing safety evaluation designs perform better on safety benchmarks.
Benchmark and measurement validity
Agent benchmark flaw analysis: Zhu et al. (2025) proposed the Agent Benchmark Checklist (ABC) identifying flaws that can cause measurement bias; Wang et al. (2026) audited four agent safety benchmarks, noting conclusions depend on target behaviors, metrics, and model panels; Qu et al. (2026) noted that code agent behavior depends on how benchmarks phrase authorization scope; Gringras (2026) showed that changing multiple choice to short answer shifts safety scores by 5-20 percentage points.
Trustworthy ML measurement issues: Yu et al. (2025), Meeus et al. (2025), and Thaker et al. (2025) respectively noted in adversarial transferability, membership inference, and machine unlearning that evaluation procedures and dataset construction can confound safety conclusions.
Comparison benchmarks: The paper directly selects the published Agent Security Bench (ASB), MCPTox, and AgentDojo as experimental measurement targets, using their original representations as baselines.
Positioning difference from existing work: The authors note that existing context sensitivity research typically examines behavior when changing the model or prompt environment, whereas this paper focuses on a narrower benchmark measurement question: how much benchmark safety scores shift under controlled representation changes while the safety problem defining the outcome remains unchanged.
How does the paper address this problem?
The paper formally defines TPRS, which preserves the underlying safety problem unchanged, and constructs controlled representation transformation branches on three benchmarks.
The paper audits the stability of benchmark scores by defining Threat-Preserving Representation Sensitivity (TPRS), systematically changing the agent-visible representation while keeping the underlying safety problem completely unchanged and measuring ASR changes.
Problem Setup and Formalization
- Six-component decomposition of benchmark instances: The paper decomposes a benchmark instance into six components: environment, attacker goal, violation policy definition, attack success criteria, evaluation mechanism, and the information shown to the agent (agent-visible representation).
- Definition of threat-preserving transformations: Transformations keep the first five components strictly fixed, changing only the agent-visible representation; the attack goal, violation determination, and environment state scoring code remain unchanged, and text matching rules are verified byte-for-byte identical via SHA-256.
- Formalization of the TPRS metric: TPRS is defined as the difference in attack success rate between the transformed benchmark and the original benchmark for a model, i.e.: ΔT(B, m) = ASR(T(B), m) − ASR(B, m) This metric quantifies the magnitude of attack success rate fluctuation caused solely by representation transformation when the underlying threat is unchanged.
Types of Representation Transformations
- Orthographic transformations: Change only spelling, capitalization, or punctuation without intentionally changing meaning (e.g., changing DNSPoisoning to DNS_Poisoning), used to test whether ASR responds to minor representation changes.
- Semantic-neutral transformations: Replace vocabulary without introducing any threat-related words (e.g., changing read_file to fetch_file), used to test whether changes in purely descriptive content cause score shifts.
- Cue-altering transformations: Change specific threat words while preserving the nature of the threat (e.g., changing DNSPoisoning to DNSConfiguration, or adding malicious-related words to ordinary tools).
Targeted Construction for Three Benchmarks
- ASB representation branches: Include original baseline A0, orthographic branch NULL2, tool name neutralization A1, description neutralization A1b, and both name and description neutralization A3 (diagnostic branch A2 is not a threat-preserving transformation because it modifies task text); in A1, 32 of the 36 attack tools are renamed because they contain threat words.
- MCPTox representation branches: Include original baseline N0, orthographic branches O1/O2/NULL2, neutral alternative names S1/S2, form-aligned neutral branch S3 matching N1 in token count, length, and capitalization, conservative threat word branch C1, and explicit threat category name branch N1.
- AgentDojo representation branches: For scenarios where prompt injection induces ordinary tools, design original baseline D0, orthographic branch Dnull, branch Dval adding threat words to tools required for the attack, and branch Dirrelevant adding threat words to irrelevant tools.
Generation Freezing and Statistical Evaluation Protocol
- Candidate word generation and freezing: Deterministic replacement based on tokenizer statistics, a fixed threat dictionary, and original identifier attributes, with hashes computed and saved; strictly prohibited from re-selecting transformations based on model output results.
- Evaluation metric definitions: ASB reports both native ASR (triggering a tool counts as success) and committed ASR (additionally requiring the agent to never refuse throughout); AgentDojo evaluates both safety ASR and benign task utility.
- Statistical tests and clustering: 95% confidence intervals computed using 10,000 cluster-bootstrap resamples; MCPTox uses Holm correction to control the family-wise error rate.
What experiments did the paper conduct?
The paper completes 28,904 runs across three benchmarks and finds that representation changes cause ASR shifts in different directions and magnitudes.
Experimental Setup
- Models tested: GPT-5-mini (reasoning effort set to low, temperature not adjustable, 4096 completion budget), Claude Haiku 4.5 (temperature 0 and token budget 1024 on MCPTox, API default temperature and token budget 4096 on ASB), GPT-4o-mini (AgentDojo native environment, temperature 0).
- Dataset and benchmark scale: ASB contains 36 attack tools across 6 domains, 5 tasks per tool, 6 branches, 3 repetitions, totaling 3,240 runs/model; MCPTox selected 203 cases meeting the dual execution scoring signal (from 1,348 candidates), 9 branches, 3 repetitions, totaling 10,962 runs; AgentDojo contains 40 user tasks and 14 injection tasks (the main safety analysis uses 4 tasks requiring tool renaming, 160 benchmark cases per branch), totaling 11,462 runs. All benchmarks together completed 28,904 runs.
- Baseline methods: Original unmodified representations for each benchmark (A0 for ASB, N0 for MCPTox, D0 for AgentDojo).
- Metric definitions: ASB reports native ASR (calling a malicious tool counts as success) and committed ASR (calling and never refusing throughout); MCPTox reports ASR determined by the execution scorer; AgentDojo reports ASR determined by environment state and benign task utility.
- Review and judgment methods: ASB uses fixed keyword matching to detect refusals, with text matching rules strictly verified via SHA-256; MCPTox's executable scorer has 95.3% recall and 0.7% false positive rate; AgentDojo uses the original benchmark's built-in state scorer.
- Sample clustering and repetition: Each condition is run 3 to 5 times; statistical analysis clusters at the level of transformation application (ASB clusters by tool, MCPTox by case, AgentDojo by benchmark case), reporting 95% confidence intervals based on 10,000 resamples.
Main Results
The table below summarizes the main experimental results for the three benchmarks under the core cue-altering branches (from Table V, Table VII, Table VIII):
Swipe horizontally to read the table
Benchmark Model Evaluated Transformation Branch (Type) Original Baseline ASR ASR Change 95% Confidence Interval ASB GPT-5-mini A1 Tool Name Neutralization (committed) 36.67% +11.67 percentage points [+4.44, +19.07] ASB Claude Haiku 4.5 A1 Tool Name Neutralization (committed) 20.85% +13.21 percentage points [+6.33, +21.10] MCPTox GPT-5-mini N1 Explicit Threat Naming 32.02% -11.00 percentage points [-15.60, -6.57] MCPTox Claude Haiku 4.5 N1 Explicit Threat Naming 9.03% -4.11 percentage points [-7.55, -0.99] AgentDojo GPT-4o-mini Dval Required Tool Threat Naming 22.74% -0.50 percentage points [-3.65, +2.51] - Sensitivity direction correlates with threat explicitness: The authors state that ASR rises when threat words are removed in ASB, while ASR falls when threat words are added in MCPTox, and the two are consistent in direction along the threat explicitness dimension, i.e., more explicit threat representations correspond to lower ASR (per Section IV).
- Sensitivity magnitude varies across benchmarks: The authors note that ASB and MCPTox exhibit large-magnitude sensitivity, while AgentDojo's ASR change is near zero, indicating that representation sensitivity is not necessarily large on all benchmarks (per Section IV-C).
- Evaluation metric definition affects sensitivity estimates: The authors state that in ASB, native ASR and committed ASR change by different amounts, indicating that representation sensitivity depends not only on the representation itself but also on how the benchmark defines attack success (per Section IV-A).
MCPTox Lexical and Formal Control Experiments
- Test content: To investigate whether the ASR drop caused by N1 stems from explicit threat vocabulary itself, designed a neutral branch S3 strictly aligned with N1 in token count, length, and capitalization, as well as a conservative threat word branch C1 and semantic-neutral branches S1/S2 (per Section III-B and Section IV-B).
- Experimental results: On GPT-5-mini, the purely form-aligned neutral branch S3 decreased ASR by 8.54 percentage points relative to the original N0 (95% CI [-12.48, -4.76]); N1 relative to S3 only further decreased by 2.46 percentage points (95% CI [-5.58, +0.66]). On Claude Haiku 4.5, S3 relative to N0 changed by -0.16 percentage points (95% CI [-3.94, +3.61]), and N1 relative to S3 decreased by 3.94 percentage points (95% CI [-7.22, -0.82], but did not pass Holm correction, padj = 0.068) (per Table VII).
- Author interpretation: The authors believe explicit threat vocabulary is not necessary to cause most of the ASR shift on GPT-5-mini; formal properties of identifiers reproduce most of the effect; while on Haiku 4.5, where baseline ASR is only 9.03%, the evidence is not yet clear.
AgentDojo Safety and Benign Utility Separation Experiment
- Test content: Tested the effect of adding threat words to tools required for prompt injection attacks (Dval) and to irrelevant tools (Dirrelevant) on attack success rate and benign task utility (per Section IV-C and Table VIII).
- Experimental results: On GPT-4o-mini, Dval changed safety ASR by only -0.50 percentage points (95% CI [-3.65, +2.51]); but on benign tasks requiring tool renaming, utility decreased by 5.36 percentage points (from 33.93% to 28.57%, 95% CI [-10.00, -0.71]), while utility on other tasks with unmodified dependencies increased by 5.24 percentage points (95% CI [+3.51, +7.03]), with a utility difference between the two task types of -10.59 percentage points (95% CI [-15.87, -5.69]) (per Table VIII).
- Author interpretation: The authors note that the model's call rate for the renamed tool in relevant tasks remains 99.6% (same as D0 and Dval), indicating that the benign utility change cannot be explained by avoiding calls to that tool; since utility on unmodified tasks rose by a similar magnitude, the authors treat the utility effect as suggestive rather than confirmed.
ASB Execution Failures and Per-Tool Exclusion Robustness Analysis
- Test content: Evaluated execution failures on Claude Haiku 4.5 (4.1% for A0, 5.9% for A1) and the influence of individual tools on the A1 effect (per Section IV-A and Table VI).
- Experimental results: Under three rules—discarding failed runs, treating failures as uncommitted attacks, and treating failures as committed attacks—Haiku 4.5's A1 effect estimates were +13.21, +12.04, and +13.89 percentage points respectively, with confidence intervals all remaining above zero (per Table VI); when excluding each of the 36 attack tools one by one, the A1 effect remained between 9.90 and 12.95 percentage points on GPT-5-mini and between 11.19 and 14.40 percentage points on Haiku 4.5.
- Author interpretation: The authors believe the A1 naming sensitivity effect is not driven by any individual attack tool and remains robust to how model execution failures are handled.
Other Ablations and Analyses
- Orthographic renaming (NULL2): On ASB, committed ASR changed by -1.67 percentage points for GPT-5-mini and -0.74 percentage points for Haiku 4.5 (per Table V).
- Neutralizing tool descriptions only (A1b): On ASB, committed ASR changed by +0.00 percentage points for GPT-5-mini and -1.16 percentage points for Haiku 4.5 (per Table V).
- Neutralizing both names and descriptions (A3): On ASB, committed ASR increased by 13.15 percentage points for GPT-5-mini and 14.85 percentage points for Haiku 4.5 (per Table V).
- Conservative threat word naming (C1): On MCPTox, ASR changed by -2.96 percentage points for GPT-5-mini and -2.63 percentage points for Haiku 4.5 (per Table VII).
- Diagnostic concretized task descriptions (A2): On ASB, committed ASR increased by 4.44 percentage points for GPT-5-mini and changed by -2.23 percentage points for Haiku 4.5 with a 22.4% execution failure rate (per Section IV-A).
- Irrelevant tool threat naming (Dirrelevant): On AgentDojo, ASR changed by +0.88 percentage points for GPT-4o-mini (per Table VIII).
Negative Results and Exceptions
- Orthographic transformations did not cause clear changes: Minor orthographic changes produced no statistically distinguishable ASR changes on any of the three benchmarks (ASB NULL2, MCPTox O1/O2/NULL2, AgentDojo Dnull confidence intervals all cross zero).
- Modifying descriptions only had no significant effect on committed success rate: In ASB, modifying descriptions only (A1b) failed to change committed ASR on either model (GPT-5-mini +0.00 points, Haiku 4.5 -1.16 points, confidence intervals crossing zero).
- Significance weakened after multiple-testing correction: On MCPTox, after Holm correction for multiple comparisons, only 1 of 10 hypothesis tests remained significant (N1 vs. S1/S2 on GPT-5-mini), with padj ≥ 0.30 for all comparisons involving C1.
- Cross-model effect differences were not evident: On ASB, the estimated difference between GPT-5-mini and Haiku 4.5 for the A1 effect was -1.54 percentage points (95% CI [-12.45, +8.44]), and for A3 was -1.70 percentage points (95% CI [-12.00, +8.68]).
What are some points that can be further explored?
The authors note limitations including that transformation types are not exhaustive, mechanism attribution is incomplete, model and benchmark coverage is limited, and ranking flips were not tested.
Limitations and future directions noted by the authors
- Transformation types are not exhaustive: The experiments only transform tool names and descriptions, not covering other potentially visible representations such as parameter names, tool schemas, or instruction phrasing; the authors plan to test a broader range of threat representation aspects in the future (Section VI-a).
- Semantic equivalence of representations is hard to maintain: There is a trade-off between removing names from threat representations and preserving original functional semantics; the A1 branch of ASB did not independently verify semantic equivalence and may have simultaneously changed the tool's apparent threat level and apparent functionality, while the design of a strictly semantically equivalent branch could not be run because too few tools passed blind checks (only 10 of 32) (Section VI-a).
- Attribution of sensitivity mechanisms is incomplete: Although the S3 branch of MCPTox suggests threat vocabulary is not the main driver, S3 does not isolate all properties of identifiers, and tokenizer differences exist across models (e.g., Haiku 4.5); future work needs more strictly controlled experiments to isolate semantic, tokenization, and structural properties (Section VI-b).
- Empirical evaluation scope is limited: The experiments cover only 3 benchmarks and 3 model configurations (GPT-5-mini and Claude Haiku 4.5 on ASB and MCPTox, and GPT-4o-mini on AgentDojo), without establishing generalization beyond the tested scope; the authors plan to extend to more models, benchmarks, attacks, and defenses (Section VI-c).
- Stability of model or defense rankings not tested: Benchmark scores are often used for horizontal comparison, but the study has not verified whether the relative rankings of models or defenses flip under representation transformations (Section VI-d).
Experimental coverage
- Benchmark scope: Empirical evaluation covers 3 agent safety benchmarks: Agent Security Bench (ASB), MCPTox, and AgentDojo.
- Model scope: Testing covers 3 model configurations: GPT-5-mini, Claude Haiku 4.5, and GPT-4o-mini, with 1 to 2 models tested per benchmark.
- Threat architectures and transformation targets: Testing covers 3 attack architectures: malicious tool presentation, tool description poisoning, and indirect injection from untrusted outputs; transformation targets cover tool names and tool descriptions.
- Sample size and independence: The total includes 28,904 agent runs; the paper notes that because transformation schemes are shared across runs, individual run samples are not fully independent.
- Defense mechanism coverage: The evaluation covers attack benchmarks but does not include specific defense mechanisms (the paper explicitly lists defense evaluation as future work).
Summarize the main content of the paper
The paper audits the representation sensitivity of agent safety benchmarks, finding that tool naming changes can substantially alter ASR, emphasizing that benchmarks should evaluate representation variants.
- Paper positioning: This is an audit study of the measurement validity of safety benchmarks for large language model agents, investigating the impact of benchmark threat representation design on the stability of safety evaluation scores.
- Core question: Multiple existing benchmarks use attack success rate (ASR) to evaluate agent robustness and assume measurement neutrality, but the benchmark's choices of tool names, descriptions, and other representations themselves constitute model inputs. The paper aims to investigate the extent to which ASR scores fluctuate under representation transformations when the underlying safety problem remains unchanged.
- Method design: The study proposes Threat-Preserving Representation Sensitivity (TPRS), and constructs controlled representation branches including orthographic, semantically neutral, and clue-changing variants for ASB, MCPTox, and AgentDojo, while strictly fixing the task, attack goal, harmful behavior, environment, and evaluation criteria.
- Main findings: Across 28,904 runs, neutralizing tool names in ASB increased GPT-5-mini's committed ASR by 11.67 percentage points and Claude Haiku 4.5's by 13.21 percentage points (Table V); introducing explicit threat naming in MCPTox decreased GPT-5-mini's ASR by 11.00 percentage points, and form-matched neutral names reproduced an 8.54 percentage point decrease (Table VII); modifying required tools in AgentDojo changed ASR by only -0.50 percentage points, but benign task utility dropped by 5.36 percentage points (Table VIII).
- Authors' conclusions and implications: The authors argue that safety scores measured by benchmarks do not necessarily generalize across representations, and explicit threat vocabulary cannot fully explain the sensitivity; the authors recommend that safety benchmarks incorporate representation form into evaluation design and report representation sensitivity metrics along with worst-case ASR, rather than relying on a single representation.