arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2412.18295cs.AI
收藏

RAG的海盗:自适应攻击大语言模型以泄露知识库

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

University of Pisa(比萨大学);University of Siena(锡耶纳大学);University of Perugia(佩鲁贾大学)

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

AI总结:

本文提出一种自适应、自动的黑盒攻击方法,利用相关性机制和开源LLM生成查询,迫使RAG系统泄露私有知识库,实验证明其有效性并凸显隐私保护需求。

摘要:

检索增强生成(RAG)系统在多个现实世界服务中的日益普及引发了对其安全性的严重担忧。RAG系统通过在私有知识库上运行的检索机制来增强大语言模型(LLM)的生成能力,而该知识库的意外暴露可能导致严重后果,包括私有和敏感信息的泄露。本文提出了一种黑盒攻击,以迫使RAG系统泄露其私有知识库,与现有方法不同,该攻击是自适应且自动的。基于相关性的机制和攻击者侧的开源LLM有助于生成有效的查询,从而泄露大部分(隐藏的)知识库。大量实验证明了所提算法在不同RAG流程和领域中的质量,并与最近的相关方法进行了比较,结果表明这些方法要么不是完全黑盒的,要么不是自适应的,要么不是基于开源模型的。我们的研究结果强调了在RAG系统的设计和部署中迫切需要更强大的隐私保护措施。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑