arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2311.16153cs.CRcs.AI
收藏

识别并缓解LLM集成应用中的漏洞

Identifying and Mitigating Vulnerabilities in LLM-Integrated Applications

University of Washington(华盛顿大学);UIUC(伊利诺伊大学厄巴纳-香槟分校);Pennsylvania State University(宾夕法尼亚州立大学);University of Chicago(芝加哥大学)

Fengqing Jiang, Zhangchen Xu, Luyao Niu, Boxin Wang, Jinyuan Jia, Bo Li, Radha Poovendran

AI总结:

本文研究LLM集成应用中的新型攻击面,识别查询-响应协议中来自恶意开发者或外部攻击者的漏洞,并基于完整性、来源识别、攻击可检测性和效用保持四个属性提出轻量级威胁无关防御机制。

摘要:

大型语言模型(LLMs)越来越多地被部署为LLM集成应用(如代码补全和AI驱动的搜索)的服务后端。LLM集成应用充当中间件,利用领域特定知识细化用户查询,以更好地为LLM提供信息并增强响应。尽管存在众多机遇和益处,LLM集成应用也引入了新的攻击面。理解、最小化和消除这些新兴攻击面是一个新的研究领域。在这项工作中,我们考虑一种设置,其中用户和LLM通过中间的LLM集成应用进行交互。我们关注从用户查询开始、到LLM集成应用返回由服务后端LLM支持的查询响应结束的通信轮次。针对这一查询-响应协议,我们识别出可能源自恶意应用开发者或能够控制数据库访问、操纵和毒化对用户构成高风险数据的外部威胁发起者的潜在漏洞。成功利用所识别漏洞会导致用户收到针对威胁发起者意图定制的响应。我们针对由OpenAI GPT-3.5和GPT-4赋能的LLM集成应用评估了此类威胁。我们的实证结果表明,这些威胁能够有效绕过OpenAI的限制和审核政策,导致用户收到包含偏见、有毒内容、隐私风险和虚假信息的响应。为缓解这些威胁,我们识别并定义了安全LLM集成应用需要满足的四个关键属性,即完整性、来源识别、攻击可检测性和效用保持。基于这些属性,我们开发了一种轻量级、威胁无关的防御机制,可同时缓解内部和外部威胁。

英文摘要:

Large language models (LLMs) are increasingly deployed as the service backend for LLM-integrated applications such as code completion and AI-powered search. LLM-integrated applications serve as middleware to refine users' queries with domain-specific knowledge to better inform LLMs and enhance the responses. Despite numerous opportunities and benefits, LLM-integrated applications also introduce new attack surfaces. Understanding, minimizing, and eliminating these emerging attack surfaces is a new area of research. In this work, we consider a setup where the user and LLM interact via an LLM-integrated application in the middle. We focus on the communication rounds that begin with user's queries and end with LLM-integrated application returning responses to the queries, powered by LLMs at the service backend. For this query-response protocol, we identify potential vulnerabilities that can originate from the malicious application developer or from an outsider threat initiator that is able to control the database access, manipulate and poison data that are high-risk for the user. Successful exploits of the identified vulnerabilities result in the users receiving responses tailored to the intent of a threat initiator. We assess such threats against LLM-integrated applications empowered by OpenAI GPT-3.5 and GPT-4. Our empirical results show that the threats can effectively bypass the restrictions and moderation policies of OpenAI, resulting in users receiving responses that contain bias, toxic content, privacy risk, and disinformation. To mitigate those threats, we identify and define four key properties, namely integrity, source identification, attack detectability, and utility preservation, that need to be satisfied by a safe LLM-integrated application. Based on these properties, we develop a lightweight, threat-agnostic defense that mitigates both insider and outsider threats.

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

↑