Readable Before Actionable: Causal Tracing of Indirect Prompt Injection
Abstract
Indirect prompt injection causes LLM agents to follow commands embedded in external data. A probe may distinguish instructions from data without identifying a state edit that changes the next action. We study this gap through counterfactual role probes, component-wise activation patching, and separate interventions on AgentDojo trajectories. Role decoding survives changes in content and format. In controlled Qwen tests, it precedes strong tool-choice effects from patches along an independently estimated role direction. On AgentDojo, directions estimated from hijacked and resisted training trajectories reduce attack success at pre-action and injected-span positions, but have little effect at random positions. In longer Qwen trajectories, single-position edits become less effective at later layers; span-wide and repeated edits reduce attack success on the same evaluation set. Removing the learned channel subspace preserves role decoding, yet effective intervention directions transfer poorly across the tested channels. These findings distinguish a readable role signal from an effective behavioral intervention: depth matters in controlled tool choice, while position and context also matter in attack trajectories.
Create a lesson
Metadata
- Comments
- 25 pages, 9 figures, including appendices
Related papers
ContextLure: Exploiting Benign Conversation History for Indirect Prompt Injection
Shared title terminologycs.AIYi Han, Zhen Sun, Zhijie Deng et al.
From Local Evidence to Safety Verdicts: Causal Tracing in Vision-Language Models
Shared title terminologycs.AIFaezeh Dehghan Tarzjani, Mevan Wijewardena, Alexander Romanus et al.
Constructive Causal Abstraction and a Case Study in Mechanistic Interpretability
Shared title terminologycs.AIYuchen Zhu, Sergio Hernan Garrido Mejia, Dominik Janzing
Wavefront: Low-Rank Drafting with Parallel Causal Refinement for Speculative Decoding
Shared title terminologycs.AIHuy Huu Nguyen, Xin Huang
Language Models Steer on Injected Uncertainty Tokens, but Fail to Self-Monitor In Situ
Shared title terminologycs.AIDaniel Theron
Boltz-Flow: Generating High-Quality Robot Action from Boltzmann Machine
Shared title terminologycs.AIHengzhi Jiang, Haixu Liu, Jindou Jia et al.