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

LLM安全的新纪元:探索现实世界中基于LLM的系统的安全隐患

A New Era in LLM Security: Exploring Security Concerns in Real-World LLM-based Systems

University of Wisconsin-Madison(威斯康星大学麦迪逊分校);Washington University in St. Louis(圣路易斯华盛顿大学)

Fangzhou Wu, Ning Zhang, Somesh Jha, Patrick McDaniel, Chaowei Xiao

AI总结:

本文从信息流对齐视角建模LLM系统安全,提出多层多步骤攻击面分析方法,并在OpenAI GPT4上发现模型及组件集成漏洞,实现窃取聊天记录的端到端攻击。

摘要:

大语言模型(LLM)系统本质上是组合式的:单个LLM作为核心基础,并在其上叠加插件、沙箱等额外对象层。这类概率智能系统在展现巨大潜力的同时,其安全性也引发越来越多担忧。然而,现有LLM安全研究通常聚焦于单个LLM,并未从包含其他对象(如前端、Web工具、沙箱等)的LLM系统视角审视其生态系统。本文系统分析LLM系统的安全性,而非仅关注单个LLM。为此,我们以信息流为基础,将LLM系统安全表述为对LLM内部以及LLM与其他对象之间信息流对齐的约束。基于这一构造以及LLM独特的概率性质,LLM系统的攻击面可分解为三个关键组成部分:(1)多层安全分析;(2)约束是否存在的分析;(3)这些约束的鲁棒性分析。为落实这一新攻击面,我们提出一种多层、多步骤方法,并将其应用于最先进的LLM系统OpenAI GPT4。调查揭示了若干安全问题,不仅存在于LLM模型自身,也存在于其与其他组件的集成中。我们发现,尽管OpenAI GPT4设计了大量安全约束以提升安全特性,但这些约束仍易受攻击者攻击。为进一步证明所发现漏洞的现实威胁,我们构造了一种端到端攻击:攻击者可非法获取用户聊天记录,且无需操作用户输入或直接访问OpenAI GPT4。演示链接:https://fzwark.github.io/LLM-System-Attack-Demo/

英文摘要:

Large Language Model (LLM) systems are inherently compositional, with individual LLM serving as the core foundation with additional layers of objects such as plugins, sandbox, and so on. Along with the great potential, there are also increasing concerns over the security of such probabilistic intelligent systems. However, existing studies on LLM security often focus on individual LLM, but without examining the ecosystem through the lens of LLM systems with other objects (e.g., Frontend, Webtool, Sandbox, and so on). In this paper, we systematically analyze the security of LLM systems, instead of focusing on the individual LLMs. To do so, we build on top of the information flow and formulate the security of LLM systems as constraints on the alignment of the information flow within LLM and between LLM and other objects. Based on this construction and the unique probabilistic nature of LLM, the attack surface of the LLM system can be decomposed into three key components: (1) multi-layer security analysis, (2) analysis of the existence of constraints, and (3) analysis of the robustness of these constraints. To ground this new attack surface, we propose a multi-layer and multi-step approach and apply it to the state-of-art LLM system, OpenAI GPT4. Our investigation exposes several security issues, not just within the LLM model itself but also in its integration with other components. We found that although the OpenAI GPT4 has designed numerous safety constraints to improve its safety features, these safety constraints are still vulnerable to attackers. To further demonstrate the real-world threats of our discovered vulnerabilities, we construct an end-to-end attack where an adversary can illicitly acquire the user's chat history, all without the need to manipulate the user's input or gain direct access to OpenAI GPT4. Our demo is in the link: https://fzwark.github.io/LLM-System-Attack-Demo/

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

↑