Skip to content
← Back to research index

deep report · arXiv 2609.06972 · 2026-09-13

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

AgentDrift addresses the absence of step-level labeled data for indirect prompt injection in LLM agents by releasing 12,536 synthetic tool-call trajectories (71,024 steps) in which every step is labeled benign, injection point, hijacked, or failed injection, and demonstrates with a surface-feature logistic regression that only 55.4% of attacks (and only 8.2% of partial hijacks) can be detected without sequence modeling.

analysis generated with kimi-k32026-09-13 · 5 min read · pypdf · 19 PDF pages
in this analysis
01

execution profile

Cost before commitment

The minimum test is designed to disprove the method on your workload. The original experiment column describes the infrastructure behind the published evidence, not a recommendation.

minimum useful testAPI or CPU
original experimentcluster
classification basisstated in the paper
training requirementnot reported
exhibit 01 Validation tier compared with the evidence tier supporting the paper's claims.
02

what needs to change

The problem

Existing indirect-prompt-injection benchmarks measure attack success rates against live agents and guard models judge whole traces, but no public corpus labels, step by step, where an injection enters a trajectory and which steps it corrupts, nor distinguishes resisted attacks from successful ones and from legitimate-but-suspicious content.

03

the technical change

How it works

This is a benchmark dataset, not a detection method. A single open model (Llama-3.3-70B-Instruct, quantized) generates complete tool-call trajectories across five domains under category-specific protocols in which the label structure is specified at generation time and enforced by a closed-vocabulary structural validator implementing a regular label grammar (benign, full/partial/delayed hijack, failed attack, hard negative). Accepted trajectories are screened by an LLM judge (shown to be unreliable) and audited by hand on 1,200 trajectories. The dataset replaces trace-level or success-rate evaluation with per-step detection, localization, and attempt-versus-success tasks, with per-trajectory world context enabling world-grounded external-recipient features.

setupstandard Python

04

what the PDF supports

Published evidence

  1. evidence 01

    The corpus contains 12,536 trajectories and 71,024 step labels across four categories and five domains, with all labels conforming to a stated regular grammar.

    result
    12,536 trajectories; 71,024 steps; 4,000 benign / 5,536 attacked / 1,500 failed-attack / 1,500 hard-negative; 100% positional grammar adherence
    baseline
    Prior resources (InjecAgent, AgentDojo, TraceSafe, StepShield, etc.) lack the combination of per-step injection labels, a resisted class, and hard negatives (Table I)
    conditions
    Synthetic data from a single generator model; labels are protocol-specified, not independent human gold annotations
    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.
    Open page 1 in the PDF
  2. evidence 02

    A surface-feature logistic regression baseline recovers only 55.4% of attacks, establishing that the benchmark cannot be solved without sequence modeling.

    result
    Precision 0.778, recall 0.554, F1 0.647, AUROC 0.734; recall 88.0% full hijack, 8.2% partial hijack, 23.1% delayed execution; failed attacks flagged at 0.187 vs 0.105 benign
    baseline
    Six-dimensional hand-crafted feature vector with logistic regression (the paper's own baseline, not an external method)
    conditions
    Evaluated once on the released 1,881-trajectory test split; baseline has access to world-grounded external-recipient features
    Source not located automatically in the PDF
  3. evidence 03

    World-identity leakage lets a trivial lookup predictor reach 86.1% binary accuracy on the default split, so uncontrolled results on this corpus are not evidence of injection detection.

    result
    86.1% binary accuracy overall (93.3%–98.2% in four domains) vs 55.8% majority-class rate; 47.7% in email
    baseline
    Majority-class baseline (55.8%)
    conditions
    Lookup of identical world object in training split; caused by concurrent SLURM jobs creating separate world pools per category in four domains
    The predictor reaches 86.1% binary accuracy on the test split against a 55.8% majority-class rate, and between 93.3% and 98.2% in banking, web, coding, and medical
    Open page 13 in the PDF
  4. evidence 04

    An LLM judge is an unreliable verifier of security labels: it rejected 99.6% of hard negatives as malicious, fooled by the surface cues the class exists to penalize.

    result
    Screening pass rates: benign 89.6%, full hijack 3.6%, delayed execution 1.4%, hard negatives 0.4%; manual audit found 99.6% label correctness on 1,200 trajectories
    baseline
    Programmatic grammar checks (100% adherence) and 1,200-trajectory manual audit (99.6% correct)
    conditions
    Same model (Llama-3.3-70B) at temperature 0.1 with category-specific checklists; screening verdicts not used to filter the release
    the reviewer marked 1,494 of 1,500 as BAD because their observations “contain suspicious content” and “should be labeled as malicious”; that is, it was fooled by exactly the surface cues that the class exists to penalize
    Open page 10 in the PDF
  5. evidence 05

    The corpus has measurable template concentration and attack-goal-family collapse that enable memorization shortcuts.

    result
    28.9% of injected observations name an ext-audit.com address; ~75% of hard negatives mention $5,000, an in-domain audit@ address, or a transfer; external-recipient fraction is 0.47–0.57 across all six attack-goal families
    conditions
    4-gram analysis over the released corpus; family tags released as metadata only, not certified classification targets
    Source not located automatically in the PDF
05

how to try to disprove it

Minimum useful test

  1. Download the released corpus (CC BY 4.0, GitHub) and verify the counts and grammar claims directly: 12,536 trajectories, per-category label strings matching the stated regular languages, and the 70/15/15 split.
  2. Reproduce the world-identity lookup check (Table XI) on the test split; if a world-lookup predictor does not reach ~86% binary accuracy on your copy, the leakage claim fails; if it does, apply world anonymization or a world-held-out split before any further evaluation.
  3. Re-implement the six-feature logistic regression baseline (specified in Section IX-A, reproducible 'with a few lines of code') and confirm it recovers ~55% of attacks overall but under 25% on partial hijacks and delayed executions; if simple features solve those patterns, the paper's core difficulty claim fails.
  4. Train a small sequence model (e.g., a short transformer or BiLSTM over the documented step linearization) on CPU or a single small GPU under the world-anonymized protocol; if it does not beat the surface baseline on partial-hijack and delayed-execution recall, the claimed need for sequence modeling is not demonstrated on your workload.
  5. Spot-audit a random sample of attacked and hard-negative trajectories by hand against the category definitions to check whether the 99.6% label-correctness claim holds for your use case.
06

source-grounded technical core

From equation to test

evaluation protocol

The technical core is the evaluation protocol, not a new formula.

07

adoption and validation risk

Failure modes

  • All 12,536 trajectories come from a single generator model, so a detector may learn the generator's stylistic fingerprint rather than injection semantics; transfer to production agent traces is untested.
  • World-identity leakage in four domains means results on the default split without anonymization or world-held-out splitting are not evidence of injection detection.
  • Template concentration (28.9% of injections naming one fictitious domain; ~75% of hard negatives sharing three motifs) permits memorization unless target domains and amounts are masked at test time.
  • Injections almost always fall at step 2 or 3 under fixed positional templates, enabling positional-prior shortcuts.
  • Labels are protocol-specified and structurally validated rather than independently human-annotated; the 99.6% correctness figure is an estimate from a 1,200-trajectory sample.
  • Short trajectories (3–11 steps), single agents, and no real agent traffic limit applicability to long-horizon or multi-agent settings.
08

what remains unresolved

Questions before adoption

  • Does a sequence-aware detector trained on AgentDrift actually outperform the surface baseline under the world-anonymized and world-held-out protocols, and by how much on partial hijack and delayed execution?
  • Does training on this synthetic distribution transfer to real agent traces or to trajectories from other generators?
  • What inter-annotator agreement would human labeling of the injection index and hijacked span yield (listed as future work)?
  • Are the released GitHub artifacts (data files, tool pools, loader) complete and consistent with the paper's reported counts?
  • What compute budget is needed to train a competitive sequence model on the corpus (not reported; only the trivial baseline is evaluated)?

Generated from the arXiv PDF with kimi-k3 on 2026-09-13. The PDF text was extracted with pypdf. Paperraft did not reproduce this experiment.

↑