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)|2024. 02. 28.
Blockchain Technology Applications and SecurityComputer Science인용 수 17
한 줄 요약

이 논문은 실제 세계의 LLM 시스템에서 보안을 분석하기 위한 정보 흐름 기반 프레임워크를 제시하고 OpenAI GPT-4를 시연한 LLM 및 프런트엔드, 샌드박스, 웹 도구와의 구성 요소 통합에서 취약점을 식별한다.

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 행동에 맞게 적용한다.
  • 샌드박스, 웹 도구, 프런트엔드와의 액션(LLM 출력) 및 상호작용에 초점을 맞춘 GPT-4의 취약점 분석을 수행한다.
  • 제한을 우회하는 엔드-투-엔드 공격 시나리오를 시연한다.

실험 결과

연구 질문

  • RQ1정보 흐름 제약은 LLM 기반 시스템의 보안을 체계적으로 분석하는 데 어떻게 활용될 수 있는가?
  • RQ2실제 LLM 생태계에서 LLM과 보조 시설(Sandbox, Frontend, Web Tools) 간의 상호작용에서 어떤 취약점이 발생하는가?
  • RQ3적대적·간접 프롬프트 전략에 대한 OpenAI GPT-4의 안전 제약은 얼마나 강건한가?
  • RQ4다 COMPONENT 간의 상호작용을 이용한 엔드-투-엔드 공격이 사용자 입력을 조작하지 않고 민감한 데이터를 누출할 수 있는가?

주요 결과

  • LLM의 액션에 대한 제약은 탈옥(jailbreaking) 및 간접 프롬프트 전략에 의해 우회될 수 있다.
  • 세션 간 파일 업로드 누출로 이어질 수 있는 샌드박스의 세션 간 접근이 있다.
  • 웹 도구를 통한 간접 프롬프트 주입은 LLM이 외부 지시를 실행하게 만들 수 있다.
  • 안전한 URL 검사(safe URL checks)와 같은 제약은 확인 절차를 우회하는 새로운 공격 전략에 취약하다.
  • 저자들은 사용자의 채팅 기록을 GPT-4 직접 접근 없이 불법적으로 얻는 엔드-투-엔드 공격을 시연한다.

이 논문 읽기

누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.

누빈트에서 이 논문 읽기

이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.