abliteration.org
Get the app

Two ways to read this site

Technical mode is the default: exact terms and codes, for engineers, researchers, journalists and companies. Simple mode gives the same facts in plain words, for anyone who wants a model that runs on their own computer. You can switch at any time at the top of the page.

technical
MLX weights for Apple silicon (M1 or later), usually quantized to 4 or 8 bits.
simple
Made for Macs with Apple silicon (M1 or newer), usually compressed to 4 or 8 bits.

reshabhs/SPML_Chatbot_Prompt_Injection

published by @reshabhs

No longer matches the catalog's relevance filter since 2026-11-21; still on Hugging Face. We keep the record as we last saw it.No longer fits the catalog's topic since 2026-11-21. It is still on Hugging Face. We keep the record as we last saw it. Checked 2026-12-06.

Harmful and harmless prompt sets, contrastive pairs, and jailbreak and attack corpora.Sets of harmful and harmless requests, pairs of opposite examples, and attack datasets.

task_categories:text-classificationlanguage:enlicense:mitsize_categories:10K<n<100Kformat:csvmodality:tabularmodality:textlibrary:datasets +11 more
Lifetime downloads
27.5K
Last 30 days
1.7K
Likes
34
Size
29.1 MB

Description

SPML Chatbot Prompt Injection Dataset

Arxiv Paper

Introducing the SPML Chatbot Prompt Injection Dataset: a robust collection of system prompts designed to create realistic chatbot interactions, coupled with a diverse array of annotated user prompts that attempt to carry out prompt injection attacks. While other datasets in this domain have centered on less practical chatbot scenarios or have limited themselves to "jailbreaking" – just one aspect of prompt injection – our dataset… See the full description on the dataset page: https://huggingface.co/datasets/reshabhs/SPML_Chatbot_Prompt_Injection.

Used by uncensored models 1 in catalog

Models in our catalog that declare this dataset in their YAML `datasets:` field. Sorted by downloads. This back-reference is unique to abliteration.org: Hugging Face does not surface it.Models in our catalog whose page lists this dataset as training data. Most downloaded first. Hugging Face does not show this list.

MetadataDetails

License
mit
Language
en
Created on HFCreated
2024-03-31 · 2 years ago
Size category
10K<n<100K
ModalitiesData types
tabulartext
Formats
csv
LibrariesTools
datasetspandasmlcroissantpolars
ArXivPaper

Related datasets same stage · Extractsame step · Finding refusals

Read further

Total size
29.1 MB
Files
3
Formats
csv
Head
02ce808
Last updated on HFLast updated
2024-04-01

Download the dataset

Copy any of these snippets into your notebook or terminal. All three fetch directly from Hugging Face using your own credentials.Each of these lines of code downloads the dataset straight from Hugging Face, with your own Hugging Face login.

Recommended: datasets library (Python)
from datasets import load_dataset
ds = load_dataset("reshabhs/SPML_Chatbot_Prompt_Injection")
Raw snapshot (Python)All files (Python)
from huggingface_hub import snapshot_download
snapshot_download(repo_id="reshabhs/SPML_Chatbot_Prompt_Injection", repo_type="dataset")
git clone (requires git-lfs)With git (needs git-lfs)
git clone https://huggingface.co/datasets/reshabhs/SPML_Chatbot_Prompt_Injection

Files by folder from our last crawlfrom our last check

top level 3 files 29.1 MB
.gitattributes 2.4 KB file download
README.md 6.1 KB md download
spml_prompt_injection.csv 29.1 MB csv download

READMEAuthor's description current version from Hugging Faceas it is now on Hugging Face

SPML Chatbot Prompt Injection Dataset

Arxiv Paper

Introducing the SPML Chatbot Prompt Injection Dataset: a robust collection of system prompts designed to create realistic chatbot interactions, coupled with a diverse array of annotated user prompts that attempt to carry out prompt injection attacks. While other datasets in this domain have centered on less practical chatbot scenarios or have limited themselves to "jailbreaking" – just one aspect of prompt injection – our dataset offers a more comprehensive approach. It not only features realistic chatbot definition and user prompts but also seamlessly integrates with existing prompt injection datasets.

Our primary focus is on the actual content of prompt injection payloads, as opposed to the methodologies used to execute the attacks. We are convinced that honing in on the detection of the payload content will yield a more robust defense strategy than one that merely identifies varied attack techniques.

Dataset Description

Field Description
1 System Prompt These are the intended prompts for the chatbot, designed for use in realistic scenarios.
2 User Prompt This field contains user inputs that query the chatbot with the system prompt described in (1).
3 Prompt Injection This is set to 1 if the user input provided in (2) attempts to perform a prompt injection attack on the system prompt (1).
4 Degree This measures the intensity of the injection attack, indicating the extent to which the user prompt violates the chatbot's expected operational parameters.
5 Source This entry cites the origin of the attack technique used to craft the user prompt.

Dataset Generation Methodology

Our process begins with an initial set of system prompts derived from leaked system prompts from several widely-used chatbots powered by LLMs. We employ GPT-4 to extrapolate from these cases, crafting additional system prompts that emulate the style of the original seeds across diverse subject matters. These prompts are then used to create corresponding valid user input for each generated system prompt. To facilitate the creation of prompts for prompt injection attacks, we dissect each generated system prompt to identify a set of guiding principles or rules they aim to uphold, such as 'speak courteously'. GPT-4 is then tasked with producing an inverse list that semantically negates each rule; for instance, 'speak courteously' is countered with 'speak rudely'. From this inverse list, multiple rules are selected at random—the quantity of which dictates the complexity of the attack (degree)—and these are provided to GPT-4 alongside an 'attack seed prompt'. The objective is to craft a user prompt that aligns with the chosen contrarian rules but retains the stylistic nuances of the attack seed prompt. This tailored seed prompt may also integrate various other attack strategies, enhancing the sophistication and realism of the generated scenarios.

FAQs

  • Should I use this dataset to train my prompt injection detection model?
    It is not advisable to train prompt injection detection models on this dataset. Typically, such models look for patterns in user prompts to detect prompt injections. However, the injection payloads in our dataset are subtle and may not be universally malicious. Training your model on the combinations of system and user prompts from our dataset will not ensure generalization until the model understands how the system prompt can be violated by the user prompt. These models require exposure to a wide range of attack techniques, and since our dataset only includes a limited selection applied to diverse payloads, it is not an ideal training source.

  • Why were "jailbreak" datasets not included when jailbreaking is considered a form of prompt injection?
    For the purpose of this dataset, we only considered sources like TensorTrust and Gandalf that provided precise system prompts. The jailbreak dataset is composed of user prompts designed to create LLM responses that breach ethical guidelines without accompanying system prompts. At the time of development, we lacked a clearly defined system prompt to encapsulate this, hence its exclusion.

  • Why haven't attack prompts based on TensorTrust been released?
    The TensorTrust dataset is not licensed for distribution, which precludes us from releasing attack prompts derived from it.

Cite

@misc{sharma2024spml,
    title={SPML: A DSL for Defending Language Models Against Prompt Attacks},
    author={Reshabh K Sharma and Vinayak Gupta and Dan Grossman},
    year={2024},
    eprint={2402.11755},
    archivePrefix={arXiv},
    primaryClass={cs.LG}
}

Disclaimer

Please be aware that the dataset provided herein may contain information that could be potentially used for harmful purposes. By accessing and utilizing this data, you acknowledge and agree to bear sole responsibility for any such misuse. It is expected that all users will handle the dataset ethically. We, the providers of this data, expressly disclaim any liability for any improper or illicit use of the data and for any consequences that may arise as a result thereof.
By proceeding to use this dataset, you affirm your commitment to ethical conduct and responsible use of the data provided.

README historyEdit history 4 revisions4 edits

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.Every night we save the author's description of every dataset in the catalog. When it changes, we keep the new text and compare it with the one before. This shows what each author chose to say about their dataset, and how that changed over time.

  1. 2024-04-01 Add Disclaimer 02ce808 5.9 KB
    Loading...
  2. 2024-04-01 Update README.md 9a08ae8 5.3 KB
    Loading...
  3. 2024-04-01 Add SPML prompt injection data except TT derived fa92f0f 5.1 KB
    Loading...
  4. 2024-03-31 initial commit da2498e 21 B
    Loading...

Community discussions 2 threads · 2 open · 2 comments

Threads posted by the community on Hugging Face: bug reports, questions about usage, pull requests on the README, licence clarifications. Click any thread to expand and read the full conversation inline. Newest first.Conversations people started on Hugging Face: bug reports, questions about using the data, suggested changes to the author's description, questions about the licence. Open a thread to read it here. Newest first.

  1. 2024-08-05 PR Create LICENSE open 1 💬 #2
    Loading...
  2. 2024-04-02 [bot] Conversion to Parquet open 1 💬 #1
    Loading...
Download from Hugging Face

reshabhs/SPML_Chatbot_Prompt_Injection

Catalog is the map. Apps are the tools.

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

Every GGUF model page has an "Open in Abliteration" button that lets you pick a file, then opens it in the desktop app. No API keys, no subscription, no prompt leakage.Each model page in the format the app uses has an "Open in Abliteration" button to open a file in the desktop app. No API keys, no subscription, your requests stay on your computer.

Open in Abliteration