Skip to main content
QUICK 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 Science被引用 5
一句话总结

本文对大型语言模型的提示注入攻击进行综述和分类,提出一个二分分支的分类法(直接注入和间接注入),共有六个直接类别和四个间接类别,以及十七个示例攻击。

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.

研究动机与目标

  • 描述并记录已知的提示注入类型,以映射大语言模型接口的漏洞。
  • 提供一个实用的分类法,以指导未来的研究和防护设计。
  • 为终端用户、开发者和研究人员提供关于缓解提示注入威胁的影响与建议。

提出的方法

  • 系统化地回顾来自 2023 年 5 月至 9 月的学术与非学术来源中的提示注入案例。
  • 将识别的注入分为两大分支:直接注入和间接注入,然后再细分为六个直接类别和四个间接类别。
  • 整理示例并将每个示例映射到其目标、目的和提示结构。
  • 在 ChatGPT 和 GPT-3 上测试提示注入,以确认可行性和相关性,并记录已修补的漏洞。
Figure 1: The categorization process
Figure 1: The categorization process

实验结果

研究问题

  • RQ1存在哪些类型的提示注入攻击?
  • RQ2这些注入能被归类为便于系统研究的连贯类别吗?
  • RQ3提示注入对大语言模型接口、服务和用户的影响是什么?

主要发现

  • 识别并验证了十七种不同的提示注入变体。
  • 两大分支:直接提示注入,旨在绕过安全过滤器;以及具有多样攻击向量的间接提示注入。
  • 直接注入常用于规避限制并揭示内部提示或指示。
  • 间接注入涵盖主动、被动、用户驱动和虚拟提示注入,具有更广泛的攻击目标。
  • 该分类有助于对大语言模型接口的漏洞进行系统性综述与评估。
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

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。