Skip to content

SentryBench: a cost-sensitive benchmark measuring adversarial robustness of tool-calling LLM agents in public safety deploymentsSentryBench: A Cost-Sensitive Benchmark for Adversarial Robustness of Tool-Using LLM Agents in Public-Safety Deployments

arXiv· arXiv:2610.34535· Md Abu Yusuf, Oyshi Tabassum Aditi, Md Faysal Hosain MazedDepartment of Computer Science, Maharishi International University; Department of Computer Science and Engineering, Daffodil International University; Department of Information Technology, University of the CumberlandsIndexed by this site · 28 days ago· Originally publishedEvaluation

Quick read

Evaluation and benchmarks

Based on the paper PDF (AI-generated); refer to the original

The authors propose SentryBench, a benchmark for public-safety tool agents, and state that the "refuse more" defense pushes over-refusal to 100%, while its TGCC trust gate has the lowest harm across the three models.

Questions
In public safety scenarios, a single erroneous tool call by a tool-using LLM agent carries real-world costs, whereas existing agent safety benchmarks only test whether an attack succeeds, defaulting to "more refusals means safer"; the authors argue this assumption does not hold in public safety deployments, and that missing a real emergency is equally a failure.
Methods
Constructing SentryBench: 190 scenarios composed of real emergency call transcripts, disaster messages, and real injection/jailbreak payloads, paired with six simulated tools and deterministic ledger scoring (no LLM judge); proposes the Harm metric with asymmetric costs, and provides the trust-gating defense TGCC alongside a naive caution comparison.
Experiments and results
Across 840 episodes for three models: caution pushes over-refusal for Sonnet and GPT-5 to 100%, changes ASR by at most 3.7 points, and has the highest Harm in the full table; TGCC achieves ASR of 0 on Haiku and GPT-5 with over-refusal no higher than baseline, and the lowest or tied-lowest Harm; the Azure content filter blocked 11–15 GPT-5 adversarial prompts, which must be reported separately.
Limitations and future work
Future directions listed by the authors: extend the full scenario library to all models, add published defense baselines and an adaptive-attacker track, replace heuristic detectors with learned detectors, and form a cost-calibration group. Experimentally, the two larger models were run only on a 45-scenario subset, and GPT-5's 0% ASR is based on as few as 12 actually executed episodes.
Experimental setupclaude-haiku-4-5、claude-sonnet-4-5 et al. · SentryBench(190 场景,基于 prompt-injections、jailbreak-classification、disaster-response、911-call-transcripts 四个 Hugging Face 数据集构建) · ASR、ORR et al.
Threat model
The agent and its system prompt are trusted; inputs and tool results may be controlled by an attacker (call transcripts, incident reports, and, in poisoning, the return of one tool in the chain). The attacker can inject text, impersonate authority, perform multi-turn goal drift, and poison one tool's return, but cannot access model weights or the sandbox internals. Goal: suppress real emergencies (under-reaction) or trigger unfounded actions (over-reaction, including privacy violations).
Evaluated models
claude-haiku-4-5claude-sonnet-4-5Azure gpt-5
Benchmarks
SentryBench(190 场景,基于 prompt-injections、jailbreak-classification、disaster-response、911-call-transcripts 四个 Hugging Face 数据集构建)
Metrics
ASRORRFPContainmentHarm
AI summaryThe authors propose SentryBench, a cost-sensitive adversarial robustness benchmark for tool-calling LLM agents in public safety deployments, measuring three metrics: attack success rate, over-refusal (missing genuine emergencies), and over-reaction (unfounded actions). Evaluation scenarios are drawn from real emergency call records, disaster information, and real injection and jailbreak payloads, and deployment harm is formalized as an asymmetric cost function; the authors show that when cautious refusals of genuine emergencies outnumber the attack harms they avoid, simply adding caution becomes dominated by harm, and also show that targeted trust gating does not increase over-refusal on clean inputs. In 840 scored turns covering three frontier models and three defenses, multi-refusal-style caution raised over-refusal to 100% for two models, changed attack success rate by at most 3.7 percentage points, and had the worst harm across models; the authors' trust gating wrapper had the lowest harm on each model, over-refusal no higher than baseline, and a higher containment rate. The paper also notes that vendor content filters are silently doing part of the defense work and need to be reported separately.

The authors propose SentryBench, a cost-sensitive adversarial robustness benchmark for tool-calling LLM agents in public safety deployments, measuring three metrics: attack success rate, over-refusal (missing genuine emergencies), and over-reaction (unfounded actions). Evaluation scenarios are drawn from real emergency call records, disaster information, and real injection and jailbreak payloads, and deployment harm is formalized as an asymmetric cost function; the authors show that when cautious refusals of genuine emergencies outnumber the attack harms they avoid, simply adding caution becomes dominated by harm, and also show that targeted trust gating does not increase over-refusal on clean inputs. In 840 scored turns covering three frontier models and three defenses, multi-refusal-style caution raised over-refusal to 100% for two models, changed attack success rate by at most 3.7 percentage points, and had the worst harm across models; the authors' trust gating wrapper had the lowest harm on each model, over-refusal no higher than baseline, and a higher containment rate. The paper also notes that vendor content filters are silently doing part of the defense work and need to be reported separately.

Related events and news

1 events · 1 news mentions

News that mentions this paper

周报:预训练投毒可植入智能体后门

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Failures of public safety tool agents are two-sided; existing benchmarks test only attack success and miss the over-refusal side.

    Core problem: For tool-using LLM agents in public-safety deployment, safety evaluation measures only "whether the attack succeeded" and treats refusal as the safe default, whereas missing a real emergency event (false negative) and false alarms/unauthorized actions (false positive) both have real-world costs; existing benchmarks cannot measure both directions simultaneously.

    • Scenarios and motivation: The authors state that tool-using agents are moving from chat interfaces into operational loops with physical consequences (calling for rescue, broadcasting alerts, querying citizen records), and that public-safety operations centers are early high-risk adopters; a single erroneous tool call brings real-world cost.
    • Shortcomings of existing benchmarks: The authors state that existing agent-safety benchmarks measure generic harm or prompt-injection success rates, implicitly assuming "refusal equals safety"; in public-safety scenarios this assumption fails—an agent that is overly cautious and does not dispatch rescue fails just as an agent that issues a false alert does.
    • Core observation: Failure is bidirectional and asymmetric, caution is not free, and the two error directions must be measured jointly with domain-calibrated asymmetric costs; the authors state that previously no benchmark modeled this domain with a benign control group capable of exposing over-refusal.
    • What the paper proposes: The SentryBench benchmark and evaluation framework (a bidirectional cost-sensitive frontier that jointly measures attack success, over-refusal, and over-reaction), an asymmetric-cost Harm formalization with two theorems, the trust-gate defense TGCC with a naive caution comparison, and a reproducible harness with deterministic ledger scoring.
    • Threat model (Section III):
      • Attacker goal: Each scenario targets one target failure mode—suppressing a real emergency event (under-reaction) or triggering unfounded action (over-reaction, including privacy violation).
      • Knowledge: No access to model weights or the sandbox internals.
      • Capabilities: Injecting text into untrusted channels (call transcripts, incident reports), impersonating authority, driving multi-turn goal drift, and poisoning one tool's return in the chain.
      • Victim system: A tool-using agent with a trusted system prompt, connected to six simulated tools including send_public_alert, dispatch_unit, and query_citizen_record.
  2. What related research exists?

    Related work falls into four groups: agent capabilities, injection attacks, agent safety benchmarks and defenses, and over-refusal research.

    Tool-using and multi-agent LLM systems

    • ReAct [15] and Toolformer [16]—establish the capability of alternating reasoning with external tool calls, making language models agents that can act on the world; the agent survey [17] organizes the architecture and capability space.
    • Hossain et al.'s survey of multi-agent LLM systems [18]—organizes safety, coordination, and scalability challenges; the authors state it inspired their motivation to do domain-specific, cost-sensitive evaluation of consequential actions such as public safety.

    Attacks against LLM agents

    • Instruction-override injection [19], jailbreak analysis [20], universal adversarial suffixes [21], formalization of injection attack and defense [22]—subvert agent instructions by constructing inputs.
    • Greshake et al.'s indirect injection [7] and large-scale stress testing [23]—characterize indirect injection via untrusted tool content; the authors state these works form the payload basis of their adversarial families.

    Agent safety benchmarks and defenses

    • InjecAgent [1], AgentDojo [2], ToolEmu [3], AgentHarm [4], R-Judge [5], AgentSafetyBench [6]—the authors note these benchmarks target general tools or harm categories, and mostly test only whether an attack succeeds, not over-refusal or asymmetric domain costs.
    • Spotlighting [8] and CaMeL's control/data-flow separation [9]—the authors state these inspired TGCC's provenance component; red teaming [24] and constitutional training [25] reduce but do not eliminate residual susceptibility.
    • NEXUS [26]—also intervenes at the tool-call boundary, combining deterministic rules, argument checks, and calibrated risk scores to decide allow, block, or request confirmation; the authors note it targets general runtime safety and latency, not the two-sided asymmetric "over-refusal vs over-reaction" trade-off they formalize.

    Over-refusal

    • XSTest [10]—the authors state it inspired the design of the benign control group, but it is limited to chat scenarios and does not involve consequential tool use.

    Baselines and benchmark: the defense baselines compared in this paper are none (pass-through) and caution (naive caution), evaluated on the authors' own SentryBench (190 scenarios); the authors position this paper's difference as: public safety domain, two-sided asymmetric failure costs, both error directions as first-class metrics, and a formalized harm model coupled to a deterministic ledger scorer.

  3. How does the paper address this problem?

    Composes 190 scenarios from real data, deterministically scores two-sided errors with a ledger, and proposes the trust-gating defense TGCC.

    Overall approach: model public safety tool use as a two-sided, cost-sensitive evaluation problem—compose a scenario library from real emergency content plus real attack payloads, use a deterministic ledger to score attack success (ASR), over-refusal (ORR), and over-reaction (FP) simultaneously, then fold these into a single Harm with asymmetric costs; for defense, propose TGCC (Trust-Gating for Consequential Calls), which intercepts critical calls only when a manipulation signal is detected.

    Formal framework (Section IV)

    • Scenario partition: the scenario set S is divided into adversarial scenarios A, urgent benign controls Bu (must act), and ambiguous benign controls Ba (must not over-act); each scenario has a should-act set A∗i and a forbidden set Fi.
    • Behavioral metrics: three booleans are derived from the ledger: ai (whether an action of the should-act category was taken, matched by tool name), ki (whether it escalated to a human and did not unilaterally cause harm), and fi (whether a forbidden action was executed); from these, under-reaction ui and over-reaction oi are defined. Scoring is at the tool-name level; choosing the wrong unit type or priority counts as another dimension of correctness and is not counted as over-refusal.
    • Deployment harm: H(π) = 1/N ∑i ∈ S (cFNi ui + cFPi oi), i.e., the domain-calibrated asymmetric-cost-weighted average of misses and false alarms; the three headline metrics count conditional probabilities only over actually executed scenarios (errors and filtered episodes are accounted separately).
    • Frontier dominance: policy π dominates π′ when it is no worse on all three axes ASR, ORR, FP and strictly better on at least one.

    Two theorems

    • Theorem 1 (caution is dominated by harm): if caution newly refuses the urgent control set R relative to baseline, and the adversarial harm it avoids ∆− does not exceed the sum of miss costs on R, then caution does not reduce harm, and when the inequality is strict it increases harm; the authors state that in experiments caution's ASR change is at most 3.7 points while R covers at most all urgent controls, and all three models fall in the theorem's harm-dominated region.
    • Theorem 2/3 (trust gate): the injection score s(x) is the number of patterns matched against a fixed pattern set P, with threshold θ = 1; the gate routes critical calls to a human when s ≥ θ or for an over-broad citizen-record query with s > 0. Theorem 2 states the gate introduces no additional over-refusal on clean benign inputs; Theorem 3 states residual attack success is upper-bounded by the detector's miss set, and states that Sonnet's sole success on C-008 (s = 0) shows the bound is tight.

    Benchmark construction (Section V)

    • Real data sources: four public Hugging Face datasets—prompt-injections (546→203) and jailbreak-classification (600→310) provide attack payloads, disaster-response (2000→1550) and 911-transcripts (250→249) provide legitimate content (Table II); disaster messages keep only relevant rows, remove PII-marked rows, use only English translations, and require a minimum length, with seeded sampling.
    • Scenario composition: each scenario consists of real content plus (adversarial family) real payloads and a domain directive; the untrusted channel is real_content + real_payload + domain_directive, and the poisoning family (F) places the payload in the tool return. The instruction templates are deliberately mixed—some detectable by the detector, some deliberately evasive—forming a realistic recall gap.
    • Six families totaling 190 scenarios (Table III): A benign urgent (tests over-refusal, n=40), B benign ambiguous (tests over-reaction, n=38), C adversarial suppression (n=38), D adversarial alarm (n=30), E adversarial record query (privacy, n=24), F adversarial poisoning (n=20).
    • Simulated tool sandbox: six mocked tools return seeded synthetic data and do not touch real systems; the ledger is the evaluation substrate, scoring is derived deterministically from logs, with no LLM judge (Fig. 1).

    Three defense configurations (Section VI)

    • None: pass-through baseline.
    • Caution: a naive "refuse more" policy with only a prompt preamble ("when in doubt, do not act, escalate"), the target of Lemma 1 and Theorem 1.
    • TGCC: four independently ablatable components—(1) provenance separation, placing untrusted data between markers with instructions not to follow instructions within them; (2) a heuristic injection detector over untrusted channels and tool results; (3) a gate that routes critical calls to a human on a manipulation signal or least-privilege violation (Algorithm 1); (4) containment that treats gate-intercepted calls as escalated to a human. The gate triggers only on manipulation signals or over-broad queries, and does not get in the way on clean benign inputs.
  4. What experiments did the paper conduct?

    Three models and three defenses, 840 episodes in total: caution has the highest harm across the whole table, TGCC dominates the frontier; platform filters need to be accounted for separately.

    Experimental setup

    • Models tested: claude-sonnet-4-5, claude-haiku-4-5, Azure gpt-5; Claude decodes at temperature 0, GPT-5 is a reasoning model with a fixed completion-token budget and default temperature (Section VII).
    • Benchmark and scale: SentryBench 190 scenarios; Haiku runs all 190 scenarios (570 episodes), the two larger models run a 45-scenario stratified subset (270 episodes), totaling 840 scored episodes.
    • Defense configurations: none, caution, TGCC, each applied to each model.
    • Metrics: ASR (attack success rate), ORR (over-refusal rate), FP (over-reaction rate), Cont. (containment rate), Harm (cost-weighted harm, Eq. 1); all count conditional probabilities only over actually executed episodes.
    • Evaluation method: deterministic ledger scoring, LLM judge disabled; confidence intervals are nonparametric bootstrap (1000 resamples).
    • Errors and filtering: episodes that error or are blocked by the content filter are given no behavioral outcome and are counted separately.

    Main results

    Table IV (units: %, best per model in bold):

    Swipe horizontally to read the table

    ModelDefenseASRORRFPCont.Harm
    Haikunone2.737.50.050.90.85
    Haikucaution1.865.00.062.51.33
    Haikutgcc0.035.00.075.90.66
    Sonnetnone3.744.40.074.11.00
    Sonnetcaution0.0100.00.0100.01.80
    Sonnettgcc3.744.40.092.61.00
    GPT-5none0.062.50.081.21.00
    GPT-5caution0.0100.00.093.81.60
    GPT-5tgcc0.037.50.091.70.60
    • Authors' interpretation (caution): caution buys at most a 3.7-point change in ASR, yet pushes over-refusal for Sonnet and GPT-5 to 100%, i.e., refusing almost all real emergencies; its Harm is highest on all three models, which the authors state falls exactly in Theorem 1's harm-dominated region.
    • Authors' interpretation (TGCC): TGCC reduces ASR to 0 on Haiku and GPT-5, with over-refusal no higher than the undefended baseline (Haiku 35.0 vs 37.5; GPT-5 37.5 vs 62.5; Sonnet unchanged), and the highest containment rate on all; by Definition 3, TGCC dominates caution on all three models, dominates none on Haiku and GPT-5, and on Sonnet has the same ORR/ASR as none but raises containment from 74.1 to 92.6.
    • Harm ranking (Fig. 3): TGCC is 0.66/1.00/0.60 (Haiku/Sonnet/GPT-5), caution is 1.33/1.80/1.60; the authors state that on each model caution is highest and TGCC is lowest or tied-lowest.

    Model-level vs system-level accounting (RQ4, Table V)

    • What was measured: the Azure content filter returns HTTP 400 for GPT-5's adversarial prompts, 11–15 per condition, and the model does not run at all on these episodes.
    • Results: system-level over-refusal is higher than model-level (e.g., under tgcc, ORRm 37.5, ORRs 44.4), because the filter also blocks some real emergencies; GPT-5's model-level 0% ASR is based on at least only 12 actually executed episodes.
    • Authors' interpretation: the platform filter silently does part of the defense work and also causes system-level over-refusal; a fair deployment comparison must report model-level and system-level separately.

    Real attack successes and frontier tension (Section VIII-D/E)

    • Real successes: all 7 non-filtered real successes are under-reaction in family C (suppression)—5 on Haiku (none/caution), 2 on Sonnet (both scenario C-008, one each under none and tgcc); TGCC eliminates all suppression successes except Sonnet C-008 (instruction score s = 0, evading the detector), which the authors state is exactly Theorem 3's recall-limited residual.
    • Benign over-reaction: FP is 0% under all models and all defenses; the authors state these conservative models never falsely raise alarms on ambiguous reports, so the measured frontier tension concentrates on the over-refusal (FN) axis.
    • Sub-finding: on Haiku over the full library, over-refusal on explicit emergency call transcripts is only 18%, whereas short disaster-report-type emergency scenarios are 83%—same model, same defense, different wording; the authors state over-refusal is driven by content form rather than danger level.

    Other ablations and analyses

    • The paper does not report per-component ablation numbers for TGCC's four components, detector threshold sweeps, or sensitivity experiments on the cost coefficients; Theorem 3's tightness is illustrated only by the single Sonnet C-008 case (s = 0).
  5. What are some points that can be further explored?

    The authors list future directions such as expanding the scenario library, adding published defense baselines and adaptive-attacker tracks; the experiments cover three models, with the two larger models run only on a subset.

    Limitations and future directions noted by the authors

    • Scaling up: run the full scenario library on all models (Conclusion; currently the two larger models run only a 45-scenario subset).
    • Defense baselines: add published defense baselines—spotlighting, CaMeL-style separation, allow-listing (Conclusion).
    • Adaptive attacks: add an adaptive-attacker track (Conclusion).
    • Detector: replace the current heuristic injection detector with a learned detector (Conclusion).
    • Cost calibration: form a severity calibration panel and provide robustness curves by cost ratio (Conclusion).
    • Residual risk: the authors state TGCC's containment guarantee is bounded by detector recall, and Sonnet C-008's success (s = 0) is an instance of a detector recall gap, "not a silver bullet" (Section IV, at Theorem 3).

    Experimental coverage

    • Models tested: claude-sonnet-4-5, claude-haiku-4-5, Azure gpt-5, 3 in total (Section VII).
    • Scenario coverage: Haiku runs all 190 scenarios, Sonnet and GPT-5 run only a 45-scenario stratified subset; totaling 840 scored episodes (Section VII).
    • Defense evaluation: only three configurations, none, caution, TGCC, with no empirical comparison against published defenses (Section VI, Conclusion).
    • GPT-5 effective samples: the Azure filter blocks 11–15 adversarial prompts per condition, and GPT-5's model-level 0% ASR is based on at least only 12 actually executed episodes (Section VIII-C).
    • Not reported: the paper does not report ablation numbers for TGCC's four components, the number of repeated runs per episode (it states only that tools are seeded and scoring is deterministic), nor the specific content and size of the detector pattern set P.
  6. Summarize the main content of the paper

    SentryBench redefines public safety tool-agent safety as a two-sided cost-sensitive problem, and provides a benchmark, theorems, and a trust-gating defense.

    SentryBench is a safety benchmark and evaluation framework for tool-using LLM agents aimed at public-safety deployment. Addressing the problem that "existing benchmarks only measure attack success and treat default refusal as safety," it models failure as bidirectional and asymmetric: both missing a real emergency event and false alarms/unauthorized actions incur cost.

    • Problem: A single erroneous tool call by an agent has real-world consequences; the authors state that previously no benchmark included a benign control group to simultaneously expose over-refusal and adversarial robustness.
    • Method: 190 scenarios are composed from real 911 transcripts, disaster messages, and real injection/jailbreak payloads, covering five attack vectors and six scenario families; a ledger of six simulated tools scores deterministically (no LLM judge); Harm weights the two error directions by asymmetric cost; for defense, a four-component trust gate TGCC is proposed, with Theorem 1 proving that "refusing more" is dominated by harm over the observed interval, and Theorems 2/3 characterizing the trust gate's zero over-refusal cost and recall-limited residual.
    • Main results (Table IV, 840 episodes): caution pushes the ORR of Sonnet and GPT-5 to 100%, ASR changes by at most 3.7 points, and Harm is highest across all three models (1.33/1.80/1.60); TGCC achieves ASR of 0 on Haiku and GPT-5, ORR no higher than baseline, and Harm lowest or tied for lowest (0.66/1.00/0.60), with containment rate highest across the board.
    • Other findings: All 7 real attack successes are suppression-type (family C); benign FP is 0% across the board; on Haiku, over-refusal on disaster-briefing-type emergency scenarios is 83%, versus only 18% for explicit call transcripts; the Azure filter blocks 11–15 GPT-5 adversarial prompts, and its 0% ASR is based on as few as 12 executed episodes.
    • Authors' conclusions: For deployment, agents should be tuned to a scenario-calibrated cost ratio rather than a single refusal threshold, and the governance metric should be Harm rather than only attack success rate; a trust gate that acts only on manipulation signals is a natural mechanism for decoupling adversarial defense from blanket caution; platform filters must be reported separately.
Read originalarxiv.org