Skip to main content
QUICK REVIEW

[Paper Review] An Early Categorization of Prompt Injection Attacks on Large Language Models

Sippo Rossi, Alisia Marianne Michel|arXiv (Cornell University)|Jan 31, 2024
Topic ModelingComputer Science5 citations
TL;DR

This paper surveys and categorizes prompt injection attacks on large language models, proposing a two-branch taxonomy (direct and indirect injections) with six direct and four indirect classes and seventeen example attacks.

ABSTRACT

Large language models and AI chatbots have been at the forefront of democratizing artificial intelligence. However, the releases of ChatGPT and other similar tools have been followed by growing concerns regarding the difficulty of controlling large language models and their outputs. Currently, we are witnessing a cat-and-mouse game where users attempt to misuse the models with a novel attack called prompt injections. In contrast, the developers attempt to discover the vulnerabilities and block the attacks simultaneously. In this paper, we provide an overview of these emergent threats and present a categorization of prompt injections, which can guide future research on prompt injections and act as a checklist of vulnerabilities in the development of LLM interfaces. Moreover, based on previous literature and our own empirical research, we discuss the implications of prompt injections to LLM end users, developers, and researchers.

Motivation & Objective

  • Describe and document known prompt injection types to map vulnerabilities in LLM interfaces.
  • Provide a practical categorization to guide future research and defense design.
  • Offer implications for end users, developers, and researchers on mitigating prompt injection threats.

Proposed method

  • Systematically review academic and non-academic sources from May to September 2023 for prompt injection cases.
  • Group identified injections into two main branches: direct and indirect, then into six direct and four indirect classes.
  • Compile examples and map each to its target, objective, and prompt structure.
  • Test prompt injections in ChatGPT and GPT-3 to confirm feasibility and relevance while noting patched vulnerabilities.
Figure 1: The categorization process
Figure 1: The categorization process

Experimental results

Research questions

  • RQ1What types of prompt injection attacks exist?
  • RQ2Can these injections be grouped into coherent categories for systematic study?
  • RQ3What are the implications of prompt injections for LLM interfaces, services, and users?

Key findings

  • Identified and verified seventeen distinct prompt injection variations.
  • Two main branches: direct prompt injections aiming to bypass safety filters, and indirect prompt injections with varied attack vectors.
  • Direct injections are frequently used to circumvent restrictions and reveal internal prompts or instructions.
  • Indirect injections cover active, passive, user-driven, and virtual prompt injections with broader attack goals.
  • The categorization aids in systematic review and evaluation of LLM interfaces for vulnerabilities.
Figure 2: Full conversation for the example of a Prompt Injection with GPT-4
Figure 2: Full conversation for the example of a Prompt Injection with GPT-4

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.