extract 0 0 0

shanemhamilton/llm-prompt-guard-tuning-corpus

published by @shanemhamilton

Alignment dataset tracked in the /datasets sub-catalog.

Lifetime downloads
57
Last 30 days
22
Likes
-
Size
185 KB
Created on HF
2026-09-11
Age
1 months ago

Description

llm-prompt-guard tuning corpus

Prompt-injection detection corpus used to tune the

llm-prompt-guard pattern

set. Two JSONL files:

attacks.jsonl — 198 rows, label: 1. Injection payloads grouped by

attack category (instruction override, role hijacking, jailbreak,

unicode/homoglyph/tag-block smuggling, encoding bypass, and more).

benign.jsonl — 1,310 rows, label: 0. Ordinary user input across

seven domains, including phrasing that superficially resembles an

attack ("ignore the… See the full description on the dataset page: https://huggingface.co/datasets/shanemhamilton/llm-prompt-guard-tuning-corpus.

Tags

task_categories:text-classificationlicense:mitsize_categories:1K<n<10Kregion:usprompt-injectionllm-security

README current version from Hugging Face


license: mit
task_categories:

  • text-classification
    tags:
  • prompt-injection
  • llm-security
    size_categories:
  • 1K<n<10K

llm-prompt-guard tuning corpus

Prompt-injection detection corpus used to tune the
llm-prompt-guard pattern
set. Two JSONL files:

  • attacks.jsonl — 198 rows, label: 1. Injection payloads grouped by
    attack category (instruction override, role hijacking, jailbreak,
    unicode/homoglyph/tag-block smuggling, encoding bypass, and more).
  • benign.jsonl — 1,310 rows, label: 0. Ordinary user input across
    seven domains, including phrasing that superficially resembles an
    attack ("ignore the warning on the bottle") but isn't one.

How the corpora were built

  • Attack corpus (attacks.jsonl) is synthetic and curated by hand —
    no scraped or real attacker artifacts. Each entry is a minimal payload
    representative of one bypass technique, not a naturalistic prompt.
  • Benign corpora (benign.jsonl) were written independently per
    domain (skincare product reviews, AI-literate users, developer chat,
    education, SQL assistant, support, pasted transcripts) without
    reference to the detector's pattern list — the goal is to catch false
    positives on real usage, not to write text that happens to avoid the
    patterns.

Label semantics

Field Meaning
text The input string.
label 1 = injection attempt, 0 = benign.
category (attacks only) Attack technique, e.g. "instruction-override".
expected (attacks only) "detect" or "known-miss" — see below.
domain (benign only) Source domain, e.g. "developer-chat", "support".

known-miss

A small subset of attacks.jsonl is labeled expected: "known-miss".
These document attack shapes the library's normalization/pattern layer
explicitly cannot catch by design — pure semantic paraphrase, leet
substitution, base64/ROT13 encoding, or tag-space-only concatenation
with no matching keyword. They're included for completeness and
transparency, not as a claim of detection. Exclude them from a
detection-rate metric unless you're specifically evaluating that gap.

Publishing (not done by this script)

This directory only stages files locally — nothing here has been
uploaded. To publish, a maintainer with a Hugging Face account and the
huggingface-cli tool installed and authenticated (huggingface-cli login) would create the dataset repo and run:

huggingface-cli upload shanemhamilton/llm-prompt-guard-tuning-corpus \
  benchmarks/hf/out/attacks.jsonl attacks.jsonl \
  --repo-type dataset

huggingface-cli upload shanemhamilton/llm-prompt-guard-tuning-corpus \
  benchmarks/hf/out/benign.jsonl benign.jsonl \
  --repo-type dataset

huggingface-cli upload shanemhamilton/llm-prompt-guard-tuning-corpus \
  benchmarks/hf/README.md README.md \
  --repo-type dataset

What's not included

This is the tuning set — the corpus patterns are allowed to be
tuned against. It does not include the held-out evaluation set
(benchmarks/heldout/, see benchmarks/HELDOUT.md), which exists
specifically to measure the pattern set without ever being read while
writing it. Publishing the held-out set here would defeat its purpose.

README history 4 revisions

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-11Add dataset card77605883.5 KB
    Loading...
  2. 2026-09-11Add benign corpora (1310 rows, 7 domains)095542c0 B
    Loading...
  3. 2026-09-11Add attack corpus (198 rows)62248480 B
    Loading...
  4. 2026-09-11initial commitceba8e00 B
    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.

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("shanemhamilton/llm-prompt-guard-tuning-corpus")
Raw snapshot (Python)
from huggingface_hub import snapshot_download
snapshot_download(repo_id="shanemhamilton/llm-prompt-guard-tuning-corpus", repo_type="dataset")
git clone (requires git-lfs)
git clone https://huggingface.co/datasets/shanemhamilton/llm-prompt-guard-tuning-corpus
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