CoolFace
Datasetpublic

nyxspecter4/kin-cyber-dpo-v2

KIN Cybersecurity DPO v2 Preference Dataset Empirically mined and zero-leak sanitized preference dataset for training cybersecurity and agentic code repair models. Dataset Summary Total DPO Pairs: 1,635 (Updated 2026-09-07) Baseline v4 pairs: 1,495 Hermetic expansion (v5): +140 pairs (AST-invariant vulnerability repair, CWE-79 XSS guards, CWE-89 SQLi, CWE-22 Path Traversal, and supply chain integrity) Format: Direct Preference Optimization (DPO) schema: {prompt… See the full description on the dataset page: https://huggingface.co/datasets/nyxspecter4/kin-cyber-dpo-v2.

sourceHugging Faceupdated 14d agoView on Hugging Face
0likes519downloads
Dataset Card

KIN Cybersecurity DPO v2 Preference Dataset

Empirically mined and zero-leak sanitized preference dataset for training cybersecurity and agentic code repair models.

Dataset Summary

Total DPO Pairs: 1,635 (Updated 2026-09-07) Baseline v4 pairs: 1,495 Hermetic expansion (v5): +140 pairs (AST-invariant vulnerability repair, CWE-79 XSS guards, CWE-89 SQLi, CWE-22 Path Traversal, and supply chain integrity)

Format: Direct Preference Optimization (DPO) schema: {prompt, chosen, rejected, metadata}

Schema

ColumnTypeDescription
promptstringThe input scenario (code diff, CVE description, agent trace)
chosenstringVerified brief with working check / PoC
rejectedstringVague filing without verification
metadatajsonCWE, target, vector, date

Files

FileSizeDescription
dpo.jsonl1.5 MBFull dataset — 1,635 DPO pairs (canonical)
dpo-clean.jsonl476 KBCleaned/deduplicated subset (431 pairs)
sft.jsonl943 KBSupervised fine-tuning format
train.jsonl472 KBTraining split
grpo_prompts.jsonl2.3 KBGRPO prompt seeds
Note: The data_files config above points HF Dataset Viewer to dpo.jsonl (the full 1,635-pair dataset). Previously, HF auto-detected dpo-clean.jsonl (alphabetically first), showing only 431 rows.

Provenance

DPO Contrast Examples

Example 1: SQL Injection (CWE-89)

Prompt: A PR diff adding cursor.execute(f"SELECT * FROM users WHERE id = {user_id}")

Chosen: "CLAIM: SQL injection via f-string interpolation. BLAST: Full DB read/write, auth bypass. WHY: CWE-89, user input reaches execute() without parameterization. VERIFY: curl 'http://target/api?id=1 OR 1=1' returns all users. CONFIDENCE: High — falsified if parameterized query is used."

Rejected: "This code looks dangerous and might have a security issue with the database query."

License

MIT

Tags

cybersecurity dpo rlhf security-auditing cve mitre-attack cti-bench