Raccoon: Prompt Extraction Benchmark of LLM-Integrated Applications

Junlin Wang, Tianyi Yang, Roy Xie, Bhuwan Dhingra
6/10/2024
cs.CRcs.CL

Official code: M0gician/RaccoonBench (18 stars, GPL-3.0, last commit 2026-04-09).

Abstract

With the proliferation of LLM-integrated applications such as GPT-s, millions are deployed, offering valuable services through proprietary instruction prompts. These systems, however, are prone to prompt extraction attacks through meticulously designed queries. To help mitigate this problem, we introduce the Raccoon benchmark which comprehensively evaluates a model's susceptibility to prompt extraction attacks. Our novel evaluation method assesses models under both defenseless and defended scenarios, employing a dual approach to evaluate the effectiveness of existing defenses and the resilience of the models. The benchmark encompasses 14 categories of prompt extraction attacks, with additional compounded attacks that closely mimic the strategies of potential attackers, alongside a diverse collection of defense templates. This array is, to our knowledge, the most extensive compilation of prompt theft attacks and defense mechanisms to date. Our findings highlight universal susceptibility to prompt theft in the absence of defenses, with OpenAI models demonstrating notable resilience when protected. This paper aims to establish a more systematic benchmark for assessing LLM robustness against prompt extraction attacks, offering insights into their causes and potential countermeasures. Resources of Raccoon are publicly available at https://github.com/M0gician/RaccoonBench.

View on arXivView PDF

Code Implementations(1)

GPL-3.0

[ACL 2024] Raccoon: Prompt Extraction Benchmark of LLM-Integrated Applications

183PythonMay 23, 20246 months agoGPL-3.0
llmnlpprompt

Similar Papers

Cite this paper

@article{wang2024raccoon,
  title  = {Raccoon: Prompt Extraction Benchmark of LLM-Integrated Applications},
  author = {Junlin Wang and Tianyi Yang and Roy Xie and Bhuwan Dhingra},
  year   = {2024},
  eprint = {2406.06737},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2406.06737v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2406.06737.svg)](https://codeofpaper.com/paper/2406.06737)

Discussion