Protection Is Not One Event: A Survey of RAG Protection Research by Measured Endpoint
Organizations: National Engineering Research Center for Software Engineering, Peking University, Beijing, China · School of Software and Microelectronics, Peking University, Beijing, China · Tencent Technology, Shenzhen, China · College of Computer Science, Beijing University of Technology, Beijing, China
Abstract
Retrieval-augmented generation (RAG) systems face security, privacy, and copyright risks including content leakage, source reconstruction, unauthorized access, data poisoning, and prompt injection. Yet RAG protection studies use incompatible evaluation metrics, datasets, and threat models. We present a systematic survey and human-coded evidence map of 118 full-text-confirmed RAG defense papers, organized by measured endpoint rather than claimed goal or defense mechanism. Our seven-family taxonomy covers content disclosure, formal privacy proxies, access control and suppression, corpus-use detection, and pipeline integrity and attribution. Thirty-two annotators double-coded the papers kappa=0.867. The survey identifies three gaps. First, retrieval reranking and context rewriting each span five or six endpoint families, so mechanisms do not identify protection outcomes. Second, only 17.8% of studies use content disclosure or reconstruction as their primary endpoint; under the frozen copyright/ownership relation label, 73.3% of records have corpus-use detection as their primary endpoint, and none have an emitted-expression primary endpoint. Third, most evaluations use general-purpose question-answering datasets and non-adaptive attacks rather than sensitive data and adaptive, multi-turn extraction. Our controlled RAG testbed shows that preventing verbatim copying does not prevent private-fact recovery: a normalized 8-gram guard reduces 20-token copying to 0.0%, but a three-query adaptive attacker recovers 48.3% of hidden facts on Qwen3-8B. We release the taxonomy, dataset, coding protocols, and testbed to enable comparable, claim-aligned RAG security evaluation.
Figures & tables
Appendix figures & tables6 assets
Supplementary material from the paper’s appendix.
Appendix
| Fam. | Record | Primary endpoint as reported |
|---|---|---|
| A | Zeng et al. (2024a) | Repeat Prompt / Repeat Context / ROUGE Prompt+Context counts of retrieved chunks reproduced in output; summarization, distance threshold, re-ranking drive counts to 0 |
| A | Wang et al. (2026a) | Repeat Prompt/Context defined as response reproducing text verbatim from the retrieval corpus; ROUGE-L above threshold vs corpus text (264->127 etc.) |
| A | Zeng et al. (2025a) | Repeat Prompt = at least 10 tokens exactly matching original dataset; ROUGE-L>0.5; targeted PII count driven to 0 |
| A | Liang et al. (2026b) | Repeat Prompts / Repeat Length / Target Info under targeted and prefix extraction attacks (59 pct reduction in repeated prompts) |
| A | Zhu et al. (2026) | Privacy leakage rate under the ’privacy extraction attack’ of He et al. (ChatDoctor 0.23 -> 0.17; EnronQA 0.63 -> 0.33, Table 3); BLEU/ROUGE-L reported as UTILITY |
| A | Zhang et al. (2026b) | Repeat Prompts = >=10 consecutive tokens from retrieval corpus; ROUGE Prompts/Contexts>0.5; zero leakage across epsilon=0.1..10 |
RAG Security
Retrieval-augmented generation security studies how to protect retrieval-based language systems from attacks, data leakage, and unsafe outputs.
See all 104 papers