SNAPRAG: Cost-Efficient Knowledge Extraction Attack on RAG Systems via Adversarial Perturbations
Melih Co\c{s}\u{g}un, Mehmet Emre G\"ursoy, Alptekin K\"up\c{c}\"u, Sinem Sav
Key points
From the paper's conclusion- We further evaluate SNAPRAG against active defenses, where it remains the leading attack on four of five defended targets, achieving 50.7-96.3% extraction rate.
Abstract
Retrieval-Augmented Generation (RAG) systems improve Large Language Model (LLM) responses by incorporating information from external knowledge bases. However, recent studies have shown that attackers can extract substantial portions of private knowledge bases from RAG systems through repeated querying. Yet, state-of-the-art extraction attacks either rely heavily on external LLMs to generate adversarial queries or require a large number of queries. In this paper, we propose SNAPRAG, a novel and cost-efficient attack for extracting RAG knowledge bases through adversarial perturbations. Our approach algorithmically generates adversarial queries without relying on external LLMs and allows for a strictly configurable query budget. In particular, SNAPRAG uses a discrete token-mutation algorithm to generate novel queries in a strict black-box setting. Our adaptive dissimilarity threshold calibration systematically forces queries into unexplored semantic regions of the target database, enabling extraction with fewer queries. Specifically, to extract half of the target knowledge base, our method requires up to 6.77$\times$ fewer queries than existing approaches. Furthermore, within a fixed query budget, our method recovers up to 96.9%, outperforming the closest approach by 7.7-19.9%. We further evaluate SNAPRAG against active defenses, where it remains the leading attack on four of five defended targets, achieving 50.7-96.3% extraction rate.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- RAGLeak: Supply-Chain Privacy Backdoors in Retrieval-Augmented GenerationarXiv · 2026
- RAGSentinel: Certifiable Geometric Consensus for Robust Retrieval-Augmented GenerationarXiv · 2026
- GuardRAG: A Post-Retrieval Defense against Poisoning Attacks in Retrieval-Augmented GenerationarXiv · 2026
- Private Retrieval Augmented Generation via Random ProjectionarXiv · 2026
- RAG-PIBench: A Leakage-Aware Benchmark for Prompt-Injection Detection in Trustworthy RAG SystemsarXiv · 2026
- From knowledge retrieval to generation: a comprehensive study of RAG's architectures, evolution, and applicationsArtificial Intelligence Review · 2026