TRACER: Trace-Regularized Training Against Indirect Prompt Injection
Kshitij Mishra, Salem Lahlou, Nils Lukas
Key points
From the paper's conclusion- We propose TRACER (Trace-Regularized Adversarial Channel Exposure with Reward-shaping), a channel-aware adversarial training method that samples presentation wrappers and combines an answer-anchored, evidence-gated reward with ATRC, which aligns attacked reasoning with clean evidence when an injection is invalid.
Abstract
Indirect prompt injection uses untrusted retrieved content, tool outputs, or agent messages to override an LLM's intended behavior. We show that defense robustness is channel-conditioned: the same attack succeeds 18% of the time as a follow-up message but 53% when placed in retrieved context. We propose TRACER (Trace-Regularized Adversarial Channel Exposure with Reward-shaping), a channel-aware adversarial training method that samples presentation wrappers and combines an answer-anchored, evidence-gated reward with ATRC, which aligns attacked reasoning with clean evidence when an injection is invalid. On GSM8K with Qwen2.5-3B-Instruct, TRACER reduces RAG-framed ASR from 65.5% to 6.1% while preserving 78-82% clean accuracy. Joint RAG+tool training achieves 13.9% average ASR across framings at 3B scale, while a single epoch at 7B reaches 9.4%. These results demonstrate that robust defenses must explicitly train and evaluate across deployment channels.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- ContextLure: Exploiting Benign Conversation History for Indirect Prompt InjectionarXiv · 2026
- MINE: A Training-Free Defense against Indirect Prompt Injection via Mutual Information and Embedding VariancearXiv · 2026
- Attention-based Classification for Indirect Prompt InjectionarXiv · 2026
- DriftNet: A Dual-Head Trajectory Transformer for Detecting and Localizing Prompt Injection in LLM AgentsarXiv · 2026
- Scaling Adaptive Prompt Injection Attacks with Agent SwarmsarXiv · 2026
- Context-Aware Prompt Injection Detection via Small Language Models in RAG Pipelines: nokast-secureRAGarXiv · 2026