English

LeakDojo: Decoding the Leakage Threats of RAG Systems

Cryptography and Security 2026-05-08 v1 Artificial Intelligence Computation and Language

Abstract

Retrieval-Augmented Generation (RAG) enables large language models (LLMs) to leverage external knowledge, but also exposes valuable RAG databases to leakage attacks. As RAG systems grow more complex and LLMs exhibit stronger instruction-following capabilities, existing studies fall short of systematically assessing RAG leakage risks. We present LeakDojo, a configurable framework for controlled evaluation of RAG leakage. Using LeakDojo, we benchmark six existing attacks across fourteen LLMs, four datasets, and diverse RAG systems. Our study reveals that (1) query generation and adversarial instructions contribute independently to leakage, with overall leakage well approximated by their product; (2) stronger instruction-following capability correlates with higher leakage risk; and (3) improvements in RAG faithfulness can introduce increased leakage risk. These findings provide actionable insights for understanding and mitigating RAG leakage in practice. Our codebase is available at https://github.com/yeasen-z/LeakDojo.

Keywords

Cite

@article{arxiv.2605.05818,
  title  = {LeakDojo: Decoding the Leakage Threats of RAG Systems},
  author = {Maosen Zhang and Jianshuo Dong and Boting Lu and Wenyue Li and Xiaoping Zhang and Tianwei Zhang and Han Qiu},
  journal= {arXiv preprint arXiv:2605.05818},
  year   = {2026}
}

Comments

Findings of ACL 2026