cs.CROct 30, 2026

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

Authors: Mahmoud Abbasi, Juan M. Núñez V., Amin Shahraki

Organizations: the University of Salamanca, 37007 Salamanca, Spain · the AIR Institute, Salamanca, Spain · the Department of Informatics, University of Oslo, 0373 Oslo, Norway

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.

Figures & tables

Appendix figures & tables1 asset

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Passing the Test You Trained On: Re-evaluating Prompt-Injection Detectors for LLM Agents

    Oct 2, 2026Zhuowen LiuPrompt Injection DetectionAI Agent Security Benchmarks

  2. AgentDrift: A Step-Labeled Benchmark of Injection-Hijacked LLM Agent Trajectories

    Sep 7, 2026Asif Pinjari, Mithun Paul Saint-GermainAI Agent Security BenchmarksPrompt Injection Attacks on AI Agents

  3. AgentShield: Deception-based Compromise Detection for Tool-using LLM Agents

    May 10, 2026Yassin H. Rassul, Tarik A. RashidLLM Agent SecurityAI Agent Monitoring