# Prompt-injection-dataset

- **ID:** 322
- **Kind:** dataset
- **URL:** https://huggingface.co/datasets/neuralchemy/Prompt-injection-dataset
- **Authors:** neuralchemy
- **Venue:** neuralchemy
- **Published:** 2026
- **Source:** huggingface
- **Language:** en
- **Access:** free
- **License:** apache-2.0
- **License family:** Permissive (auto-classified)
- **Added:** 2026-07-17
- **Verified:** 2026-07-17
- **Research status:** done
- **Page:** https://papers.projxon.ai/entries/322

## Summary

A high-quality, leakage-free binary classification dataset for detecting **prompt injection** and **jailbreak** attacks against Large Language Models.

## Attributes

- **Purpose:** text-classification
- **Scale:** 10K<n<100K
- **Time period:** created 2026-01-25; updated 2026-04-23
- **Author type:** unknown

## From the source (fetched 2026-10-03)

- **Repository:** neuralchemy/Prompt-injection-dataset (Hugging Face)
- **Created:** Jan 25, 2026 (Hugging Face)
- **Last updated:** Apr 23, 2026 (Hugging Face)
- **Downloads (last month):** 3,059 (Hugging Face)
- **Likes:** 32 (Hugging Face)
- **Size:** 10K to 100K rows (Hugging Face)
- **Modalities:** text (Hugging Face)
- **Tasks:** text-classification (Hugging Face)
- **Formats:** parquet, optimized-parquet (Hugging Face)

## Dataset profile

- **Scale:** core train/val/test 4391/941/942; full train 14036 with same val/test. Independently core-train 2650 pos / 1741 neg; 31 categories. Hub usedStorage ~2.2 MB.
- **Format:** Parquet configs core|full. Columns: text, label, category, source, severity, group_id, augmented, tags
- **Type:** Labeled text classification (security)
- **License:** apache-2.0
- **Cost:** Free
- **Languages:** English prompts
- **Modality:** Text only
- **Domain:** LLM prompt injection / jailbreak detection; AI safety classifiers
- **Time period:** HF createdAt 2026-01-25; lastModified 2026-04-23. Taxonomy includes 2025 attack styles per card.
- **Purpose:** Train and eval binary malicious-vs-benign prompt detectors with group-aware leakage-free splits
- **Used for:** Classical ML and transformer detectors; card reports RF 96.3% / DeBERTa-v3-small 95.1% test accuracy
- **Authors:** NeurAlchemy originals + HackAPrompt + WildGuard/JudgeComparison + HarmBench (+ benign counterparts) + hand-crafted hard negatives (licenses mixed; package Apache-2.0)
- **Bias:** Independently core-train skewed to benign + direct_injection (1699+1397). Jailbreak 291; many rare categories <30. ~60/40 malicious/benign claimed on card.
- **Text quality:** High for a security classifier set. Sampled benign hard-negatives look realistic; group_id + augmented flags support clean eval. Card claims automated zero-leakage verification across 16918 samples.
- **Sample size:** core ~6.3K; full ~15.9K across splits
- **Long context:** Low-Medium (some context_overflow / many_shot categories by design)
- **Intermediate steps:** No (single-turn classification labels)
- **Idea quality:** High (leakage-aware splits + severity/category metadata + published baselines)
- **Novelty:** Medium-High (well-engineered 2026 packaging of injection taxonomy with group splits)
- **Text conversion:** High
- **Collection method:** Download
- **Static:** Mostly (lastModified 2026-04-23)
- **Processed:** Yes (curation, augmentation, group splits)

## Links

- Dataset: https://huggingface.co/datasets/neuralchemy/Prompt-injection-dataset
- Related: https://huggingface.co/datasets/neuralchemy/Prompt-injection-dataset
- Related: https://huggingface.co/datasets/neuralchemy/prompt-injection-Threat-Matrix
- Related: https://huggingface.co/neuralchemy/prompt-injection-detector
- Related: https://huggingface.co/neuralchemy/prompt-injection-deberta

## Research notes

- downloads=2318; likes=24
- Discord msg 1490732147580076082. Companion Threat-Matrix dataset linked on card. Strong leftover candidate.

## Similar entries

- [Invent a Dataset: Measuring Dataset Generation Abilities With Zero Seed Data](https://papers.projxon.ai/entries/834) (paper, #834)
- [X-Voice-Dataset-Train](https://papers.projxon.ai/entries/385) (dataset, #385)
- [DeepScaleR-Preview-Dataset](https://papers.projxon.ai/entries/1) (dataset, #1)
- [Jupyter Agent Dataset](https://papers.projxon.ai/entries/72) (dataset, #72)
- [Invent a Dataset: Training Data for Custom Models](https://papers.projxon.ai/entries/701) (post, #701)
- [GEPA: Reflective Prompt Evolution Can Outperform Reinforcement Learning](https://papers.projxon.ai/entries/648) (paper, #648)
