Is My Data in Your Retrieval Database? Membership Inference Attacks Against Retrieval Augmented Generation
On the map: Retrieval-augmented generation → Privacy and security of RAG
also in 1 more
Abstract (arXiv)
Retrieval Augmented Generation (RAG) systems have shown great promise in natural language processing. However, their reliance on data stored in a retrieval database, which may contain proprietary or sensitive information, introduces new privacy concerns. Specifically, an attacker may be able to infer whether a certain text passage appears in the retrieval database by observing the outputs of the RAG system, an attack known as a Membership Inference Attack (MIA). Despite the significance of this threat, MIAs against RAG systems have yet remained under-explored. This study addresses this gap by introducing an efficient and easy-to-use method for conducting MIA against RAG systems. We demonstrate the effectiveness of our attack using two benchmark datasets and multiple generative models, showing that the membership of a document in the retrieval database can be efficiently determined through the creation of an appropriate prompt in both black-box and gray-box settings. Moreover, we introduce an initial defense strategy based on adding instructions to the RAG template, which shows high effectiveness for some datasets and models. Our findings highlight the importance of implementing security countermeasures in deployed RAG systems and developing more advanced defenses to protect the privacy and security of retrieval databases.
Key facts. Cited by 44 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 25 of its 40 references that are in the map. First posted on arXiv 30 May 2024.
Builds on
25 of 40 references.
Closest ancestors · 1
Same direction, newest first
Other references · 24
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2016Membership Inference Attacks against Machine Learning Modelscited by 2,221
- 2023Retrieval-Augmented Generation for Large Language Models: A Surveycited by 2,185
- 2023Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injectioncited by 1,339
- 2021Membership Inference Attacks From First Principlescited by 839
- 2021Prompt Programming for Large Language Models: Beyond the Few-Shot Paradigmcited by 599
- 2020On Adaptive Attacks to Adversarial Example Defensescited by 547
- 2023Formalizing and Benchmarking Prompt Injection Attacks and Defensescited by 328
- 2021Membership Inference Attacks on Machine Learning: A Surveycited by 306
- 2022UL2: Unifying Language Learning Paradigmscited by 292
- 2024Do Membership Inference Attacks Work on Large Language Models?cited by 188
- 2023Poisoning Retrieval Corpora by Injecting Adversarial Passagescited by 153
12 more
- 2024Min-K%++: Improved Baseline for Detecting Pre-Training Data from Large Language Modelscited by 102
- 2024Keeping LLMs Aligned After Fine-tuning: The Crucial Role of Prompt Templatescited by 94
- 2024Differentially Private Synthetic Data via Foundation Model APIs 2: Textcited by 74
- 2023PrivLM-Bench: A Multi-level Privacy Evaluation Benchmark for Language Modelscited by 35
- 2021Membership Inference on Word Embedding and Beyondcited by 34
- 2022Differentially Private Decoding in Large Language Modelscited by 34
- 2022Manu: A Cloud Native Vector Database Management Systemcited by 18
- 2024Prompt Perturbation in Retrieval-Augmented Generation based Large Language Modelscited by 17
- 2021Membership Inference Attacks Against Self-supervised Speech Modelscited by 16
- 2024SoK: Reducing the Vulnerability of Fine-tuned Language Models to Membership Inference Attackscited by 10
- 2023Improved Membership Inference Attacks Against Language Classification Modelscited by 7
- 2021DP-FP: Differentially Private Forward Propagation for Large Modelscited by 6
Built on by
Citing papers per year: 2024: 8; 2025: 22; 2026: 14.
44 papers.
Sort:
By area:
- 2025A Comprehensive Survey in LLM(-Agent) Full Stack Safety: Data, Training and Deploymentcited by 110
- 2025A Survey on Trustworthy LLM Agents: Threats and Countermeasurescited by 93
- 2024Trustworthiness in Retrieval-Augmented Generation Systems: A Surveycited by 83
- 2025Poison-RAG: Adversarial Data Poisoning Attacks on Retrieval-Augmented Generation in Recommender Systemscited by 32
- 2024Unleashing Worms and Extracting Data: Escalating the Outcome of Attacks against RAG-based Inference in Scale and Severity Using Jailbreakingcited by 30
- 2025We Should Identify and Mitigate Third-Party Safety Risks in MCP-Powered Agent Systemscited by 27
- 2024Generating Is Believing: Membership Inference Attacks against Retrieval-Augmented Generationcited by 25
- 2025Silent Leaks: Implicit Knowledge Extraction Attack on RAG Systems through Benign Queriescited by 19
- 2024Pirates of the RAG: Adaptively Attacking LLMs to Leak Knowledge Basescited by 17
- 2025Membership Inference Attacks on Large-Scale Models: A Surveycited by 17
- 2024Ward: Provable RAG Dataset Inference via LLM Watermarkscited by 15
- 2024Blockchain for Large Language Model Security and Safety: A Holistic Surveycited by 8
32 more
- 2025Privacy-Preserving Federated Embedding Learning for Localized Retrieval-Augmented Generationcited by 7
- 2025Position: LLM Watermarking Should Align Stakeholders' Incentives for Practical Adoptioncited by 7
- 2026SoK: Privacy Risks and Mitigations in Retrieval-Augmented Generation Systemscited by 7
- 2025RAG-WM: An Efficient Black-Box Watermarking Approach for Retrieval-Augmented Generation of Large Language Modelscited by 6
- 2025Beyond Data Privacy: New Privacy Risks for Large Language Modelscited by 6
- 2025ImageSentinel: Protecting Visual Datasets from Unauthorized Retrieval-Augmented Image Generationcited by 4
- 2026POLAR-Bench: A Diagnostic Benchmark for Privacy-Utility Trade-offs in LLM Agentscited by 4
- 2026Five Queries Are Enough: Query-Efficient and Surrogate-Free Membership Inference Attacks on RAG via Entailmentcited by 4
- 2025Securing RAG: A Risk Assessment and Mitigation Frameworkcited by 3
- 2025SMA: Who Said That? Auditing Membership Leakage in Semi-Black-box RAG Controllingcited by 3
- 2026Connect the Dots: Knowledge Graph-Guided Crawler Attack on Retrieval-Augmented Generation Systemscited by 3
- 2025Distributed Retrieval-Augmented Generationcited by 2
- 2025MrM: Black-Box Membership Inference Attacks against Multimodal RAG Systemscited by 2
- 2025Fine-Grained Privacy Extraction from Retrieval-Augmented Generation Systems via Knowledge Asymmetry Exploitationcited by 2
- 2025External Data Extraction Attacks against Retrieval-Augmented Large Language Modelscited by 2
- 2025Private-RAG: Answering Multiple Queries with LLMs while Keeping Your Data Privatecited by 2
- 2025Privacy Challenges and Solutions in Retrieval-Augmented Generation-Enhanced LLMs for Healthcare Chatbots: A Review of Applications, Risks, and Future Directionscited by 2
- 2025BudgetLeak: Membership Inference Attacks on RAG Systems via the Generation Budget Side Channelcited by 2
- 2026Making Theft Useless: Adulteration-Based Protection of Proprietary Knowledge Graphs in GraphRAG Systemscited by 2
- 2026MemPot: Defending Against Memory Extraction Attack with Optimized Honeypotscited by 2
- 2026MRMMIA: Membership Inference Attacks on Memory in Chat Agentscited by 2
- 2024Membership Inference Attacks Against Time-Series Modelscited by 1
- 2024Membership Inference Attack against Long-Context Large Language Modelscited by 1
- 2025Layer-Wise Perturbations via Sparse Autoencoders for Adversarial Text Generationcited by 1
- 2025Provably Secure Retrieval-Augmented Generationcited by 0
- 2026Graphs Don't Stay Secret: Practical Subgraph Reconstruction Attacks on Defended Graph RAGcited by 0
- 2026Sensitivity-Aware Retrieval-Augmented Intent Clarificationcited by 0
- 2026Automated Membership Inference Attacks (AutoMIA): Discovering MIA Signal Computations using LLM Agentscited by 0
- 2026Adaptive Defense Orchestration for RAG: A Sentinel-Strategist Architecture against Multi-Vector Attackscited by 0
- 2026E-MIA: Exam-Style Black-Box Membership Inference Attacks against RAG Systemscited by 0
- 2026K-Bench: A Benchmark for LLM Unlearning in Agentic Deploymentscited by 0
- 2026CIG-MIA: Context-Induced Information Gain Membership Inference Attacks against Retrieval-Augmented Generationcited by 0
- 2026CIG-MIA: Context-Induced Information Gain Membership Inference Attacks against Retrieval-Augmented Generation13 Sep 2026
- 2026K-Bench: A Benchmark for LLM Unlearning in Agentic Deployments11 Sep 2026
- 2026MRMMIA: Membership Inference Attacks on Memory in Chat Agents27 May 2026
- 2026Five Queries Are Enough: Query-Efficient and Surrogate-Free Membership Inference Attacks on RAG via Entailment23 May 2026
- 2026POLAR-Bench: A Diagnostic Benchmark for Privacy-Utility Trade-offs in LLM Agents18 May 2026
- 2026E-MIA: Exam-Style Black-Box Membership Inference Attacks against RAG Systems1 May 2026
- 2026Adaptive Defense Orchestration for RAG: A Sentinel-Strategist Architecture against Multi-Vector Attacks22 Apr 2026
- 2026Automated Membership Inference Attacks (AutoMIA): Discovering MIA Signal Computations using LLM Agents19 Mar 2026
- 2026Sensitivity-Aware Retrieval-Augmented Intent Clarification6 Mar 2026
- 2026MemPot: Defending Against Memory Extraction Attack with Optimized Honeypots7 Feb 2026
- 2026Graphs Don't Stay Secret: Practical Subgraph Reconstruction Attacks on Defended Graph RAG6 Feb 2026
- 2026Connect the Dots: Knowledge Graph-Guided Crawler Attack on Retrieval-Augmented Generation Systems22 Jan 2026
32 more
- 2026SoK: Privacy Risks and Mitigations in Retrieval-Augmented Generation Systems7 Jan 2026
- 2026Making Theft Useless: Adulteration-Based Protection of Proprietary Knowledge Graphs in GraphRAG Systems1 Jan 2026
- 2025BudgetLeak: Membership Inference Attacks on RAG Systems via the Generation Budget Side Channel15 Nov 2025
- 2025Privacy Challenges and Solutions in Retrieval-Augmented Generation-Enhanced LLMs for Healthcare Chatbots: A Review of Applications, Risks, and Future Directions14 Nov 2025
- 2025Private-RAG: Answering Multiple Queries with LLMs while Keeping Your Data Private10 Nov 2025
- 2025Position: LLM Watermarking Should Align Stakeholders' Incentives for Practical Adoption21 Oct 2025
- 2025ImageSentinel: Protecting Visual Datasets from Unauthorized Retrieval-Augmented Image Generation14 Oct 2025
- 2025External Data Extraction Attacks against Retrieval-Augmented Large Language Models3 Oct 2025
- 2025Beyond Data Privacy: New Privacy Risks for Large Language Models16 Sep 2025
- 2025Layer-Wise Perturbations via Sparse Autoencoders for Adversarial Text Generation14 Aug 2025
- 2025SMA: Who Said That? Auditing Membership Leakage in Semi-Black-box RAG Controlling12 Aug 2025
- 2025Provably Secure Retrieval-Augmented Generation1 Aug 2025
- 2025Fine-Grained Privacy Extraction from Retrieval-Augmented Generation Systems via Knowledge Asymmetry Exploitation31 Jul 2025
- 2025We Should Identify and Mitigate Third-Party Safety Risks in MCP-Powered Agent Systems16 Jun 2025
- 2025MrM: Black-Box Membership Inference Attacks against Multimodal RAG Systems9 Jun 2025
- 2025Silent Leaks: Implicit Knowledge Extraction Attack on RAG Systems through Benign Queries21 May 2025
- 2025Securing RAG: A Risk Assessment and Mitigation Framework13 May 2025
- 2025Distributed Retrieval-Augmented Generation1 May 2025
- 2025Privacy-Preserving Federated Embedding Learning for Localized Retrieval-Augmented Generation27 Apr 2025
- 2025A Comprehensive Survey in LLM(-Agent) Full Stack Safety: Data, Training and Deployment22 Apr 2025
- 2025Membership Inference Attacks on Large-Scale Models: A Survey25 Mar 2025
- 2025A Survey on Trustworthy LLM Agents: Threats and Countermeasures12 Mar 2025
- 2025Poison-RAG: Adversarial Data Poisoning Attacks on Retrieval-Augmented Generation in Recommender Systems20 Jan 2025
- 2025RAG-WM: An Efficient Black-Box Watermarking Approach for Retrieval-Augmented Generation of Large Language Models9 Jan 2025
- 2024Pirates of the RAG: Adaptively Attacking LLMs to Leak Knowledge Bases24 Dec 2024
- 2024Membership Inference Attack against Long-Context Large Language Models18 Nov 2024
- 2024Ward: Provable RAG Dataset Inference via LLM Watermarks4 Oct 2024
- 2024Trustworthiness in Retrieval-Augmented Generation Systems: A Survey16 Sep 2024
- 2024Unleashing Worms and Extracting Data: Escalating the Outcome of Attacks against RAG-based Inference in Scale and Severity Using Jailbreaking12 Sep 2024
- 2024Blockchain for Large Language Model Security and Safety: A Holistic Survey26 Jul 2024
- 2024Membership Inference Attacks Against Time-Series Models3 Jul 2024
- 2024Generating Is Believing: Membership Inference Attacks against Retrieval-Augmented Generation27 Jun 2024
- 2024Trustworthiness in Retrieval-Augmented Generation Systems: A Surveycited by 83
- 2025Poison-RAG: Adversarial Data Poisoning Attacks on Retrieval-Augmented Generation in Recommender Systemscited by 32
- 2024Generating Is Believing: Membership Inference Attacks against Retrieval-Augmented Generationcited by 25
- 2025Silent Leaks: Implicit Knowledge Extraction Attack on RAG Systems through Benign Queriescited by 19
- 2024Pirates of the RAG: Adaptively Attacking LLMs to Leak Knowledge Basescited by 17
- 2025Privacy-Preserving Federated Embedding Learning for Localized Retrieval-Augmented Generationcited by 7
- 2026SoK: Privacy Risks and Mitigations in Retrieval-Augmented Generation Systemscited by 7
- 2025RAG-WM: An Efficient Black-Box Watermarking Approach for Retrieval-Augmented Generation of Large Language Modelscited by 6
- 2026Five Queries Are Enough: Query-Efficient and Surrogate-Free Membership Inference Attacks on RAG via Entailmentcited by 4
- 2025Securing RAG: A Risk Assessment and Mitigation Frameworkcited by 3
- 2025SMA: Who Said That? Auditing Membership Leakage in Semi-Black-box RAG Controllingcited by 3
- 2026Connect the Dots: Knowledge Graph-Guided Crawler Attack on Retrieval-Augmented Generation Systemscited by 3
12 most cited of 25 All 25 (JSON)
- 2026CIG-MIA: Context-Induced Information Gain Membership Inference Attacks against Retrieval-Augmented Generation13 Sep 2026
- 2026Five Queries Are Enough: Query-Efficient and Surrogate-Free Membership Inference Attacks on RAG via Entailment23 May 2026
- 2026E-MIA: Exam-Style Black-Box Membership Inference Attacks against RAG Systems1 May 2026
- 2026Adaptive Defense Orchestration for RAG: A Sentinel-Strategist Architecture against Multi-Vector Attacks22 Apr 2026
- 2026Sensitivity-Aware Retrieval-Augmented Intent Clarification6 Mar 2026
- 2026Graphs Don't Stay Secret: Practical Subgraph Reconstruction Attacks on Defended Graph RAG6 Feb 2026
- 2026Connect the Dots: Knowledge Graph-Guided Crawler Attack on Retrieval-Augmented Generation Systems22 Jan 2026
- 2026SoK: Privacy Risks and Mitigations in Retrieval-Augmented Generation Systems7 Jan 2026
- 2026Making Theft Useless: Adulteration-Based Protection of Proprietary Knowledge Graphs in GraphRAG Systems1 Jan 2026
- 2025BudgetLeak: Membership Inference Attacks on RAG Systems via the Generation Budget Side Channel15 Nov 2025
- 2025Privacy Challenges and Solutions in Retrieval-Augmented Generation-Enhanced LLMs for Healthcare Chatbots: A Review of Applications, Risks, and Future Directions14 Nov 2025
- 2025Private-RAG: Answering Multiple Queries with LLMs while Keeping Your Data Private10 Nov 2025
12 newest of 25 All 25 (JSON)
- 2024Unleashing Worms and Extracting Data: Escalating the Outcome of Attacks against RAG-based Inference in Scale and Severity Using Jailbreakingcited by 30
- 2024Ward: Provable RAG Dataset Inference via LLM Watermarkscited by 15
- 2024Blockchain for Large Language Model Security and Safety: A Holistic Surveycited by 8
- 2025Position: LLM Watermarking Should Align Stakeholders' Incentives for Practical Adoptioncited by 7
- 2025ImageSentinel: Protecting Visual Datasets from Unauthorized Retrieval-Augmented Image Generationcited by 4
- 2026MRMMIA: Membership Inference Attacks on Memory in Chat Agentscited by 2
- 2024Membership Inference Attacks Against Time-Series Modelscited by 1
- 2024Membership Inference Attack against Long-Context Large Language Modelscited by 1
- 2025Layer-Wise Perturbations via Sparse Autoencoders for Adversarial Text Generationcited by 1
- 2026MRMMIA: Membership Inference Attacks on Memory in Chat Agents27 May 2026
- 2025Position: LLM Watermarking Should Align Stakeholders' Incentives for Practical Adoption21 Oct 2025
- 2025ImageSentinel: Protecting Visual Datasets from Unauthorized Retrieval-Augmented Image Generation14 Oct 2025
- 2025Layer-Wise Perturbations via Sparse Autoencoders for Adversarial Text Generation14 Aug 2025
- 2024Membership Inference Attack against Long-Context Large Language Models18 Nov 2024
- 2024Ward: Provable RAG Dataset Inference via LLM Watermarks4 Oct 2024
- 2024Unleashing Worms and Extracting Data: Escalating the Outcome of Attacks against RAG-based Inference in Scale and Severity Using Jailbreaking12 Sep 2024
- 2024Blockchain for Large Language Model Security and Safety: A Holistic Survey26 Jul 2024
- 2024Membership Inference Attacks Against Time-Series Models3 Jul 2024
- 2025A Survey on Trustworthy LLM Agents: Threats and Countermeasurescited by 93
- 2025We Should Identify and Mitigate Third-Party Safety Risks in MCP-Powered Agent Systemscited by 27
- 2026POLAR-Bench: A Diagnostic Benchmark for Privacy-Utility Trade-offs in LLM Agentscited by 4
- 2026Automated Membership Inference Attacks (AutoMIA): Discovering MIA Signal Computations using LLM Agentscited by 0
- 2026K-Bench: A Benchmark for LLM Unlearning in Agentic Deploymentscited by 0
- 2026K-Bench: A Benchmark for LLM Unlearning in Agentic Deployments11 Sep 2026
- 2026POLAR-Bench: A Diagnostic Benchmark for Privacy-Utility Trade-offs in LLM Agents18 May 2026
- 2026Automated Membership Inference Attacks (AutoMIA): Discovering MIA Signal Computations using LLM Agents19 Mar 2026
- 2025We Should Identify and Mitigate Third-Party Safety Risks in MCP-Powered Agent Systems16 Jun 2025
- 2025A Survey on Trustworthy LLM Agents: Threats and Countermeasures12 Mar 2025
Similar, not cited
Close in wording, no citation either way
- 2025Safeguarding Privacy of Retrieval Data against Membership Inference Attacks: Is This Query Too Close to Home?
- 2024Mask-based Membership Inference Attacks for Retrieval-Augmented Generation
- 2025RAG Security and Privacy: Formalizing the Threat Model and Attack Surface
- 2025Riddle Me This! Stealthy Membership Inference for Retrieval-Augmented Generation
- 2026Security and Privacy in Retrieval-Augmented Generation: Architectures, Threats, Defenses, and Future Directions for Building Trustworthy Systems
- 2026Towards Secure Retrieval-Augmented Generation: A Comprehensive Review of Threats, Defenses and Benchmarks
- 2025DCMI: A Differential Calibration Membership Inference Attack Against Retrieval-Augmented Generation
- 2025Ensemble Privacy Defense for Knowledge-Intensive LLMs against Membership Inference Attacks