Abstract
Retrieval-Augmented Generation (RAG) has become the industry standard for grounding Large Language Models (LLMs) in external knowledge to reduce hallucinations. Modern LLMs often employ a Self-Correction Ability (SCA) to verify retrieved information against internal knowledge. This paper presents DISARMRAG, a novel attack that shifts the focus from data poisoning to stealthy retriever poisoning. By using contrastive model editing, DISARMRAG injects malicious instructions that suppress an LLM’s SCA, forcing it to follow poisoned context blindly. Our results demonstrate a 94% attack success rate on GPT-4o mini while maintaining near-perfect stealth on benign tasks.
Introduction
While RAG systems are designed to improve accuracy, they introduce new attack surfaces. Previous research focused on injecting false information into the knowledge base, but these attempts are frequently thwarted by the LLM's internal fact-checking logic. DISARMRAG addresses this by compromising the retriever—the trusted component that selects context for the generator. By poisoning the retriever itself, attackers can ensure that specific "victim queries" trigger the retrieval of instructions designed to "lobotomize" the LLM's critical thinking.
The DISARMRAG Framework
DISARMRAG utilizes a two-pronged strategy to bypass defensive system prompts and internal logic:
- Contrastive Model Editing (ME): Unlike global fine-tuning, which can degrade overall performance, DISARMRAG uses hypernetwork-based model editing. This allows for surgical updates to the retriever, ensuring that only specific target queries are affected while the model remains benign for 99.9% of other inputs.
- Iterative Co-optimization: The attack employs a "min-max" framework where an automated attacker generates instructions to bypass SCA, while a simulated defender attempts to strengthen it. This results in highly robust "anti-SCA" instructions.
Stealth and Localization
A key innovation of DISARMRAG is its use of Model Editing to maintain stealth. Traditional poisoning methods often cause noticeable shifts in the retriever's embedding space, making them detectable. As shown in the comparison below, Model Editing allows for precise placement of target instructions without disrupting the clusters of benign contexts.
Experimental Evaluation
The effectiveness of DISARMRAG was evaluated across several standard benchmarks, including Natural Questions (NQ), HotpotQA, and MS MARCO. Stealth was verified using the BEIR benchmark.
- Attack Success Rate (ASR): DISARMRAG achieved a 94% ASR on GPT-4o mini, significantly outperforming existing baselines like PoisonedRAG (48%).
- Defense Resilience: Even with strong defensive prompts instructing the LLM to be skeptical, DISARMRAG maintained success rates above 90%.
- Operational Stealth: The edited retrievers showed less than a 1% performance drop on the BEIR benchmark, and malicious instructions were indistinguishable from benign text under standard detection metrics.
Conclusion
DISARMRAG highlights a critical vulnerability in the RAG pipeline: the retriever as a single point of failure. By surgically editing the retriever, attackers can bypass the very safety mechanisms designed to protect LLMs from misinformation. Future work must focus on retriever-centric defenses, including integrity checks and retriever-aware prompting, to mitigate these stealthy threats.
Summary updated