[论文解读] A New Era in LLM Security: Exploring Security Concerns in Real-World LLM-based Systems
本文提出一个基于信息流的框架,用于分析实际世界 LLM 系统的安全性,并在 LLM 及其与 Frontend、Sandbox、Web Tools 等组件的集成中识别漏洞,示例基于 OpenAI GPT-4。
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/
研究动机与目标
- 提出一个基于信息流的表述,用于分析 LLM 系统的安全性。
- 将 LLM 系统的攻击面分解为对动作和交互的多层、多约束条件。
- 在 LLM 的概率性特征下评估安全约束的鲁棒性。
- 将该框架应用于 OpenAI GPT-4,以揭示其生态系统中的漏洞。
提出的方法
- 使用对象对 LLM 系统进行建模(核心 LLM 和支持设施),并定义动作(对象内处理)与交互(对象之间)。
- 定义一个基于约束的安全框架,在动作和交互上具有多层约束。
- 采用三步分析:确定必要约束、验证现有约束、在对抗环境下评估鲁棒性。
- 以信息流控制的概念为基础,将其适应于概率性 LLM 行为。
- 对 GPT-4 进行漏洞分析,重点关注动作(LLM 输出)和交互(与 Sandbox、Web Tools、Frontend 的交互)。
- 演示可绕过约束的端到端攻击场景。
实验结果
研究问题
- RQ1如何利用信息流约束系统地分析基于 LLM 的系统的安全性?
- RQ2在真实世界的 LLM 生态系统中,LLM 与辅助设施(Sandbox、Frontend、Web Tools)之间的交互会暴露哪些漏洞?
- RQ3OpenAI GPT-4 的安全约束在对抗性和间接提示策略下有多鲁棒?
- RQ4是否存在利用多组件交互的端到端攻击,在不操纵用户输入的情况下泄露敏感数据?
主要发现
- 对 LLM 动作的约束可以通过越狱和间接提示策略被绕过。
- Sandbox 跨会话访问可能导致跨会话泄露上传的文件。
- 通过 Web Tools 的间接提示注入可能导致 LLM 执行外部指令。
- 诸如 Safe URL 检查之类的约束容易受到绕过确认的新型攻击策略的影响。
- 作者演示了一种端到端攻击,未直接访问 GPT-4 即可非法获取用户的聊天记录。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。