Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Pirates of the RAG: Adaptively Attacking LLMs to Leak Knowledge Bases

About

The growing ubiquity of Retrieval-Augmented Generation (RAG) systems in several real-world services triggers severe concerns about their security. A RAG system improves the generative capabilities of a Large Language Models (LLM) by a retrieval mechanism which operates on a private knowledge base, whose unintended exposure could lead to severe consequences, including breaches of private and sensitive information. This paper presents a black-box attack to force a RAG system to leak its private knowledge base which, differently from existing approaches, is adaptive and automatic. A relevance-based mechanism and an attacker-side open-source LLM favor the generation of effective queries to leak most of the (hidden) knowledge base. Extensive experimentation proves the quality of the proposed algorithm in different RAG pipelines and domains, comparing to very recent related approaches, which turn out to be either not fully black-box, not adaptive, or not based on open-source models. The findings from our study remark the urgent need for more robust privacy safeguards in the design and deployment of RAG systems.

Christian Di Maio, Cristian Cosci, Marco Maggini, Valentina Poggioni, Stefano Melacci• 2024

Related benchmarks

TaskDatasetResultRank
RAG Leakage AttackFiQA
CCL65.8
72
RAG Leakage AttackSciFact
CCL56.3
36
RAG Leakage AttackNFCorpus
CCL60.5
36
RAG Leakage AttackENRON EMAIL
CCL88.3
36
Data Extraction AttackRAP
Attack Success Rate (ASR)100
32
Data Extraction AttackEHRAgent
Equality (EQ)59
20
Data Extraction AttackReAct
EQ50
20
Targeted AttackENRON EMAIL
LC609
18
Targeted AttackSynthetic Finance
LC525
18
Targeted AttackHealthcareMagic-101
LC486
18
Showing 10 of 14 rows

Other info

Follow for update