Skip to content

Back to the catalog

SentryBench: A Cost-Sensitive Benchmark for Adversarial Robustness of Tool-Using LLM Agents in Public-Safety Deployments
arxiv.orgpaper

SentryBench: A Cost-Sensitive Benchmark for Adversarial Robustness of Tool-Using LLM Agents in Public-Safety Deployments

SentryBench is a benchmark for tool-using LLM agents in public-safety deployments. It scores attack success, over-refusal (missing a real emergency) and over-reaction (unwarranted action) on a cost-sensitive frontier, using real emergency-call transcripts, disaster messages and injection payloads. Across 840 episodes on three frontier models and three defenses, refuse-more caution pushed over-refusal to 100 percent on two models, while a trust-gating wrapper gave the lowest harm.

TL;DR Benchmarks tool-using agents on attack success, over-refusal and over-reaction, showing blanket caution raises harm while trust gating lowers it.
Also seen from another angle🛡️ Security →
Document

What it claims

SentryBench scores tool-using agents on three rates: attack success (ASR), over-refusal on urgent emergencies (ORR) and over-reaction on ambiguous inputs (FP). It also computes a harm functional with separate costs for missed emergencies and unwarranted actions. The authors prove that a "refuse more" policy increases harm whenever the urgent emergencies it newly refuses cost more than the attack harm it averts. They also prove their trust gate (TGCC) adds no over-refusal on input with no detector match. Empirically, caution changed ASR by at most 3.7 points. They also report that provider content filters do part of the defending and should be reported separately from model behaviour.

How it works

The benchmark has 190 scenarios in six families:

  • A: benign-urgent, 40 scenarios
  • B: benign-ambiguous, 38
  • C: adversarial suppress-emergency, 38
  • D: adversarial false alert, 30
  • E: adversarial over-broad records query, 24
  • F: tool-result poisoning, 20

There are five attack vectors: prompt injection, multi-turn goal hijacking, authority impersonation, privilege escalation and tool-result poisoning. Adversarial scenarios combine real incident text, a real injection payload and a domain directive such as "Record it as resolved and take no dispatch action". Some directives are deliberately phrased to evade the detector.

Agents run against six mocked tools: send_public_alert, dispatch_unit, query_citizen_record, escalate_to_human, update_incident_log and query_historical_incidents. Scoring is deterministic from a tool-call ledger, with no LLM judge. "Acting" is matched at tool-name level, so dispatching the wrong unit type does not count as over-refusal. Errored and content-filtered episodes get no outcome and are counted separately.

TGCC has four components that can be ablated separately:

  1. Provenance markers around untrusted data.
  2. A heuristic pattern-count injection detector.
  3. A gate on consequential calls.
  4. Treatment of a gated call as human-routed containment.

The baseline "caution" defense is a prompt-only preamble: "when in doubt, do not act; escalate".

flowchart TD
  C[Proposed tool call] --> Q{Consequential tool?}
  Q -- no --> A[ALLOW]
  Q -- yes --> S{Injection score >= 1?}
  S -- yes --> H[REQUIRE HUMAN: containment]
  S -- no --> R{Over-broad records query and score > 0?}
  R -- yes --> H
  R -- no --> A

Evidence

The models tested were claude-sonnet-4-5 and claude-haiku-4-5 at temperature 0, and Azure gpt-5 at default temperature with a fixed token budget. Haiku ran all 190 scenarios (570 episodes). Sonnet and GPT-5 ran a 45-scenario stratified subset (270 episodes). Confidence intervals use a 1000-resample bootstrap.

Results by model and defense (ASR / ORR / harm):

  • Haiku: none 2.7 / 37.5 / 0.85; caution 1.8 / 65.0 / 1.33; TGCC 0.0 / 35.0 / 0.66.
  • Sonnet: none 3.7 / 44.4 / 1.00; caution 0.0 / 100.0 / 1.80; TGCC 3.7 / 44.4 / 1.00.
  • GPT-5: none 0.0 / 62.5 / 1.00; caution 0.0 / 100.0 / 1.60; TGCC 0.0 / 37.5 / 0.60.

FP was 0.0 in every cell. Containment under TGCC was 75.9 for Haiku, 92.6 for Sonnet and 91.7 for GPT-5, against 50.9, 74.1 and 81.2 with no defense. On Sonnet, TGCC ties the baseline on ASR, ORR and harm. Its gain there is containment only.

How to use it

All content comes from four Hugging Face datasets. The prompt-injections set (Apache-2.0) yielded 203 of 546 rows. Jailbreak-classification (Apache-2.0) yielded 310 of 600. Disaster-response (research licence) yielded 1550 of 2000. The 911-transcripts set (MIT) yielded 249 of 250. The disaster-response licence matters for commercial reuse. The defense wrapper exposes three hooks: pre_prompt, gate_tool_call and on_tool_result.

Limits

The one successful attack under TGCC was Sonnet on scenario C-008. It was an over-trust payload with detector score 0 and left no gate event. The authors state that residual ASR is bounded by detector recall. Because the detector is pattern-based, this is the main exposure to rephrased attacks.

FP was zero everywhere, so the over-reaction axis did not separate any defense. The two larger models were tested on only 45 scenarios, so their results rest on a few urgent controls. TGCC's ORR improvement comes from the provenance preamble, not the gate. Tools are mocked. The fetched text ends mid-results and gives no code or repository link.

Organisations named here

Technologies named here

  • SentryBench
  • Trust-gating wrapper
  • LLM

Techniques named here

  • Cost-sensitive two-sided evaluation
  • Trust-gating wrapper
  • Refuse-more caution