# Code Vulnerability and Security DPO Dataset

- **ID:** 318
- **Kind:** dataset
- **URL:** https://huggingface.co/datasets/CyberNative/Code_Vulnerability_Security_DPO
- **Authors:** CyberNative
- **Venue:** CyberNative
- **Published:** 2024
- **Source:** huggingface
- **Access:** free
- **License:** apache-2.0
- **License family:** Permissive (auto-classified)
- **Topics:** Code
- **Added:** 2026-07-17
- **Verified:** 2026-07-17
- **Research status:** done
- **Page:** https://papers.projxon.ai/entries/318

## Summary

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.

## Attributes

- **Scale:** 1K<n<10K
- **Time period:** created 2024-02-28; updated 2024-02-29
- **Author type:** unknown

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

- **Repository:** CyberNative/Code_Vulnerability_Security_DPO (Hugging Face)
- **Created:** Feb 28, 2024 (Hugging Face)
- **Last updated:** Feb 29, 2024 (Hugging Face)
- **Downloads (last month):** 1,111 (Hugging Face)
- **Likes:** 171 (Hugging Face)
- **Size:** 1K to 10K rows (Hugging Face)
- **Modalities:** code, text (Hugging Face)
- **Formats:** json (Hugging Face)

## Dataset profile

- **Scale:** Independently 4656 train rows; Hub usedStorage ~3.85 MB; likes 169
- **Format:** JSON/parquet via Hub viewer. Columns: lang, vulnerability, system, question, chosen, rejected
- **Type:** Synthetic DPO preference dataset (code)
- **License:** apache-2.0
- **Cost:** Free
- **Languages:** Independently nearly uniform across 11 langs (~422-424 each): c++, python, java, javascript, c#, php, ruby, swift, go, kotlin, fortran. Natural-language prompts in English.
- **Modality:** Text + source code
- **Domain:** Secure coding / vulnerability remediation across 11 programming languages
- **Time period:** HF createdAt 2024-02-28; lastModified 2024-02-29. Synthetic coding vignettes; no real-world dated corpus.
- **Purpose:** DPO pairs (chosen=secure, rejected=vulnerable) for preference-tuning code models toward secure fixes
- **Used for:** Preference/DPO training; secure-coding assistants; educational demos (card use cases)
- **Authors:** Cybernative.ai; synthetic via LoneStriker/deepseek-coder-33b-instruct per card
- **Bias:** 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 quality:** Medium. Sampled chosen/rejected pairs are coherent secure-vs-insecure contrasts; some rejected snippets show mojibake/garbled tokens. system field often empty.
- **Sample size:** Independently 4656 rows; ~equal per language
- **Long context:** Low-Medium (snippet-length code pairs)
- **Intermediate steps:** No (direct preference pairs; vulnerability label is a short description, not a multi-step chain)
- **Idea quality:** Medium-High (clear secure-vs-insecure DPO framing across many langs)
- **Novelty:** Medium (synthetic secure-coding DPO; useful niche, not first of its kind)
- **Text conversion:** High (load_dataset ready; small download)
- **Collection method:** Download
- **Static:** Yes (lastModified 2024-02-29; frozen)
- **Processed:** Yes (synthetic generation + packaging)

## Links

- Dataset: https://huggingface.co/datasets/CyberNative/Code_Vulnerability_Security_DPO
- Related: https://huggingface.co/datasets/CyberNative/Code_Vulnerability_Security_DPO
- Related: https://cybernative.ai

## Research notes

- downloads=2621; likes=164
- Discord msg 1490725124364566549 bare link. Remaining dump leftover. Spot-check quality before RLHF production use.

## Similar entries

- [UltraData-Code (OpenBMB L0–L3 tiered code pretrain: L2 algorithmic + L3 synthesis)](https://papers.projxon.ai/entries/1035) (dataset, #1035)
- [BigO(Bench): Can LLMs Generate Code with Controlled Time and Space Complexity?](https://papers.projxon.ai/entries/777) (paper, #777)
- [Invent a Dataset: Measuring Dataset Generation Abilities With Zero Seed Data](https://papers.projxon.ai/entries/834) (paper, #834)
- [Cross-Benchmark Transfer from RL on Agentic Coding Tasks](https://papers.projxon.ai/entries/1245) (paper, #1245)
- [github-top-code](https://papers.projxon.ai/entries/229) (dataset, #229)
- [Jupyter Agent Dataset](https://papers.projxon.ai/entries/72) (dataset, #72)
