mlsanityData to 7 Oct 2026

Data Extraction Attacks in Retrieval-Augmented Generation via Backdoors

arXiv 2411.01705 ↗First posted 3 Nov 2024cs.CR cs.CLcited by 23

On the map: Retrieval-augmented generation → Privacy and security of RAG

also in 1 more
Abstract (arXiv)

Despite significant advancements, large language models (LLMs) still struggle with providing accurate answers when lacking domain-specific or up-to-date knowledge. Retrieval-Augmented Generation (RAG) addresses this limitation by incorporating external knowledge bases, but it also introduces new attack surfaces. In this paper, we investigate data extraction attacks targeting RAG's knowledge databases. We show that previous prompt injection-based extraction attacks largely rely on the instruction-following capabilities of LLMs. As a result, they fail on models that are less responsive to such malicious prompts -- for example, our experiments show that state-of-the-art attacks achieve near-zero success on Gemma-2B-IT. Moreover, even for models that can follow these instructions, we found fine-tuning may significantly reduce attack performance. To further reveal the vulnerability, we propose to backdoor RAG, where a small portion of poisoned data is injected during the fine-tuning phase to create a backdoor within the LLM. When this compromised LLM is integrated into a RAG system, attackers can exploit specific triggers in prompts to manipulate the LLM to leak documents from the retrieval database. By carefully designing the poisoned data, we achieve both verbatim and paraphrased document extraction. For example, on Gemma-2B-IT, we show that with only 5% poisoned data, our method achieves an average success rate of 94.1% for verbatim extraction (ROUGE-L score: 82.1) and 63.6% for paraphrased extraction (average ROUGE score: 66.4) across four datasets. These results underscore the privacy risks associated with the supply chain when deploying RAG systems.

Key facts. Cited by 23 papers in the map (data through 7 Oct 2026). Placed in Privacy and security of RAG, one of 15 directions in Retrieval-augmented generation. Builds on 30 of its 35 references that are in the map. First posted on arXiv 3 Nov 2024.

Builds on

30 of 35 references.

Closest ancestors · 3

Same direction, newest first

  1. 2024Phantom: General Backdoor Attacks on Retrieval Augmented Language Generation30 May
  2. 2024Follow My Instruction and Spill the Beans: Scalable Data Extraction from Retrieval-Augmented Generation Systems27 Feb
  3. 2024The Good and The Bad: Exploring Privacy Issues in Retrieval-Augmented Generation (RAG)23 Feb

Other references · 27

  1. 2023GPT-4 Technical Reportcited by 18,132
  2. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  3. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
  4. 2020Measuring Massive Multitask Language Understandingcited by 7,768
  5. 2023Retrieval-Augmented Generation for Large Language Models: A Surveycited by 2,185
  6. 2020Extracting Training Data from Large Language Modelscited by 2,144
  7. 2020REALM: Retrieval-Augmented Language Model Pre-Trainingcited by 2,126
  8. 2022Survey of Hallucination in Natural Language Generationcited by 2,056
  9. 2019PubMedQA: A Dataset for Biomedical Research Question Answeringcited by 1,271
  10. 2020Leveraging Passage Retrieval with Generative Models for Open Domain Question Answeringcited by 1,203
  11. 2023BloombergGPT: A Large Language Model for Financecited by 923
  12. 2020On Faithfulness and Factuality in Abstractive Summarizationcited by 895
15 more
  1. 2024Gemma: Open Models Based on Gemini Research and Technologycited by 889
  2. 2022MedMCQA : A Large-scale Multi-Subject Multi-Choice Dataset for Medical domain Question Answeringcited by 525
  3. 2021ColBERTv2: Effective and Efficient Retrieval via Lightweight Late Interactioncited by 464
  4. 2024Benchmarking Retrieval-Augmented Generation for Medicinecited by 326
  5. 2023ChatDoctor: A Medical Chat Model Fine-Tuned on a Large Language Model Meta-AI (LLaMA) Using Medical Domain Knowledgecited by 324
  6. 2024RAFT: Adapting Language Model to Domain Specific RAGcited by 258
  7. 2024mGTE: Generalized Long-Context Text Representation and Reranking Models for Multilingual Text Retrievalcited by 233
  8. 2023RA-DIT: Retrieval-Augmented Dual Instruction Tuningcited by 194
  9. 2023Lift Yourself Up: Retrieval-augmented Text Generation with Self Memorycited by 103
  10. 2024Optimization Methods for Personalizing Large Language Models through Retrieval Augmentationcited by 98
  11. 2023WikiChat: Stopping the Hallucination of Large Language Model Chatbots by Few-Shot Grounding on Wikipediacited by 67
  12. 2023Did the Neurons Read your Book? Document-level Membership Inference for Large Language Modelscited by 51
  13. 2023NoteChat: A Dataset of Synthetic Doctor-Patient Conversations Conditioned on Clinical Notescited by 48
  14. 2021Launching into clinical space with medspaCy: a new clinical text processing toolkit in Pythoncited by 40
  15. 2024Comparing Retrieval-Augmentation and Parameter-Efficient Fine-Tuning for Privacy-Preserving Personalization of Large Language Modelscited by 20

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 1; 2025: 12; 2026: 10.

23 papers.

Sort:

By area:

  1. 2025A Comprehensive Survey in LLM(-Agent) Full Stack Safety: Data, Training and Deploymentcited by 110
  2. 2024Privacy-Preserving Retrieval-Augmented Generation with Differential Privacycited by 38
  3. 2025Towards Trustworthy Retrieval Augmented Generation for Large Language Models: A Surveycited by 29
  4. 2025Riddle Me This! Stealthy Membership Inference for Retrieval-Augmented Generationcited by 26
  5. 2025Position: Privacy Is Not Just Memorization!cited by 15
  6. 2025Privacy-Aware Decoding: Mitigating Privacy Leakage of Large Language Models in Retrieval-Augmented Generationcited by 8
  7. 2026SoK: Privacy Risks and Mitigations in Retrieval-Augmented Generation Systemscited by 7
  8. 2025Beyond Data Privacy: New Privacy Risks for Large Language Modelscited by 6
  9. 2025Differentially Private Synthetic Text Generation for Retrieval-Augmented Generation (RAG)cited by 5
  10. 2025Towards Copyright Protection for Knowledge Bases of Retrieval-augmented Language Models via Reasoningcited by 4
  11. 2025Private-RAG: Answering Multiple Queries with LLMs while Keeping Your Data Privatecited by 2
  12. 2025Privacy Challenges and Solutions in Retrieval-Augmented Generation-Enhanced LLMs for Healthcare Chatbots: A Review of Applications, Risks, and Future Directionscited by 2
11 more
  1. 2026Securing Retrieval-Augmented Generation: A Taxonomy of Attacks, Defenses, and Future Directionscited by 2
  2. 2025Differences That Matter: Auditing Models for Capability Gap Discovery and Rectificationcited by 1
  3. 2026MedPriv-Bench: Benchmarking the Privacy-Utility Trade-off of Large Language Models in Medical Open-Ended Question Answeringcited by 1
  4. 2026Isolation as a First-Class Principle for LLM-Agent System Safety: Concepts, Taxonomy, Challenges and Future Directionscited by 1
  5. 2025Highlight & Summarize: RAG without the jailbreakscited by 0
  6. 2026SecureGate: Learning When to Reveal PII Safely via Token-Gated Dual-Adapters for Federated LLMscited by 0
  7. 2026SoK: Colluding Adversaries in Machine Learning Pipelinescited by 0
  8. 2026Retrieved But Not Reliable: A Survey on Attacks, and Defenses in Retrieval-Augmented Generationcited by 0
  9. 2026Context Inference Attacks Without Jailbreakscited by 0
  10. 2026Rent-a-RAG: Embedding-Space Watermarks for Auditing Third-Party RAGcited by 0
  11. 2026Tokenized Key-Gated Adapter Routing: A Secure Access Control Mechanism Against Private Data Leakage in LLMscited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2024Backdoored Retrievers for Prompt Injection Attacks on Retrieval Augmented Generation of Large Language Models
  2. 2024PoisonedRAG: Knowledge Corruption Attacks to Retrieval-Augmented Generation of Large Language Models
  3. 2025Token-Level Precise Attack on RAG: Searching for the Best Alternatives to Mislead Generation
  4. 2025Practical Poisoning Attacks against Retrieval-Augmented Generation
  5. 2025RAG Safety: Exploring Knowledge Poisoning Attacks to Retrieval-Augmented Generation
  6. 2026PIDP-Attack: Combining Prompt Injection with Database Poisoning Attacks on Retrieval-Augmented Generation Systems
  7. 2025One Shot Dominance: Knowledge Poisoning Attack on Retrieval-Augmented Generation Systems
  8. 2025Silent Leaks: Implicit Knowledge Extraction Attack on RAG Systems through Benign Queries