What Standard Evaluations Hide About Detectors of Hijacked LLM Agents: Rare Attacks, Unseen Tools and Benchmark Transfer
Abstract
Detectors can flag hijacked large language model (LLM) agents from the traces of the tools they call. In the eleven evaluations we audited, attacks or anomalies make up 16% to 86% of the test samples, no evaluation varies that share, and six report no test on data from a second benchmark or source. We ask what such evaluations hide. On the AgentDrift and AgentDojo benchmarks we test trained detectors that read tool identities, behavior, call sequences, step embeddings or text, and a released LLM action monitor, AlignmentCheck, with thresholds fixed on training data or set by the monitor's released decision rule. First, 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, and the mix of negatives alone moves that precision between 0.039 and 0.117. Second, 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. Dropout on tool inputs largely removes the reversal. Third, no detector trained on AgentDrift ranks AgentDojo traces better than chance (AUROC 0.47 to 0.52), including one that reaches 0.996 within AgentDojo. 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). We turn these findings into a checklist for evaluating trace detectors.
Create a lesson
Metadata
- Categories
- cs.CR, cs.LG
- Comments
- 14 pages, 4 figures, 6 tables. Code, data and every monitor call: https://github.com/Mahmoud-Abbasi-svg/agent-trace-detector-eval
Related papers
TxBench: Verifying Public Incident Data to Benchmark Smart-Contract Attack Detectors
Shared title terminologycs.CRTamer Abdelaziz, karim Ali
ANGLER: Verifier-Grounded Benchmarking with an Adaptive Attacker for Web Agents
Shared title terminologycs.CRYini Huang, Aiwen LU, Zhen Sun et al.
Benchmarking Web Agent Defenses Against Adaptive Visual Prompt Injection
Shared title terminologycs.CRHaichuan Zhang, Zhiyuan Zhong, Shih-Chieh Dai et al.
Who Grades the Agent? Privilege Separation for Coding-Agent Benchmarks
Shared title terminologycs.CRNathan Nour Houlamy, Mattia Favretto, Earlence Fernandes et al.
Subverting Tool Arguments: Defense-Evading Metadata Poisoning in LLM Agents
Shared title terminologycs.CRShih-Chieh Dai, Xinyu Sun, Haichuan Zhang et al.
Privacy Protection in Self-Evolving Personal Agents: Persistent Memory and Cross-Carrier Transfer
Shared title terminologycs.CRZibin Lin, Taotao Wang, Shengli Zhang