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

📅 2026-09-07
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
研究提出AgentDrift,一个包含12,536个合成工具调用轨迹的基准,用于检测和标记LLM代理中的间接提示注入攻击,通过分步标签识别注入点及受影响步骤。
📝 Abstract
LLM agents complete tasks by issuing sequences of tool calls, and every observation they read is a channel through which an indirect prompt injection can enter. A successful injection has a characteristic shape when the trajectory is read in order: a benign prefix gives way to actions that serve the attacker rather than the user. Existing benchmarks measure whether such attacks succeed against live agents, and existing guard models judge a trace as a whole; no public corpus labels, step by step, where an injection enters a trajectory and which steps it corrupts. We present AgentDrift, a benchmark of 12,536 synthetic tool-call trajectories over five agent domains in which every one of the 71,024 steps carries one of four labels: benign, injection point, hijacked, or failed injection. The corpus contains 4,000 benign, 5,536 attacked, 1,500 failed-attack, and 1,500 hard-negative trajectories; attacked trajectories follow three compliance patterns whose label strings obey a stated regular grammar. Failed attacks carry an injection the agent resisted, and hard negatives carry legitimate content that resembles an attack, so a detector must separate attempt from success and deviation from novelty. Trajectories were generated by a single open model under category-specific protocols, enforced by a closed-vocabulary structural validator, screened by an LLM judge, and audited by hand on 1,200 trajectories; we show that the LLM judge was itself fooled by the hard negatives. A surface-feature logistic regression recovers only 55.4% of attacks (F1 0.647), including only 8.2% of partial hijacks and 23.1% of delayed executions, so nearly half of the attacks require modeling the behavioral sequence. We measure template concentration, attack-goal-family collapse, and world-identity leakage in the generated data, and release the corpus with its documentation under CC BY 4.0.
Problem

Research questions and friction points this paper is trying to address.

indirect prompt injection
trajectory labeling
attack detection
Innovation

Methods, ideas, or system contributions that make the work stand out.

Step-Labeled Benchmark
Injection-Hijacked LLM Agent Trajectories
Behavioral Sequence Modeling
💼 Related Jobs
No related jobs found.
A
Asif Pinjari
School of Informatics, Computing, and Cyber Systems, Northern Arizona University, Flagstaff, AZ, USA
M
Mithun Paul Saint-Germain
School of Informatics, Computing, and Cyber Systems, Northern Arizona University, Flagstaff, AZ, USA