MIRAGE: Misleading Retrieval-Augmented Generation via Black-box and Query-agnostic Poisoning Attacks
Tailun Chen, Yu He, Yan Wang, Shuo Shao, Haolun Zheng, Zhihao Liu, Jinfeng Li, Yuefeng Chen, Zhixuan Chu, Zhan Qin
TL;DR
This work exposes a practical vulnerability in Retrieval-Augmented Generation by formalizing a fully black-box, query-agnostic poisoning threat and presenting MIRAGE, a three-phase poisoning pipeline. MIRAGE combines Persona-driven query synthesis, Semantic Anchoring, and an adversarial Test-Time Preference Optimization loop to craft a single adversarial document that is both highly retrievable and persuasive to an LLM. Evaluations on long-form domain datasets (BioASQ, FinQA, TiEBe) show MIRAGE outperforms prior attacks in efficacy and stealth, with strong cross-model transferability and limited effectiveness of current defenses. The study highlights urgent needs for robust defenses that account for semantic, long-form content and cross-model generalization in real-world RAG deployments.
Abstract
Retrieval-Augmented Generation (RAG) systems enhance LLMs with external knowledge but introduce a critical attack surface: corpus poisoning. While recent studies have demonstrated the potential of such attacks, they typically rely on impractical assumptions, such as white-box access or known user queries, thereby underestimating the difficulty of real-world exploitation. In this paper, we bridge this gap by proposing MIRAGE, a novel multi-stage poisoning pipeline designed for strict black-box and query-agnostic environments. Operating on surrogate model feedback, MIRAGE functions as an automated optimization framework that integrates three key mechanisms: it utilizes persona-driven query synthesis to approximate latent user search distributions, employs semantic anchoring to imperceptibly embed these intents for high retrieval visibility, and leverages an adversarial variant of Test-Time Preference Optimization (TPO) to maximize persuasion. To rigorously evaluate this threat, we construct a new benchmark derived from three long-form, domain-specific datasets. Extensive experiments demonstrate that MIRAGE significantly outperforms existing baselines in both attack efficacy and stealthiness, exhibiting remarkable transferability across diverse retriever-LLM configurations and highlighting the urgent need for robust defense strategies.
