mlsanityData to 14 Oct 2026

Mitigating Database Leakage in RAG Systems with Keyword-Grounded Fact Substitution

arXiv 2608.21656 ↗First posted 21 Aug 2026cs.CLcited by 0

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

Abstract (arXiv)

Retrieval-Augmented Generation (RAG) has emerged as a powerful paradigm for combining large language models (LLMs) with external knowledge sources. However, RAG systems remain vulnerable to prompt injection attacks, which may mislead the retriever or generator to expose sensitive database contents. To address this issue, we propose KFS-RAG, a defense that mitigates information leakage by reformulating the retrieved context. Specifically, our method first identifies a small set of influential keywords from the retrieved context via an attention rollout plus a causal perturbation mechanism. These keywords are then used to guide an auxiliary LLM to generate a compact set of keyword-grounded facts from the retrieved passages. Finally, the original context is substituted with these curated facts, ensuring that the generator operates on sanitized evidence rather than the raw retrieved text. Experimental evaluations demonstrate that KFS-RAG significantly reduces the risk of database leakage under injection attacks while maintaining response accuracy and relevance. This work highlights a practical pathway toward building secure and trustworthy RAG systems.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Privacy and security of RAG, one of 15 directions in Retrieval-augmented generation. Builds on 19 of its 47 references that are in the map. First posted on arXiv 21 Aug 2026.

Builds on

19 of 47 references.

Closest ancestors · 8

Same direction, newest first

  1. 2026RADAR: Defending RAG Dynamically against Retrieval Corruption21 May
  2. 2025Privacy-Aware RAG: Secure and Isolated Knowledge Retrieval17 Mar
  3. 2024RAG with Differential Privacy26 Dec
  4. 2024RemoteRAG: A Privacy-Preserving LLM Cloud RAG Service17 Dec
  5. 2024Privacy-Preserving Retrieval-Augmented Generation with Differential Privacy6 Dec
  6. 2024Mitigating the Privacy Issues in Retrieval-Augmented Generation (RAG) via Pure Synthetic Data20 Jun
  7. 2024Follow My Instruction and Spill the Beans: Scalable Data Extraction from Retrieval-Augmented Generation Systems27 Feb
  8. 2024The Good and The Bad: Exploring Privacy Issues in Retrieval-Augmented Generation (RAG)23 Feb

Other references · 11

  1. 2016Pointer Sentinel Mixture Modelscited by 3,096
  2. 2020Constructing A Multi-hop QA Dataset for Comprehensive Evaluation of Reasoning Stepscited by 1,282
  3. 2019Attention is not Explanationcited by 929
  4. 2022Ignore Previous Prompt: Attack Techniques For Language Modelscited by 832
  5. 2023C-Pack: Packed Resources For General Chinese Embeddingscited by 578
  6. 2023ChatDoctor: A Medical Chat Model Fine-Tuned on a Large Language Model Meta-AI (LLaMA) Using Medical Domain Knowledgecited by 325
  7. 2024The Power of Noise: Redefining Retrieval for RAG Systemscited by 281
  8. 2022ZeroGen: Efficient Zero-shot Learning via Dataset Generationcited by 211
  9. 2022Re2G: Retrieve, Rerank, Generatecited by 102
  10. 2022Evaluating the Susceptibility of Pre-Trained Language Models via Handcrafted Adversarial Examplescited by 69
  11. 2025The LLM Already Knows: Estimating LLM-Perceived Question Difficulty via Hidden Representationscited by 29

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2024Pirates of the RAG: Adaptively Attacking LLMs to Leak Knowledge Bases
  2. 2025Token-Level Precise Attack on RAG: Searching for the Best Alternatives to Mislead Generation
  3. 2026Security and Privacy in Retrieval-Augmented Generation: Architectures, Threats, Defenses, and Future Directions for Building Trustworthy Systems
  4. 2025RAG Security and Privacy: Formalizing the Threat Model and Attack Surface
  5. 2026Securing Retrieval-Augmented Generation: A Taxonomy of Attacks, Defenses, and Future Directions
  6. 2026Towards Secure Retrieval-Augmented Generation: A Comprehensive Review of Threats, Defenses and Benchmarks
  7. 2025Silent Leaks: Implicit Knowledge Extraction Attack on RAG Systems through Benign Queries
  8. 2024PoisonedRAG: Knowledge Corruption Attacks to Retrieval-Augmented Generation of Large Language Models