← Lab /AI/ML

LLM hijack detectors show low precision and fail to transfer across benchmarks

Trained detectors for hijacked LLM agents have low precision at realistic attack rates and do not generalize between benchmarks

AI/ML arXiv 30 Oct 2026 Measurement Simulation evidence Threat model

Published as “What Standard Evaluations Hide About Detectors of Hijacked LLM Agents: Rare Attacks, Unseen Tools and Benchmark Transfer”

Why it matters

Security teams cannot rely on benchmark AUROC scores alone; detectors must be evaluated at realistic attack rates and with tool-coverage controls to avoid overwhelming false-positive alerts.

Summary

Detectors that achieve high AUROC on benchmark traces produce very few useful alerts when attacks are rare: at a 2% attack rate the best logistic-regression detector (AUROC 0.879) only reaches 0.076 precision, i.e., about 12 false alerts per true one. Their performance collapses when test tool calls involve unseen tools, with ranking order reversing below roughly 50% tool coverage, though dropout on tool inputs mitigates this effect. Detectors trained on the synthetic AgentDrift benchmark do not transfer to real AgentDojo traces, scoring near chance (AUROC 0.47-0.52), while a released monitor transfers but still over-alerts (precision 0.096 at 2% prevalence). The evidence is based on systematic experiments across two public benchmarks, with confidence intervals from bootstrap resampling.

What they found 6

  1. At 2% attack prevalence the best AUROC detector yields only 0.076 precision.

    “At a 2% attack rate a detector with an area under the receiver operating characteristic curve (AUROC) of 0.879 reaches a precision of 0.076”

  2. Precision varies widely with the mix of hard negatives, ranging from 0.039 to 0.117.

    “the mix of negatives alone moves that precision between 0.039 and 0.117”

  3. Detector rankings cross near 50% tool coverage and reverse below it when unseen tools appear.

    “as tool coverage, the share of test tool calls whose tool was seen in training, falls, detector rankings cross near 50% coverage and reverse below it, because unseen tools map to inputs that training never reached”

  4. Dropout on tool inputs largely removes the ranking reversal.

    “Dropout on tool inputs largely removes the reversal”

  5. No detector trained on AgentDrift ranks AgentDojo traces better than chance (AUROC 0.47-0.52).

    “No detector trained on AgentDrift ranks AgentDojo traces better than chance (AUROC 0.47 to 0.52)”

  6. The released monitor transfers (AUROC 0.930) but its native decision yields only 0.096 precision at 2% prevalence.

    “The monitor, trained on neither, reaches 0.930, but with its open backbone its released decision rule would still mostly raise false alerts at a 2% attack rate (precision 0.096)”

Caveats 6

  • High AUROC does not translate into usable alert rates at realistic low attack prevalences (precision 0.076).
  • Ranking reversals occur when many test tools are unseen, undermining detector reliability.
  • Cross-benchmark transfer fails: detectors trained on AgentDrift achieve near-chance AUROC on AgentDojo.
  • Internal validity. Only the monitor’s plan was prospective in full (Appendix D). Several readings were added after related results were seen, and several decisions are borderline.
  • Construct validity. We score whole trajectories after the fact and evaluate neither step-level localization nor scoring before each call.
  • External validity. AgentDrift is synthetic, comes from one generator, is nearly separable by surface content and has fully disjoint tool sets across domains, so R3 is an extreme vocabulary shift.

What’s new here 4

  • Evaluates detector precision under realistic low attack prevalences rather than only AUROC.
  • Introduces the notion of tool coverage and measures its impact on ranking and thresholds.
  • Tests cross-benchmark transfer from a synthetic to a recorded benchmark, revealing near-chance performance.
  • Shows that dropout on tool-input embeddings can remove ranking reversals caused by unseen tools.

Threat model stated by the source

Adversaryindirect injector who controls the content of tool observations
Capabilitycan write arbitrary text into tool outputs but has no access to the agent model or detector and does not adapt to the detector