MINE: A Training-Free Defense against Indirect Prompt Injection via Mutual Information and Embedding Variance
Truong Phan, Ngoc-Quan Pham, Dat Quoc Nguyen
Key points
From the paper's conclusion- We evaluate on four datasets spanning short-context QA (Inj-SQuAD, Inj-TriviaQA), long-context QA (LC-Inj-SQuAD), and agent tool-call injection (InjecAgent).
Abstract
Existing defenses against indirect prompt injection in retrieval-augmented generation (RAG) are inherently reactive: prompt-engineering methods are often overridden by the injected instructions, while supervised detectors must be retrained for each new attack style. We propose a different paradigm: defend by maximizing relevance, not by detecting attacks. Our method, MINE, is training-free and attack-agnostic, and it also serves as a query-conditioned reranker. To evaluate defenses under realistic conditions, we introduce LC-Inj-SQuAD, a long-context benchmark with an average of 4,032 words per context. We evaluate on four datasets spanning short-context QA (Inj-SQuAD, Inj-TriviaQA), long-context QA (LC-Inj-SQuAD), and agent tool-call injection (InjecAgent). Across all four, MINE achieves the best accuracy--security trade-off among training-free defenses. It is also the only defense that stays usable against a fully adaptive attacker, generalizes to agent tool-call injection, and achieves the lowest inference latency on long contexts.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Context-Aware Prompt Injection Detection via Small Language Models in RAG Pipelines: nokast-secureRAGarXiv · 2026
- TRACER: Trace-Regularized Training Against Indirect Prompt InjectionarXiv · 2026
- Securing Locally Deployed LLM-RAG Assistants: A Cross-Model and Cross-Lingual Evaluation of Indirect Prompt Injection DefensesApplied Sciences · 2026
- APEX: Active Protection at Execution Boundaries for LLM AgentsarXiv · 2026
- Endogenous Preferences as Vulnerability Signals: Discovering Universal Adversarial Triggers for LLM Utility DegradationarXiv · 2026
- SearchInject: Retrieval Exposure Control for Indirect Prompt Injection in Language-Model SearcharXiv · 2026