extract 0 0 0

Cefress/in-the-wild-jailbreak-prompts

published by @Cefress

Alignment dataset tracked in the /datasets sub-catalog.

Lifetime downloads
120
Last 30 days
58
Likes
-
Size
17.5 MB
Created on HF
2026-09-16
Age
1 months ago

Description

In-The-Wild Jailbreak Prompts on LLMs

This is the official repository for the ACM CCS 2024 paper "Do Anything Now'': Characterizing and Evaluating In-The-Wild Jailbreak Prompts on Large Language Models by Xinyue Shen, Zeyuan Chen, Michael Backes, Yun Shen, and Yang Zhang.

In this project, employing our new framework JailbreakHub, we conduct the first measurement study on jailbreak prompts in the wild, with 15,140 prompts collected from December 2022 to December 2023 (including 1… See the full description on the dataset page: https://huggingface.co/datasets/Cefress/in-the-wild-jailbreak-prompts.

Tags

task_categories:text-generationlicense:mitsize_categories:10K<n<100Kformat:parquetmodality:tabularmodality:textlibrary:datasetslibrary:pandaslibrary:polarslibrary:mlcroissantarxiv:2308.03825region:us

README current version from Hugging Face


license: mit
dataset_info:

  • config_name: jailbreak_2023_05_07
    features:
    • name: platform
      dtype: string
    • name: source
      dtype: string
    • name: prompt
      dtype: string
    • name: jailbreak
      dtype: bool
    • name: created_at
      dtype: string
    • name: date
      dtype: string
    • name: community_id
      dtype: float64
    • name: community_name
      dtype: string
      splits:
    • name: train
      num_bytes: 1391612
      num_examples: 666
      download_size: 656975
      dataset_size: 1391612
  • config_name: jailbreak_2023_12_25
    features:
    • name: platform
      dtype: string
    • name: source
      dtype: string
    • name: prompt
      dtype: string
    • name: jailbreak
      dtype: bool
    • name: created_at
      dtype: string
    • name: date
      dtype: string
    • name: community
      dtype: string
    • name: community_id
      dtype: float64
    • name: previous_community_id
      dtype: float64
      splits:
    • name: train
      num_bytes: 3799875
      num_examples: 1405
      download_size: 1871641
      dataset_size: 3799875
  • config_name: regular_2023_05_07
    features:
    • name: platform
      dtype: string
    • name: source
      dtype: string
    • name: prompt
      dtype: string
    • name: jailbreak
      dtype: bool
    • name: created_at
      dtype: string
    • name: date
      dtype: string
      splits:
    • name: train
      num_bytes: 6534994
      num_examples: 5721
      download_size: 3264474
      dataset_size: 6534994
  • config_name: regular_2023_12_25
    features:
    • name: platform
      dtype: string
    • name: source
      dtype: string
    • name: prompt
      dtype: string
    • name: jailbreak
      dtype: bool
    • name: created_at
      dtype: string
    • name: date
      dtype: string
      splits:
    • name: train
      num_bytes: 24345310
      num_examples: 13735
      download_size: 12560543
      dataset_size: 24345310
      configs:
  • config_name: jailbreak_2023_05_07
    data_files:
    • split: train
      path: jailbreak_2023_05_07/train-*
  • config_name: jailbreak_2023_12_25
    data_files:
    • split: train
      path: jailbreak_2023_12_25/train-*
  • config_name: regular_2023_05_07
    data_files:
    • split: train
      path: regular_2023_05_07/train-*
  • config_name: regular_2023_12_25
    data_files:
    • split: train
      path: regular_2023_12_25/train-*
      task_categories:
  • text-generation
    size_categories:
  • 10K<n<100K

In-The-Wild Jailbreak Prompts on LLMs

This is the official repository for the ACM CCS 2024 paper "Do Anything Now'': Characterizing and Evaluating In-The-Wild Jailbreak Prompts on Large Language Models by Xinyue Shen, Zeyuan Chen, Michael Backes, Yun Shen, and Yang Zhang.

In this project, employing our new framework JailbreakHub, we conduct the first measurement study on jailbreak prompts in the wild, with 15,140 prompts collected from December 2022 to December 2023 (including 1,405 jailbreak prompts).

Check out our website here.

Disclaimer. This repo contains examples of harmful language. Reader discretion is recommended. This repo is intended for research purposes only. Any misuse is strictly prohibited.

Data

Prompts

Overall, we collect 15,140 prompts from four platforms (Reddit, Discord, websites, and open-source datasets) during Dec 2022 to Dec 2023. Among these prompts, we identify 1,405 jailbreak prompts. To the best of our knowledge, this dataset serves as the largest collection of in-the-wild jailbreak prompts.

Statistics of our data source. (Adv) UA refers to (adversarial) user accounts.

Platform Source # Posts # UA # Adv UA # Prompts # Jailbreaks Prompt Time Range
Reddit r/ChatGPT 163549 147 147 176 176 2023.02-2023.11
Reddit r/ChatGPTPromptGenius 3536 305 21 654 24 2022.12-2023.11
Reddit r/ChatGPTJailbreak 1602 183 183 225 225 2023.02-2023.11
Discord ChatGPT 609 259 106 544 214 2023.02-2023.12
Discord ChatGPT Prompt Engineering 321 96 37 278 67 2022.12-2023.12
Discord Spreadsheet Warriors 71 3 3 61 61 2022.12-2023.09
Discord AI Prompt Sharing 25 19 13 24 17 2023.03-2023.04
Discord LLM Promptwriting 184 64 41 167 78 2023.03-2023.12
Discord BreakGPT 36 10 10 32 32 2023.04-2023.09
Website AIPRM - 2777 23 3930 25 2023.01-2023.06
Website FlowGPT - 3505 254 8754 405 2022.12-2023.12
Website JailbreakChat - - - 79 79 2023.02-2023.05
Dataset AwesomeChatGPTPrompts - - - 166 2 -
Dataset OCR-Prompts - - - 50 0 -
Total 169,933 7,308 803 15,140 1,405 2022.12-2023.12

Load Prompts

You can use the Hugging Face Datasets library to easily load all collected prompts.

from datasets import load_dataset

dataset = load_dataset('TrustAIRLab/in-the-wild-jailbreak-prompts', 'jailbreak_2023_05_07', split='train')
# dataset = load_dataset('TrustAIRLab/in-the-wild-jailbreak-prompts', 'jailbreak_2023_12_25', split='train')
# dataset = load_dataset('TrustAIRLab/in-the-wild-jailbreak-prompts', 'regular_2023_05_07', split='train')
# dataset = load_dataset('TrustAIRLab/in-the-wild-jailbreak-prompts', 'regular_2023_12_25', split='train')

The original csv files are provided in our GitHub repo jailbreak_llms.

Note: If you plan to use this dataset to train models, preprocessing the prompt field to remove duplicates is recommended.
For more details, see this discussion.

Question Set

To evaluate the effectiveness of jailbreak prompts, we construct a question set comprising 390 questions across 13 forbidden scenarios adopted from OpenAI Usage Policy.

We exclude Child Sexual Abuse scenario from our evaluation and focus on the rest 13 scenarios, including Illegal Activity, Hate Speech, Malware Generation, Physical Harm, Economic Harm, Fraud, Pornography, Political Lobbying, Privacy Violence, Legal Opinion, Financial Advice, Health Consultation, and Government Decision.

from datasets import load_dataset

forbidden_question_set = load_dataset("TrustAIRLab/forbidden_question_set", split='train')

The original file of the question set is also provided in our GitHub repo jailbreak_llms.

Code

Evaluator - ChatGLMEval

cd code/ChatGLMEval
<!-- add data paths in df_path_list of run_evaluator.py -->
python run_evaluator.py

Semantics Visualization

Check code/semantics_visualization/visualize.ipynb

Ethics

We acknowledge that data collected online can contain personal information. Thus, we adopt standard best practices to guarantee that our study follows ethical principles, such as not trying to deanonymize any user and reporting results on aggregate. Since this study only involved publicly available data and had no interactions with participants, it is not regarded as human subjects research by our Institutional Review Boards (IRB). Nonetheless, since one of our goals is to measure the risk of LLMs in answering harmful questions, it is inevitable to disclose how a model can generate hateful content. This can bring up worries about potential misuse. However, we strongly believe that raising awareness of the problem is even more crucial, as it can inform LLM vendors and the research community to develop stronger safeguards and contribute to the more responsible release of these models.

We have responsibly disclosed our findings to related LLM vendors.

Citation

If you find this useful in your research, please consider citing:

@inproceedings{SCBSZ24,
      author = {Xinyue Shen and Zeyuan Chen and Michael Backes and Yun Shen and Yang Zhang},
      title = {{``Do Anything Now'': Characterizing and Evaluating In-The-Wild Jailbreak Prompts on Large Language Models}},
      booktitle = {{ACM SIGSAC Conference on Computer and Communications Security (CCS)}},
      publisher = {ACM},
      year = {2024}
}

License

jailbreak_llms is licensed under the terms of the MIT license. See LICENSE for more details.

README history 1 revision

Every night we snapshot the README of every dataset in the catalog. When the SHA changes we archive the new version and diff it against the last. This is the evolving thought record of the alignment-data field: what the author decided to say about the corpus, and how that framing shifted over time.

  1. 2026-09-16Duplicate from TrustAIRLab/in-the-wild-jailbreak-promptsa7499c59.3 KB
    Loading...

Used by abliterated models none yet

No abliterated models in our catalog have declared this dataset in their YAML metadata yet. This can mean the dataset is used but not declared, is used outside abliteration workflows, or is new. The link will populate automatically as models are indexed.

Community discussions 1 thread · 1 open · 1 comments

Threads posted by the community on Hugging Face: bug reports, questions about usage, pull requests on the README, license clarifications. Click any thread to expand and read the full conversation inline. Newest first.

  1. 2026-09-17[bot] Conversion to Parquetopen1 💬#1
    Loading...

Related datasets same stage · extract

Read further

Metadata

License
mit

Download the dataset

0

Copy any of these snippets into your notebook or terminal. All three fetch directly from Hugging Face using your own credentials.

Recommended: datasets library (Python)
from datasets import load_dataset
ds = load_dataset("Cefress/in-the-wild-jailbreak-prompts")
Raw snapshot (Python)
from huggingface_hub import snapshot_download
snapshot_download(repo_id="Cefress/in-the-wild-jailbreak-prompts", repo_type="dataset")
git clone (requires git-lfs)
git clone https://huggingface.co/datasets/Cefress/in-the-wild-jailbreak-prompts
Catalog is the map. Apps are the tools.

Run models on your own machine, not in the cloud.

Every model page has an "Open in Abliteration" button that hands the model directly to the first-party desktop client, at the quantization your rig can actually run. No API keys, no subscription, no prompt leakage.

Open in Abliteration