Cited by 4Adversarial Robustness in Machine LearningTopic ModelingPrivacy-Preserving Technologies in Data

The DOI matches its Crossref record; 46 of the 46 references it cites were found in a registry or an index; 2 of the 81 sources its claims cite were checked for support.

External Data Extraction Attacks Against Retrieval-Augmented Large Language Models

Open access
He, Yu, Chen, Yifei, Li, Yiming, Shao, Shuo, Qi, Leyi, Li, Boheng, Tao, Dacheng, Qin, Zhan·2026·IEEE Transactions on Information Forensics and Security

Abstract

In recent years, RAG has emerged as a key paradigm for enhancing large language models (LLMs). By integrating externally retrieved information, RAG alleviates issues like outdated knowledge and, crucially, insufficient domain expertise. While effective, RAG introduces new risks of external data extraction attacks (EDEAs), where sensitive or copyrighted data in its knowledge base may be extracted verbatim. These risks are particularly acute when RAG is used to customize specialized LLM applications with private knowledge bases. Despite initial studies exploring these risks, they often lack a formalized framework, robust attack performance, and comprehensive evaluation, leaving critical questions about real-world EDEA feasibility unanswered. In this paper, we present the first comprehensive study to formalize EDEAs against retrieval-augmented LLMs. We first formally define EDEAs and propose a unified framework decomposing their design into three components: extraction instruction, jailbreak operator, and retrieval trigger, under which prior attacks can be considered instances within our framework. Guided by this framework, we develop SECRET: a Scalable and EffeCtive exteRnal data Extraction aTtack. Specifically, SECRET incorporates (1) an adaptive optimization process using LLMs as optimizers to generate specialized jailbreak prompts for EDEAs, and (2) cluster-focused triggering, an adaptive strategy that alternates between global exploration and local exploitation to efficiently generate effective retrieval triggers. Extensive evaluations across 4 models reveal that SECRET significantly outperforms previous attacks, and is highly effective against all 16 tested RAG instances. Notably, SECRET successfully extracts 35% of the data from RAG powered by Claude 3.7 Sonnet for the first time, whereas other attacks yield 0% extraction. Our findings call for attention to this emerging threat.

Overview

CoChat Summary

Written by AI from the paper’s full text.

TL;DR

The paper formalizes external data extraction attacks (EDEAs) against retrieval-augmented LLMs and proposes SECRET, a black-box attack combining LLM-optimized jailbreak prompts with cluster-focused retrieval triggering. SECRET substantially outperforms prior EDEAs across four LLMs and two sensitive datasets, including extracting 35% of data from a Claude 3.7 Sonnet RAG instance where prior attacks yield 0%.

Key findings

  • SECRET significantly outperforms five baselines across all 16 tested RAG instances (4 models × 2 datasets × 2 defense settings). Against naive defenses on HealthcareMagic-101, SECRET achieves MERs of 34.0% (Claude 3.7 Sonnet), 48.1% (Gemini 2.0 Flash), 45.7% (GPT-4o mini), and 49.4% (DeepSeek-V3), with refusal rates of 7.7%, 0.0%, 5.7%, and 0.0%, respectively.
  • Prior EDEAs are largely ineffective against commercial LLMs and simple defenses: under naive defenses, many baselines show refusal rates near 100% and MERs near 0%; for example, Jiang et al. reaches 0.0% MER on all four models in Table II.
  • SECRET’s adaptive jailbreak prompt transfers across models: a prompt optimized against Gemini achieves near-zero refusal rates (5.7% and 0%) when applied to defended GPT-4o and DeepSeek.
  • Tested defenses provide only partial mitigation: a retrieval similarity threshold at τ = 0.85 filters about 50% of relevant documents but SECRET still reaches 24.6% ER-TMQ; context rephrasing reduces ER-TMQ from 28.8% to 21.6% and MER from 45.5% to 36.7%; summarization eliminates verbatim extraction but retains 0.911 semantic similarity while reducing utility to 0.196. DataSentinel detects some adversarial prompts but flags 96.1% of complex benign prompts as malicious, and SECRET shows 0% detection by Llama-Guard-3-8B and a perplexity-based detector.

Methods

  • The paper first defines EDEAs formally and proposes a unified framework decomposing an attack query into three components: extraction instruction, jailbreak operator, and retrieval trigger. SECRET instantiates this with an LLM-driven optimizer/evaluator loop to generate a specialized jailbreak prompt, then uses cluster-focused triggering (CFT) that alternates global exploration with local exploitation.
  • Evaluation uses four SOTA LLMs as RAG backends: Claude 3.7 Sonnet, Gemini 2.0 Flash, GPT-4o mini, and DeepSeek-V3. External databases are built from Enron Email and HealthcareMagic-101, randomly sampling 1,000 entries from each. The retriever uses bge-large-en-v1.5 with Euclidean distance; a surrogate embedding model mxbai-embed-large-v1 is used for local exploitation.
  • Main analysis compares SECRET against five baselines (Qi et al., Zeng et al., Cohen et al., Jiang et al., and an adapted GCG Leak) using three metrics: Refusal Rate (RR), Extraction Rate with Theoretical Minimum Queries (ER-TMQ), and Maximum Extraction Rate (MER). Successful extraction is measured with normalized Levenshtein distance and τ = 0.1. Implementation uses N_iter = 20, N_cand = 3, local query budget 30, k = 10 retrieved documents, and Qwen2.5-1.5B-Instruct for semantic-shift trigger generation.

Limitations

  • Stated: the study does not consider multimodal retrieval; the framework and SECRET target text-only document retrieval, leaving multimodal attack surfaces out of scope.
  • Stated: a gap remains between empirical ER-TMQ and the theoretical optimum of 100%, indicating that non-redundant coverage of the external database with minimal queries remains a nontrivial black-box search problem.
  • Evident from the text: evaluation uses sampled databases of 1,000 entries per dataset rather than full production-scale knowledge bases, and the defense evaluation covers a limited set of countermeasures; the paper also notes that no canonical norm-based definition of stealthiness is available for natural-language triggers, so stealthiness is assessed only empirically.

Model-written summary. Check it against the paper before relying on it.

Integrity signals

Registry

Crossref · 10.1109/tifs.2026.3705326

Cites

46 of 46 references verified0 citation errors · 0 not checkable

Statistics

Nothing to recompute.

Verification

Claims the paper makes

91 Own interpretation · 59 Own result · 19 Not checked yet · 16 Check pending · 4 Sources not found · 3 Own method · 3 No basis given · 2 No full text of the sources · 1 Partly supported · accuracy not yet measured

  • Probably not a substantial claim. 42
  • It may state two separate claims as one. 72
  • The quote only partly states this claim. 1

Create a free account to see these claims.

Create a free account to see these assumptions.

94 more claims

Create a free account to see all 198 claims and to verify the 50 references still open.

See all claims — free account

Self-check

Percentages, sums and reported differences re-computed from the paper’s own numbers.

Each contradiction between two passages listed here was confirmed by an independent check.

4 of 4

Citations

Cites

Show all 45 references

Research works printed but not linked: 31

  1. Wei, Finetuned language models are zero-shot learners, 1
  2. Nijkamp, CodeGen: An open large language model for code with multi-turn program synthesis, 1
  3. Zhang, Prompting large language model for machine translation: A case study, 41092
  4. Lewis, Retrieval-augmented generation for knowledge-intensive NLP tasks, 33, 9459
  5. Ganju, 2024, Develop Secure, Reliable Medical Apps With Rag and Nvidia Nemo Guardrails
  6. Malec, 2025, Harnessing Rag in Healthcare: Use-cases, Impact, & Solutions
  7. 2024, Ai in Finance: The Promise and Risks of Rag
  8. 2023, Leveraging Retrieval-augmented Generation (rag) in Banking: A New Era of Finance Transformation
  9. 2024, Watsonx Assistant
  10. Qi, Follow my instruction and spill the beans: Scalable data extraction from retrieval-augmented generation systems, 48733
  11. Liu, AutoDAN: Generating stealthy jailbreak prompts on aligned large language models, 56174
  12. Yu, LLM-Fuzzer: Scaling assessment of large language model jailbreaks, 4657
  13. Yang, Large language models as optimizers, 12028
  14. Bengio, A neural probabilistic language model, 1
  15. 2025, Claude 3.7 Sonnet and Claude Code
  16. Möller, COVID-QA: A question answering dataset for COVID-19, 1
  17. Carlini, Extracting training data from large language models, 2633
  18. Zhou, 2024, TruVRF: Towards triple-granularity verification on machine unlearning, IEEE TIFS, 20, 4844
  19. Min, SILO language models: Isolating legal risk in a nonparametric datastore, 25132
  20. Khandelwal, Generalization through memorization: Nearest neighbor language models, 1
  21. Carlini, Extracting training data from diffusion models, 5253
  22. Peng, UPAM: Unified prompt attack in text-to-image generation models against both textual filters and visual checkers, 40200
  23. Gong, PAPILLON: Efficient and stealthy fuzz testing-powered jailbreaks for LLMs, 2401
  24. Xiao, 2024, C-pack: Packaged resources to advance general Chinese embedding, 641
  25. Lee, 2024, Open Source Strikes Bread-New Fluffy Embeddings Model
  26. Li, 2023, AnglE-optimized text embeddings, arXiv:2309.12871 · arXiv
  27. 2026, Optimizing Llms for Accuracy
  28. Lin, Rouge: A package for automatic evaluation of summaries, 74
  29. 2025, Cost of a Data Breach Report 2025
  30. Burgess, 2023, Openai’s Custom Chatbots Are Leaking Their Secrets
  31. 2025, Retrieval-Augmented Generation (RAG)

Cited by

See all 4

Metadata

Authors
He, Y., Chen, Y., Li, Y., Shao, S., Qi, L., Li, B., Tao, D., & Qin, Z.
Affiliations
  • Zhejiang University (CN)
  • Nanyang Technological University (SG)
Venue
IEEE Transactions on Information Forensics and Security
Published
2026
Volume
21
Pages
5864-5879
ISSN
  • 1556-6013 (ISSN-L)
  • 1556-6021
OpenAlex
W4415981883
Cited by
4
References
45
Citations by year
2026: 3
FWCI
4.26
Type
journal article
Language
en
Open access
Locations
  • IEEE Transactions on Information Forensics and Security (publishedVersion)
  • arXiv (Cornell University) (submittedVersion)
  • DR-NTU (Nanyang Technological University) (submittedVersion)
  • arXiv (Cornell University)
Funders
  • “Pioneer” and “Leading Goose” Research and Development Program of Zhejiang (2024C01169)
  • National Natural Science Foundation of China (62441238, U2441240)
Topics
  • Physical Sciences › Computer Science › Artificial Intelligence › Adversarial Robustness in Machine Learning
  • Physical Sciences › Computer Science › Artificial Intelligence › Topic Modeling
  • Physical Sciences › Computer Science › Artificial Intelligence › Privacy-Preserving Technologies in Data
Keywords
retrieval-augmented generation, large language models, jailbreak prompts

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

A language model drew the claims from the paper on 2026-11-12, under version 3 of the claim definition (model deepseek-v4.1-flash, prompt extract-v3).

A second model labelled each claim on 2026-11-12 (model jev-1.13-20260917, definition revision gold-guideline-v0.2).

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review