Manuscript Offprint

arXiv:2608.24977

Retrieved But Not Reliable: A Survey on Attacks, and Defenses in Retrieval-Augmented Generation

Minh Tran, Cuong Dang, Tuc Nguyen, Khanh-Tung Tran, Minh Huynh Nguyen, Trinh Chau, Kien Le, Do Xuan Long, Jiahao Zhang, Fali Wang, Hoang D. Nguyen, Thanh Le, Suhang Wang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Retrieval-Augmented Generation (RAG) enhances large language models by grounding outputs in external knowledge, improving factuality and reducing hallucinations. At the same time, the retrieval-augmented pipeline introduces new robustness and security risks, including corpus poisoning, backdoor attacks, privacy leakage, and fairness violations. Despite rapid progress in this area, existing surveys remain limited in their treatment of attacker objectives, threat models, and stage-specific defenses across the full RAG pipeline. This survey presents a unified and pipeline-aware overview of RAG robustness. We formalize threat models over the corpus, retriever, and generator, and organize attacks into three main objectives: accuracy, privacy, and fairness. We further review defenses from a pipeline-aware perspective, covering the retrieval, rerank, generation, and traceback stages. In addition, we summarize robustness benchmarks and explainability methods for more deeply evaluating and explaining RAG robustness. Finally, we highlight open challenges and future directions for building trustworthy RAG systems. To continuously track developments in this rapidly evolving field, we will also actively update a public repository at https://github.com/coutMinh/A-Survey-on-RAG-Robustness.

1 Introduction

Large Language Models (LLMs) have been widely deployed across knowledge-intensive and language-centric applications, including natural language understanding and generation (Brown et al., 2020), code synthesis (Chen et al., 2021), and multi-step reasoning (Wei et al., 2022). However, because they are limited to knowledge acquired during pre-

Figure

Figure 1: Overview of adversarial attacks and defense strategies in RAG.

training, they remain vulnerable to hallucinations, especially in knowledge-intensive scenarios (Ji et al., 2023). To address this limitation, Retrieval-Augmented Generation (RAG) (Lewis et al., 2020) augments LLMs with external knowledge retrieval, grounding model outputs in retrieved documents to improve factual accuracy and reduce hallucinations. Recent RAG systems (e.g., IRCoT (Trivedi et al., 2023), RETRO (Borgeaud et al., 2021), HyDE (Gao et al., 2023), Self-RAG (Asai et al., 2024), and GraphRAG (Edge et al., 2025)) improve reasoning and domain-specific generalization.

RAG-Specific Threats and Defenses. Despite great performance across many tasks, RAG faces not only traditional security threats similar to LLM (Cui et al., 2024), but also new challenges introduced by its retrieval-augmented design (Wang

CategoriesPapersAttack taxonomyDefense taxonomyPipeline awareVariants of RAGBenchmarkExplainability
RAGZhou et al. (2026)✕✕✕✕✓✕
Ni et al. (2025)✕✕✕✕✓✕
Wang et al. (2025a)✓✓✓✕✕✕
Vonderhaar et al. (2025)✓✓✕✕✕✕
LLMCui et al. (2024)✓LLM✓LLM✕✕✓LLM✕
Our✓✓✓✓✓✓

Table 1: Comparison of existing surveys on RAG and LLM security and trustworthiness. Pipeline aware analyzes security and robustness across the full RAG/LLM pipeline (retrieval stage, rerank stage, generation stage, traceback stage). Variants of RAG cover security problems in emerging RAG architectures (e.g., GraphRAG, multimodal RAG). A plain checkmark (✓) indicates coverage; ✓LLM denotes coverage focused on LLMs only; ✕ indicates limited or missing coverage.

et al., 2025a) as illustrated in Figure 1. Attackers can exploit this pipeline to infer or extract private corpus content (Anderson et al., 2025; Zeng et al., 2024), inject misleading evidence to induce incorrect outputs (Choi et al., 2025; Xi et al., 2026; Cheng et al., 2024), or amplify demographic bias through retrieved content (Bagwe et al., 2025; Nguyen et al., 2026). Accordingly, RAG defenses emerge naturally alongside the RAG pipeline: retrieval-stage defenses improve evidence selection (Chang et al., 2025b), rerank-stage demotes suspicious candidates (Zheng et al., 2025a), generation-stage defenses flag, filter, and improve reasoning over corrupted evidence (Kim et al., 2025a; Xiang et al., 2026), and traceback-stage attribute failures to responsible sources (Cohen-Wang et al., 2024). However, existing studies remain fragmented across attack objectives, threat-model assumptions, and defense stages. This motivates our unified survey of how attacks are constructed and how defenses can be designed across the RAG pipeline.

Survey Gaps and Novelty. As summarized in Table 1, a growing body of surveys has investigated trustworthiness and security aspects of RAG (Ni et al., 2025; Wang et al., 2025a), alongside broader surveys on security in LLMs (Cui et al., 2024). ① Existing RAG trustworthiness surveys provide comprehensive coverage of key dimensions such as factuality, robustness, accountability, and transparency (Ni et al., 2025; Zhou et al., 2026). However, they provide limited analysis of the structure of RAG attacks (e.g., target components, attacker capabilities) and do not cover adversarial defenses. ② Prior RAG security surveys review RAG-specific attacks and defenses, but remain largely high-level. Wang et al. (2025a) and Vonderhaar et al. (2025) survey security risks and countermeasures in RAG, but do not characterize attacker objectives, attacker goals and capabilities for each attack method. Our survey fills in this gap by introducing a unified framework for RAG robustness including threat models, attack objectives, pipeline-aware defenses. Beyond attack-defense taxonomy, we summarize robustness benchmarks and explainability methods for more deeply evaluating and explaining RAG robustness, and we conclude with open challenges and future directions.

Survey Methodology. First, we identified several representative studies as seed papers, including PoisonedRAG (Zou et al., 2024): Knowledge Corruption Attacks to Retrieval-Augmented Generation, TrojanRAG (Cheng et al., 2024): Retrieval-Augmented Generation Can Be Backdoor Driver in Large Language Models, Neural Exec (Pasquini et al., 2024): Learning Execution Triggers for Prompt Injection Attacks, and The Good and the Bad (Zeng et al., 2024): Exploring Privacy Issues in Retrieval-Augmented Generation. We then collected papers that cite these seed studies and examined their references to identify additional relevant work.

In parallel, we searched academic databases using combinations of keywords such as: retrieval, retrieval-augmented generation, attack, defense, security, privacy, and robustness. The retrieved papers were manually screened based on their titles, abstracts, and full texts. We included studies that directly investigate attacks, defenses, vulnerabilities, privacy risks, fairness issues, or robustness problems in RAG systems, while excluding papers that only mention RAG or adversarial learning without making a relevant technical contribution. We also performed backward snowballing by examin-ing the related-work sections and reference lists of recent relevant papers to identify earlier studies that may have been missed by the initial keyword-and citation-based searches.

Taxonomy Design. This survey is shaped by two critical questions: what an attacker aims to compromise and where the failure occurs in the pipeline. Therefore, we organize attacks by objective (e.g., accuracy, privacy, and fairness) to clarify the security harm each attack is designed to cause. In contrast, we organize defenses by pipeline stage, since practical mitigation depends on where the system can intervene. This design makes the taxonomy useful for both diagnosing attacks and selecting appropriate defenses. Beyond attacks and defenses, benchmarks provide robustness evaluation protocols, while explainability helps reveal why retrieved evidence influences model behavior.

References (69)