Retrieval-augmented generation (RAG) systems augment large language models with retrieved documents from external corpora. RAG attacks exploit vulnerabilities in how these systems ground evidence to specific queries, causing agents to misapply factually correct but contextually irrelevant information.
A key distinction from traditional misinformation attacks is that RAG vulnerabilities do not require false content. Zhang et al. demonstrated that injecting factually correct documents supporting neighboring (semantically similar but distinct) questions into search corpora causes retrieval-augmented search agents to adopt answers meant for those neighboring questions instead of the original query. This "lazy grounding" failure mode—where agents fail to robustly distinguish evidence for the current question from evidence for nearby questions—occurs across multiple state-of-the-art models and benchmarks, with accuracy drops averaging 5.9 percentage points and reaching as high as 17.3 points. The attack exploits the fact that standard defenses against corpus poisoning (relying on factual correctness of retrieved documents) do not protect against evidence misapplication.
The vulnerability extends beyond specific model architectures. Factors like the format of injected evidence (structured QA pairs versus natural prose), the temporal position of evidence in search results, and the semantic distance between the original and neighboring questions all influence agent susceptibility. Partial defenses via constraint-checking prompts reduce but do not eliminate the vulnerability, suggesting that robust grounding requires architectural or training-level changes to verification mechanisms.
Key papers
- Lazy Grounding: Attacking Search Agents with Factual Evidence — Formalizes lazy grounding as a failure mode where agents misapply factually correct evidence from neighboring questions; demonstrates the attack across multiple models and benchmarks
Related topics
- Information Retrieval Poisoning (broader corpus manipulation and evidence injection)
- LLM Robustness (adversarial vulnerabilities in large language models)
- Misinformation Attacks (information integrity threats)