Skip to main content
QUICK REVIEW

[論文レビュー] A New Era in LLM Security: Exploring Security Concerns in Real-World LLM-based Systems

Fangzhou Wu, Ning Zhang|arXiv (Cornell University)|Feb 28, 2024
Blockchain Technology Applications and SecurityComputer Science被引用数 17
ひとこと要約

この論文は、実世界の LLM システムのセキュリティを分析する情報流基盤の枠組みを提示し、LLM と Frontend、Sandbox、Web Tools などの統合を含む脆弱性を特定し、OpenAI GPT-4 で実証している。

ABSTRACT

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 を介した間接的・間接的なプロンプト注入により、LLMs が外部指示を実行してしまうことがある。
  • Safe URL チェックのような制約は、新規の攻撃戦略によって確認を回避されやすい。
  • 著者らは、ユーザーのチャット履歴を直接 GPT-4 へのアクセスなしに不正に取得するエンドツーエンド攻撃を実証している。

この論文を読む

Nubintのビューアで原文を開き、読みながら気になる箇所をすぐに質問できます。

Nubintでこの論文を読む

このレビューはAIが論文の原文をもとに作成しました。引用する前に原文をご確認ください。