Benchmarking Knowledge-Extraction Attack and Defense on Retrieval-Augmented Generation
Zhisheng Qi, Utkarsh Sahu, Li Ma, Haoyu Han, Ryan Rossi, Franck Dernoncourt, Mahantesh Halappanavar, Nesreen Ahmed, Yushun Dong, Yue Zhao, Yu Zhang, Yu Wang
TL;DR
This paper tackles the privacy and intellectual-property risks posed by knowledge-extraction attacks on Retrieval-Augmented Generation (RAG) systems by proposing the first comprehensive benchmark with standardized protocols. It defines a unified design space spanning RAG architectures, attack and defense modalities, knowledge-base construction, and evaluation metrics, and validates this space through extensive experiments across multiple datasets and model families. Key findings show that effective extraction demands coordinated optimization at both the retrieval and generation stages, while defenses are most effective when layered (thresholds, system prompts, summarization, and input blocking) but no single defense is sufficient. The work highlights important factors such as embedding-model transferability, knowledge indexing formats, and query diversity, offering actionable guidance for building privacy-preserving RAG systems and enabling reproducible cross-study comparisons.
Abstract
Retrieval-Augmented Generation (RAG) has become a cornerstone of knowledge-intensive applications, including enterprise chatbots, healthcare assistants, and agentic memory management. However, recent studies show that knowledge-extraction attacks can recover sensitive knowledge-base content through maliciously crafted queries, raising serious concerns about intellectual property theft and privacy leakage. While prior work has explored individual attack and defense techniques, the research landscape remains fragmented, spanning heterogeneous retrieval embeddings, diverse generation models, and evaluations based on non-standardized metrics and inconsistent datasets. To address this gap, we introduce the first systematic benchmark for knowledge-extraction attacks on RAG systems. Our benchmark covers a broad spectrum of attack and defense strategies, representative retrieval embedding models, and both open- and closed-source generators, all evaluated under a unified experimental framework with standardized protocols across multiple datasets. By consolidating the experimental landscape and enabling reproducible, comparable evaluation, this benchmark provides actionable insights and a practical foundation for developing privacy-preserving RAG systems in the face of emerging knowledge extraction threats. Our code is available here.
