跳到正文
arXiv:cs.CL· Zhuowen Liu·· 4 小时前AI 评分60

arXiv 论文重新评估 LLM Agent 的提示词注入检测器:基准排名难以迁移

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

AI 导读

arXiv 论文(arXiv:2610.03448)重放 AgentDojo 和 tau-bench 的工具输出,评估 15 个提示词注入检测器(含 Meta 的 Prompt Guard 2)和两个任务感知 LLM judge。

正文

View PDF HTML (experimental)

Abstract:LLM agents increasingly screen tool outputs with small prompt-injection detectors, and teams choose among detectors by their scores on public benchmarks. We ask whether those scores predict how a detector behaves inside an agent. We replay the ground-truth tool calls of two agent benchmarks, AgentDojo and tau-bench, without an LLM to obtain tool outputs that are benign by construction, label injected outputs by differential replay, and evaluate fifteen detectors, including Meta's Prompt Guard 2, and two task-aware LLM judges on these outputs and on the BIPIA benchmark. Detection rankings transfer poorly between benchmarks: the best detector on BIPIA catches 2% of AgentDojo injections at a 1% false-positive rate, and a detector that catches 72% of AgentDojo injections catches 15% on tau-bench. False-positive rates on tool outputs, which range from none to over 90%, do transfer between the two agent benchmarks. Where training data is public, the form of the training inputs explains the results. The BIPIA leader was trained on full BIPIA inputs, but having seen InjecAgent's attack strings as short prompts does not help it find them inside tool outputs; the best detector on both agent benchmarks shares no data with any benchmark and was trained on agent-style inputs. Evaluations meant to inform deployment should use the agent's own tool outputs, report detection at a low false-positive rate, and audit what the detector was trained on.
Comments: 12 pages, 5 figures, 4 tables. Code: this https URL
Subjects: Cryptography and Security (cs.CR); Computation and Language (cs.CL)
Cite as: arXiv:2610.03448 [cs.CR]
  (or arXiv:2610.03448v1 [cs.CR] for this version)
  https://doi.org/10.48550/arXiv.2610.03448

arXiv-issued DOI via DataCite (pending registration)

Submission history

From: Zhuowen Liu [view email]
[v1] Fri, 2 Oct 2026 15:30:11 UTC (107 KB)

来源:arXiv:cs.CL · arxiv.org