← Lab /AI/ML

Prompt-injection detectors rank poorly on real LLM agent tool outputs

Benchmark scores of prompt-injection detectors do not predict their effectiveness inside LLM agents

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

Published as “Passing the Test You Trained On: Re-evaluating Prompt-Injection Detectors for LLM Agents”

Why it matters

Practitioners should evaluate detectors on their own agents' tool outputs, report detection at a low false-positive rate, and verify that the detector was trained on similarly formatted inputs before deployment.

Summary

Detection rankings for prompt-injection detectors do not transfer across benchmarks: the top BIPIA detector catches only 2% of AgentDojo injections at 1% false-positive rate, and a detector that catches 72% of AgentDojo injections catches just 15% on τ-bench. False-positive rates on tool outputs are stable across agent benchmarks (Kendall τ = 0.67) but vary wildly (0%-over 90%) between detectors. The form of the training data, not overlap of attack strings, explains where a detector works. Evidence comes from replaying benign tool calls and differential replay of injected calls on two agent benchmarks and BIPIA, and from auditing public training data of the detectors. The paper’s evidence is strong for the specific benchmarks evaluated but limited to static, synthetic attacks and simulated tool outputs.

What they found 1

  1. False-positive rates are stable across agent benchmarks but vary widely across detectors

    “False-positive rates on benign agent tool outputs range from 0% to over 90% across detectors, are consistent across the two agent benchmarks (τ = 0.67), and are not predicted by false-positive rates on ordinary text.”

Caveats 4

  • The detector that ranks first on BIPIA (PIGuard) catches only 2.1% of AgentDojo injections at the same 1% FPR threshold.
  • Prismor catches 72.2% of AgentDojo injections but only 15.2% on τ-bench, showing a large drop in performance across benchmarks.
  • Limitation. Both agent benchmarks are simulations: AgentDojo returns synthetic YAML records, and τ-bench returns JSON from synthetic databases.
  • Limitation. All injections come from benchmark templates. An adaptive attacker who knows the detector or judge would lower every detection rate we report.

What’s new here 4

  • Evaluates prompt-injection detectors on the actual serialized tool outputs that agents would screen, using clean replay and differential replay methods.
  • Audits publicly disclosed training data of detectors to explain performance differences across benchmarks.
  • Shows that detection performance does not transfer between benchmarks, while false-positive behavior does.
  • Analyzes the impact of input format and metadata on detector false-positives.

Threat model stated by the source

AdversaryAttacker who can write parts of the data returned by tools (e.g., calendar event description, email body, review, table cell, Q&A answer)
CapabilityControls part of the tool output (A1) but cannot modify the user request, the LLM agent, or the detector