datasets
Training and evaluation data, with the modality, task and licence stated up front. Listed live from the Hugging Face Hub.
Code_Vulnerability_Labeled_Dataset
Dataset Card for Code_Vulnerability_Labeled_Dataset
Dataset Summary
This dataset provides (code, vulnerability) pairs. The vulnerability field takes values according to the CWE annotation:
CWE
Description
CWE-020
Improper Input Validation
CWE-022
Improper Limitation of a Pathname to a Restricted Directory (“Path Traversal”)
CWE-078
Improper Neutralization of Special Elements used in an OS Command (“OS Command Injection”)
CWE-079
Improper Neutralization of… See the full description on the dataset page: https://huggingface.co/datasets/lemon42-ai/Code_Vulnerability_Labeled_Dataset.unified-vulnerability-intelligence-dataset
Unified Vulnerability Intelligence Dataset (UVID) v3.0 — Cyber Security Knowledge Graph
UVID is a structured cyber security knowledge graph that unifies multiple
vulnerability classification frameworks into a single knowledge base. Each of the
250 records describes one application/software security vulnerability and links
it — where authoritative data exists — across CWE, CAPEC, MITRE ATT&CK, CVSS,
14 OWASP projects, secure-fix intelligence, detection surfaces, programming… See the full description on the dataset page: https://huggingface.co/datasets/ismailtasdelen/unified-vulnerability-intelligence-dataset.Code-Vulnerability-FineTune
🔐 Code Vulnerability FineTome — CWE-Enriched Conversation Dataset
📌 Overview
This dataset converts raw security-labeled C/C++ code samples into instruction-following conversation pairs suitable for fine-tuning large language models (LLMs) on software vulnerability detection and analysis.
It is built by preprocessing and transforming the ChamaraVishwajithRajapaksha/Code_Vulnerability_Dataset (330k rows, sourced from DiverseVul + MITRE CWE enrichment) into… See the full description on the dataset page: https://huggingface.co/datasets/ChamaraVishwajithRajapaksha/Code-Vulnerability-FineTune.Code-Vulnerability-Balanced
Code Vulnerability Balanced — CWE-Enriched Conversation Dataset
📌 Overview
This dataset is a balanced and shuffled version of
ChamaraVishwajithRajapaksha/Code-Vulnerability-FineTune,
which itself was derived from the original
ChamaraVishwajithRajapaksha/Code_Vulnerability_Dataset
(330k rows, sourced from DiverseVul + MITRE CWE enrichment).
The original fine-tuning dataset was imbalanced — the number of Vulnerable and Safe
samples were not equal — and the samples were not… See the full description on the dataset page: https://huggingface.co/datasets/ChamaraVishwajithRajapaksha/Code-Vulnerability-Balanced.VAB-vulnerability-analysis-benchmark
FBE and VAB
Two small benchmarks for security code analysis. Both grade without an LLM judge, so runs are cheap
and repeatable.
FBE (find-the-bug)
14 code snippets, each with one planted vulnerability. Ask the model to analyze the code, then check
whether it actually found the flaw.
Grading uses concept groups: the answer has to contain at least one synonym from every required group.
Four numbers come out:
found, did it identify the real vulnerability (this is… See the full description on the dataset page: https://huggingface.co/datasets/MK4-Research/VAB-vulnerability-analysis-benchmark.vulnerability-triage
VULNERABILITY_TRIAGE
A preference dataset for VULNERABILITY_TRIAGE, harvested from real, human-labelled sources and curated by an automated harvesting harness with an LLM quality gate.
Format
Standard preference / DPO schema — each row:
column
meaning
prompt
the request (originally prompt)
chosen
the human-preferred response
rejected
a worse response to the same prompt
source
the dataset/URL the row was harvested from
Splits… See the full description on the dataset page: https://huggingface.co/datasets/316usman/vulnerability-triage.api-vulnerability-dataset-10k
API Vulnerability Dataset (10K)
A dataset of 10,000 API-specific vulnerability samples used to fine-tune harsharajkumar273/api-security-qlora — a QLoRA adapter on CodeLlama-7b for automated API security analysis.
Dataset Summary
Each sample contains a vulnerable or clean API endpoint code snippet paired with a structured security analysis covering vulnerability type, severity, CWE ID, and a remediated version.
Language & Framework Distribution
Language… See the full description on the dataset page: https://huggingface.co/datasets/harsharajkumar273/api-vulnerability-dataset-10k.vulnerability-mitigation-qa-zh_tw
Dataset Card for vulnerability-mitigation-qa-zh_tw
vulnerability-mitigation-qa-zh_tw 是一個繁體中文之資安漏洞與風險緩解問答資料集,包含 22 筆 Web 安全主題之問答對。每筆資料包含使用者問題、對應的漏洞風險說明與緩解建議,適用於微調繁體中文語言模型於資安諮詢與風險說明任務之基礎。
Dataset Details
Dataset Description
本資料集為繁體中文之資安漏洞與緩解措施問答對,當前版本聚焦於 Web 安全主題,涵蓋 HTTP security header(CSP、X-Frame-Options、Strict-Transport-Security 等)、Cookie 安全設定、跨站攻擊(XSS、CSRF、Clickjacking)與其他常見 Web 漏洞之風險描述與實務緩解建議。
每筆資料同時提供 OpenAI messages 格式(messages 為 JSON 字串)與… See the full description on the dataset page: https://huggingface.co/datasets/lianghsun/vulnerability-mitigation-qa-zh_tw.solidity-vulnerability-energy-signatures
🔐 Solidity Vulnerability Energy Signatures
2,250 examples — 19 vulnerability classes — 118 examples/class average
A novel dataset mapping smart contract vulnerabilities to energy landscape signatures for phase-transition-based detection. Expanded from 217 → 2,250 on March 8, 2026.
What Makes This Dataset Unique
Every existing Solidity vulnerability dataset gives you code → label. This dataset gives you code → label → energy signature → phase state → detection threshold —… See the full description on the dataset page: https://huggingface.co/datasets/zkaedi/solidity-vulnerability-energy-signatures.
