← Datasets

Compare

Prompt-injection-dataset
#322 · remove
Code Vulnerability and Security DPO Dataset
#318 · remove
Kinddatasetdataset
Published20262024
Licenseapache-2.0apache-2.0
License familyPermissivePermissive
Accessfreefree
Language codesen—
Modalitiestextcode, text
Size10K to 100K rows1K to 10K rows
Downloads (last month)3,0591,111
Likes32171
Last updated2026-04-232024-02-29
Taskstext-classification—
Formatsparquet, optimized-parquetjson
Scalecore 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.Independently 4656 train rows; Hub usedStorage ~3.85 MB; likes 169
FormatParquet configs core|full. Columns: text, label, category, source, severity, group_id, augmented, tagsJSON/parquet via Hub viewer. Columns: lang, vulnerability, system, question, chosen, rejected
TypeLabeled text classification (security)Synthetic DPO preference dataset (code)
CostFreeFree
LanguagesEnglish promptsIndependently nearly uniform across 11 langs (~422-424 each): c++, python, java, javascript, c#, php, ruby, swift, go, kotlin, fortran. Natural-language prompts in English.
ModalityText onlyText + source code
DomainLLM prompt injection / jailbreak detection; AI safety classifiersSecure coding / vulnerability remediation across 11 programming languages
Time periodHF createdAt 2026-01-25; lastModified 2026-04-23. Taxonomy includes 2025 attack styles per card.HF createdAt 2024-02-28; lastModified 2024-02-29. Synthetic coding vignettes; no real-world dated corpus.
PurposeTrain and eval binary malicious-vs-benign prompt detectors with group-aware leakage-free splitsDPO pairs (chosen=secure, rejected=vulnerable) for preference-tuning code models toward secure fixes
Used forClassical ML and transformer detectors; card reports RF 96.3% / DeBERTa-v3-small 95.1% test accuracyPreference/DPO training; secure-coding assistants; educational demos (card use cases)
AuthorsNeurAlchemy originals + HackAPrompt + WildGuard/JudgeComparison + HarmBench (+ benign counterparts) + hand-crafted hard negatives (licenses mixed; package Apache-2.0)Cybernative.ai; synthetic via LoneStriker/deepseek-coder-33b-instruct per card
BiasIndependently core-train skewed to benign + direct_injection (1699+1397). Jailbreak 291; many rare categories <30. ~60/40 malicious/benign claimed on card.Even language coverage. Vulnerability descriptions are LLM-written; may over-represent classic OWASP-style bugs vs rare CVEs. Not audited against real CVE corpora.
Text qualityHigh 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.Medium. Sampled chosen/rejected pairs are coherent secure-vs-insecure contrasts; some rejected snippets show mojibake/garbled tokens. system field often empty.
Sample sizecore ~6.3K; full ~15.9K across splitsIndependently 4656 rows; ~equal per language
Long contextLow-Medium (some context_overflow / many_shot categories by design)Low-Medium (snippet-length code pairs)
Intermediate stepsNo (single-turn classification labels)No (direct preference pairs; vulnerability label is a short description, not a multi-step chain)
Idea qualityHigh (leakage-aware splits + severity/category metadata + published baselines)Medium-High (clear secure-vs-insecure DPO framing across many langs)
NoveltyMedium-High (well-engineered 2026 packaging of injection taxonomy with group splits)Medium (synthetic secure-coding DPO; useful niche, not first of its kind)
Text conversionHighHigh (load_dataset ready; small download)
Collection methodDownloadDownload
StaticMostly (lastModified 2026-04-23)Yes (lastModified 2024-02-29; frozen)
ProcessedYes (curation, augmentation, group splits)Yes (synthetic generation + packaging)
SummaryA high-quality, leakage-free binary classification dataset for detecting **prompt injection** and **jailbreak** attacks against Large Language Models.The Cybernative.ai Code Vulnerability and Security Dataset is a dataset of synthetic Data Programming by Demonstration (DPO) pairs, focusing on the intricate relationship between secure and insecure code across a variety of programming languages. This dataset is meticulously crafted to serve as a pivotal resource for researchers, cybersecurity professionals, and AI developers who are keen on understanding, identifying, and mitigating vulnerabilities in code.