External Data Extraction Attacks Against Retrieval-Augmented Large Language Models

IF 8.7 1区 计算机科学 Q1 COMPUTER SCIENCE, THEORY & METHODS
Yu He;Yifei Chen;Yiming Li;Shuo Shao;Leyi Qi;Boheng Li;Dacheng Tao;Zhan Qin
{"title":"External Data Extraction Attacks Against Retrieval-Augmented Large Language Models","authors":"Yu He;Yifei Chen;Yiming Li;Shuo Shao;Leyi Qi;Boheng Li;Dacheng Tao;Zhan Qin","doi":"10.1109/TIFS.2026.3705326","DOIUrl":null,"url":null,"abstract":"In recent years, retrieval-augmented generation (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 by adversaries. 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 (RA-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 <sc>Secret</small>: a Scalable and EffeCtive exteRnal data Extraction aTtack. Specifically, <sc>Secret</small> 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 (including 3 leading commercial LLMs) reveal that <sc>Secret</small> significantly outperforms previous attacks, and is highly effective against all 16 tested RAG instances. Notably, <sc>Secret</small> successfully extracts 35% of the data from RAG powered by Claude 3.7 Sonnet for the first time, whereas other attacks yield 0% extraction. <sc>Secret</small> is also evaluated against potential defenses. Our findings call for urgent attention to this concerning yet largely overlooked emerging threat. Code is available here.","PeriodicalId":13492,"journal":{"name":"IEEE Transactions on Information Forensics and Security","volume":"21 ","pages":"5864-5879"},"PeriodicalIF":8.7000,"publicationDate":"2026-01-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"IEEE Transactions on Information Forensics and Security","FirstCategoryId":"94","ListUrlMain":"https://ieeexplore.ieee.org/document/11570932/","RegionNum":1,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"2026/6/18 0:00:00","PubModel":"Epub","JCR":"Q1","JCRName":"COMPUTER SCIENCE, THEORY & METHODS","Score":null,"Total":0}
引用次数: 0

Abstract

In recent years, retrieval-augmented generation (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 by adversaries. 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 (RA-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 (including 3 leading commercial LLMs) 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. Secret is also evaluated against potential defenses. Our findings call for urgent attention to this concerning yet largely overlooked emerging threat. Code is available here.
针对检索增强大型语言模型的外部数据提取攻击
近年来,检索增强生成(RAG)已成为增强大型语言模型(llm)的关键范式。通过集成外部检索的信息,RAG减轻了过时的知识和(至关重要的)不足的领域专业知识等问题。尽管RAG是有效的,但它引入了外部数据提取攻击(edea)的新风险,攻击者可能会逐字提取其知识库中的敏感或受版权保护的数据。当使用RAG定制具有私有知识库的专门LLM应用程序时,这些风险尤其严重。尽管对这些风险进行了初步的研究,但它们通常缺乏形式化的框架、健壮的攻击性能和全面的评估,从而留下了关于现实世界EDEA可行性的关键问题。在本文中,我们提出了第一个将edea与检索增强llm (ra - llm)形式化的综合研究。我们首先正式定义了edea,并提出了一个统一的框架,将其设计分解为三个组件:提取指令、越狱操作符和检索触发器,在此框架下,先前的攻击可以被视为框架内的实例。在这个框架的指导下,我们开发了秘密:一个可扩展和有效的外部数据提取攻击。具体来说,Secret结合了(1)使用llm作为优化器的自适应优化过程,为edea生成专门的越狱提示;(2)以集群为中心的触发,一种在全局探索和局部利用之间交替的自适应策略,以有效地生成有效的检索触发器。对4个模型(包括3个领先的商业法学硕士)的广泛评估表明,Secret明显优于以前的攻击,并且对所有16个测试的RAG实例都非常有效。值得注意的是,Secret首次成功地从Claude 3.7 Sonnet驱动的RAG中提取了35%的数据,而其他攻击的提取率为0%。Secret也会针对潜在防御进行评估。我们的研究结果呼吁紧急关注这一令人担忧但在很大程度上被忽视的新威胁。代码可以在这里找到。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
IEEE Transactions on Information Forensics and Security
IEEE Transactions on Information Forensics and Security 工程技术-工程:电子与电气
CiteScore
14.40
自引率
7.40%
发文量
234
审稿时长
6.5 months
期刊介绍: The IEEE Transactions on Information Forensics and Security covers the sciences, technologies, and applications relating to information forensics, information security, biometrics, surveillance and systems applications that incorporate these features
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信
小红书