Skip to main content
QUICK REVIEW

[Paper 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 Science17 citations
TL;DR

The paper presents an information-flow based framework to analyze security in real-world LLM systems and identifies vulnerabilities across both the LLM and its integration with components like Frontend, Sandbox, and Web Tools, demonstrated on 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/

Motivation & Objective

  • Propose an information-flow based formulation to analyze LLM system security.
  • Decompose the LLM system attack surface into multi-layer, multi-object constraints on actions and interactions.
  • Assess the robustness of security constraints given the probabilistic nature of LLMs.
  • Apply the framework to OpenAI GPT-4 to uncover vulnerabilities in its ecosystem.

Proposed method

  • Model the LLM system using objects (core LLM and supporting facilities) and define actions (within-object processing) and interactions (between objects).
  • Define a constraint-based security framework with multi-layer constraints over actions and interactions.
  • Adopt a three-step analysis: identify necessary constraints, verify existing constraints, and evaluate robustness under adversarial environments.
  • Ground the framework in information flow control concepts and adapt them to probabilistic LLM behavior.
  • Conduct vulnerability analysis on GPT-4 focusing on action (LLM outputs) and interaction (with Sandbox, Web Tools, Frontend).
  • Demonstrate end-to-end attack scenarios that bypass constraints.

Experimental results

Research questions

  • RQ1How can information flow constraints be used to systematically analyze security in LLM-based systems?
  • RQ2What vulnerabilities arise in the interaction between LLMs and auxiliary facilities (Sandbox, Frontend, Web Tools) within real-world LLM ecosystems?
  • RQ3How robust are OpenAI GPT-4's safety constraints against adversarial and indirect prompt strategies?
  • RQ4Can end-to-end attacks leveraging multi-component interactions leak sensitive data without manipulating user inputs?

Key findings

  • Constraints over LLM actions can be bypassed by jailbreaking and indirect prompt strategies.
  • Sandbox cross-session access can lead to leakage of uploaded files across sessions.
  • Indirect and indirect prompt injection through Web Tools can cause LLMs to execute external instructions.
  • Constraints like Safe URL checks are vulnerable to novel attack strategies that bypass confirmations.
  • The authors demonstrate an end-to-end attack to illicitly obtain a user’s chat history without direct GPT-4 access.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.