arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2306.05499cs.CRcs.AIcs.CLcs.SE
收藏

针对集成大语言模型应用的提示注入攻击

Prompt Injection attack against LLM-integrated Applications

Griffith University(格里菲斯大学);Nanyang Technological University(南洋理工大学);University of New South Wales(新南威尔士大学);Huazhong University of Science and Technology(华中科技大学);Indiana University at Bloomington(印第安纳大学布卢明顿分校);Southern University of Science and Technology(南方科技大学);Tianjin University(天津大学)

Yi Liu, Gelei Deng, Yuekang Li, Kailong Wang, Zihao Wang, Xiaofeng Wang, Tianwei Zhang, Yepang Liu, Haoyu Wang, Yan Zheng, Leo Yu Zhang, Yang Liu

AI总结:

本研究提出HouYi技术,揭示LLM集成应用中提示注入攻击的潜在风险及缓解方法。

摘要:

大语言模型(LLMs)因其在语言理解和生成方面的卓越能力,激发了围绕它们的应用生态系统。然而,它们在各种服务中的广泛整合引入了显著的安全风险。本研究分解了提示注入攻击对实际LLM集成应用的复杂性和影响。最初,我们对十种商业应用进行了探索性分析,突出当前攻击策略在实践中的局限性。受这些限制的启发,我们随后提出了HouYi,一种新的黑盒提示注入攻击技术,该技术受到传统网络注入攻击的启发。HouYi被划分为三个关键要素:无缝整合的预构建提示、诱导上下文分区的注入提示以及设计用于实现攻击目标的恶意负载。利用HouYi,我们揭示了之前未知且严重的攻击结果,如不受限制的任意LLM使用和简单的应用提示窃取。我们在36个实际的LLM集成应用上部署HouYi,并发现31个应用易受提示注入攻击。10家供应商验证了我们的发现,包括Notion,其可能影响数百万用户。我们的调查揭示了提示注入攻击的潜在风险以及可能的缓解策略。

英文摘要:

Large Language Models (LLMs), renowned for their superior proficiency in language comprehension and generation, stimulate a vibrant ecosystem of applications around them. However, their extensive assimilation into various services introduces significant security risks. This study deconstructs the complexities and implications of prompt injection attacks on actual LLM-integrated applications. Initially, we conduct an exploratory analysis on ten commercial applications, highlighting the constraints of current attack strategies in practice. Prompted by these limitations, we subsequently formulate HouYi, a novel black-box prompt injection attack technique, which draws inspiration from traditional web injection attacks. HouYi is compartmentalized into three crucial elements: a seamlessly-incorporated pre-constructed prompt, an injection prompt inducing context partition, and a malicious payload designed to fulfill the attack objectives. Leveraging HouYi, we unveil previously unknown and severe attack outcomes, such as unrestricted arbitrary LLM usage and uncomplicated application prompt theft. We deploy HouYi on 36 actual LLM-integrated applications and discern 31 applications susceptible to prompt injection. 10 vendors have validated our discoveries, including Notion, which has the potential to impact millions of users. Our investigation illuminates both the possible risks of prompt injection attacks and the possible tactics for mitigation.

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

↑