Arsalan Kaleem · Preprints.org 2026 · 2026
DOI: 10.20944/preprints202611.0859.v1
Counts differ because each database indexes a different set of publications. We treat OpenAlex as the canonical count; Google Scholar is not shown (no API, and crawling it violates its ToS).
Indirect prompt injection lets text that a large language model (LLM) agent reads redirect the tools it calls. Step-level guards that score each proposed tool call before it executes report near-perfect accuracy, but only on one synthetic corpus. We test whether such a guard protects real agents in two settings. We build TraceWarden, a pre-dispatch guard with argument-provenance and goal-anchoring features and a conformal false-alarm budget, and release two real, step-labeled datasets: AgentDojo-Steps (846 trajectories from tool-using agents) and SWE-Inject-Steps (630 trajectories from coding agents with shell access, including a URL-free attack set). Over five training seeds, the guard reaches 0.98 trajectory F1 on its synthetic benchmark. On real tool-using agents it falls to 0.33 and 0.46 F1, injection localization drops from 0.88 to 0.01–0.04 exact match, and a 1% conformal false-alarm budget is exceeded 9- to 24-fold. On coding agents it blocks 1 or 2 of 48 hijacks, ranking them at or below chance; a sentence encoder ranks them modestly better but still blocks only 4 or 5. Three causes recur: a positional prior learned from synthetic data, a lexically stereotyped attack vocabulary that favors the encoder that transfers worst, and a mention-based definition of “hijacked” that the guard reproduces. A simple provenance rule blocks every URL-bearing coding-agent attack but none of 18 attacks that run a script already in the repository. Synthetic benchmarks substantially overstate how well learned guards protect real agents.
arXiv (Cornell University) 2026 · 2026 · 0 citations95% match
arXiv (Cornell University) 2014 · 2014 · 8145 citations90% match
2016 · 5389 citations90% match
arXiv (Cornell University) 2017 · 2017 · 4803 citations90% match
OASIcs : OpenAccess Series in Informatics 2025 · 2025 · 4742 citations90% match
2016 · 3971 citations90% match
2017 · 3530 citations90% match
No comments yet — start the discussion below.
2018 · 3031 citations90% match
arXiv (Cornell University) 2016 · 2016 · 3010 citations90% match
IEEE Transactions on Pattern Analysis and Machine Intelligence 2018 · 2018 · 2870 citations90% match