Ignore This Title and HackAPrompt: Exposing Systemic Vulnerabilities of LLMs through a Global Scale Prompt Hacking Competition

Sander Schulhoff, Jeremy Pinto, Anaum Khan, Louis-François Bouchard, Chenglei Si +5 more
10/24/2023
cs.CRcs.AIcs.CL

No official code found. Best implementation: trigaten/Learn_Prompting (4,729 stars, last commit 2025-01-14). 1 more below.

Abstract

Large Language Models (LLMs) are deployed in interactive contexts with direct user engagement, such as chatbots and writing assistants. These deployments are vulnerable to prompt injection and jailbreaking (collectively, prompt hacking), in which models are manipulated to ignore their original instructions and follow potentially malicious ones. Although widely acknowledged as a significant security threat, there is a dearth of large-scale resources and quantitative studies on prompt hacking. To address this lacuna, we launch a global prompt hacking competition, which allows for free-form human input attacks. We elicit 600K+ adversarial prompts against three state-of-the-art LLMs. We describe the dataset, which empirically verifies that current LLMs can indeed be manipulated via prompt hacking. We also present a comprehensive taxonomical ontology of the types of adversarial prompts.

View on arXivView PDF

Code Implementations(2)

Prompt Engineering, Generative AI, and LLM Guide by Learn Prompting | Join our discord for the largest Prompt Engineering learning community

4,729666CSS, MDXOct 25, 20221 years agoNOASSERTION
chatgptchatgpt-apideep-learninggpt-3gpt-4+12 more
MIT
215Shell, PythonDec 27, 20222 years agoMIT

Similar Papers

Cite this paper

@article{schulhoff2023ignore,
  title  = {Ignore This Title and HackAPrompt: Exposing Systemic Vulnerabilities of LLMs through a Global Scale Prompt Hacking Competition},
  author = {Sander Schulhoff and Jeremy Pinto and Anaum Khan and Louis-François Bouchard and Chenglei Si and Svetlina Anati and Valen Tagliabue and Anson Liu Kost and Christopher Carnahan and Jordan Boyd-Graber},
  year   = {2023},
  eprint = {2311.16119},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2311.16119v3}
}

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/2311.16119.svg)](https://codeofpaper.com/paper/2311.16119)

Discussion