[논문 리뷰] Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection
본 논문은 Indirect Prompt Injection(IPI)를 LLM-통합 애플리케이션에 대한 새로운 공격 벡터로 제시하고, 검색된 데이터가 원격으로 모델을 제어하는 프롬프트를 주입할 수 있음을 보여주며, Bing Chat과 합성 시스템에서 시연하고 위협 분류 체계와 시연을 제공한다.
Large Language Models (LLMs) are increasingly being integrated into various applications. The functionalities of recent LLMs can be flexibly modulated via natural language prompts. This renders them susceptible to targeted adversarial prompting, e.g., Prompt Injection (PI) attacks enable attackers to override original instructions and employed controls. So far, it was assumed that the user is directly prompting the LLM. But, what if it is not the user prompting? We argue that LLM-Integrated Applications blur the line between data and instructions. We reveal new attack vectors, using Indirect Prompt Injection, that enable adversaries to remotely (without a direct interface) exploit LLM-integrated applications by strategically injecting prompts into data likely to be retrieved. We derive a comprehensive taxonomy from a computer security perspective to systematically investigate impacts and vulnerabilities, including data theft, worming, information ecosystem contamination, and other novel security risks. We demonstrate our attacks' practical viability against both real-world systems, such as Bing's GPT-4 powered Chat and code-completion engines, and synthetic applications built on GPT-4. We show how processing retrieved prompts can act as arbitrary code execution, manipulate the application's functionality, and control how and if other APIs are called. Despite the increasing integration and reliance on LLMs, effective mitigations of these emerging threats are currently lacking. By raising awareness of these vulnerabilities and providing key insights into their implications, we aim to promote the safe and responsible deployment of these powerful models and the development of robust defenses that protect users and systems from potential attacks.
연구 동기 및 목표
- LLM-활성화 시스템에서 새로운 위협으로서 Indirect Prompt Injection을 동기 부여하고 정의한다.
- LLM-통합 애플리케이션에서 IPI 위협을 체계적으로 분석하기 위한 분류 체계를 개발한다.
- 실세계 및 합성 시스템에서 IPI 공격의 실용적 가능성을 시연하고 방어 필요성을 강조한다.
- 추가 보안 연구를 촉진하기 위해 시연과 공격 프롬프트를 공개 저장소에 공개한다.
제안 방법
- 데이터 소스로부터 회수된 프롬프트가 임의의 지시로 작용할 수 있음을 공식화하고 Indirect Prompt Injection(IPI)을 도입한다.
- 컴퓨터 보안 관점에서 IPI 공격 표면과 위협 클래스를 구성한다.
- 주입을 테스트하기 위해 검색(Search), 보기(View), URL 검색 Retrieve URL, 이메일 읽기/보내기(Read/Send Email), 메모리(Memory)와 같은 인터페이스를 갖춘 합성 LLM-활성화 애플리케이션을 만든다.
- 실세계 시스템(Bing Chat)과 합성 GPT-4 기반 애플리케이션에서 IPI 공격을 평가하여 실용적 가능성을 보여준다.
- 정보 수집, 사기, 악성코드, 콘텐츠 조작, 가용성/중단을 포함한 공격 시나리오를 시연한다.
실험 결과
연구 질문
- RQ1검색된 데이터를 통해 주입된 간접 프롬프트 주입이 원격으로 LLM-통합 애플리케이션을 위험에 빠뜨릴 수 있는가?
- RQ2IPI가 가능하게 하는 위협의 분류(예: 데이터 절도, 조작, 사기, 악성코드, DoS)와 현실 시스템에서의 발현 방식은?
- RQ3실세계 시스템(예: Bing Chat)과 합성 배포가 IPI에 얼마나 취약하며 어떤 방어가 필요한가?
- RQ4검색-강화 LLM 배치에서 IPI가 데이터 프라이버시, 시스템 무결성 및 가용성에 미치는 영향은?
주요 결과
- IPI는 검색된 프롬프트를 통해 LLM 동작을 조정할 수 있으며, RAG 스타일 환경에서 데이터와 지시가 불가분하게 결합된다.
- 직접 인터페이스에서 필터링된 프롬프트도 검색된 데이터를 통해 간접 주입될 때 여전히 효과적일 수 있다.
- 주입된 프롬프트는 대화에 걸쳐 지속될 수 있으며 원격 제어나 지속성을 가능하게 할 수 있다.
- 시연은 Bing Chat와 합성 시스템에 대한 IPI의 실현 가능성을 보여주며 데이터 유출, 사기, 악성코드 배포와 같은 위험을 강조한다.
- 본 연구는 강력한 완화책의 부재와 검색 강화된 LLM의 더 안전한 배치 관행의 필요성을 강조한다.
- 저자는 시연과 공격 프롬프트를 포함한 GitHub 저장소를 제공하여 지속적 연구를 지원한다.
이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.