Update README.md
Browse files
README.md
CHANGED
|
@@ -35,27 +35,53 @@ configs:
|
|
| 35 |
|
| 36 |
## Topic breakdown
|
| 37 |
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
| % | Documents | Topic |
|
| 41 |
-
|---:|---:|---|
|
| 42 |
-
| 85.64% | 3,469,231 |
|
| 43 |
-
|
|
| 44 |
-
| 1.27% | 51,256 |
|
| 45 |
-
|
|
| 46 |
-
|
|
| 47 |
-
| 0.
|
| 48 |
-
| 0.
|
| 49 |
-
| 0.
|
| 50 |
-
| 0.
|
| 51 |
-
| 0.
|
| 52 |
-
| 0.
|
| 53 |
-
| 0.
|
| 54 |
-
| 0.
|
| 55 |
-
|
|
| 56 |
-
|
|
| 57 |
-
|
|
| 58 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 59 |
|
| 60 |
## What's in it
|
| 61 |
|
|
@@ -63,19 +89,18 @@ The corpus is weighted heavily toward GitHub repository documentation (curated f
|
|
| 63 |
- **NVD (CVE database):** 320,557 entries — full NIST National Vulnerability Database from 2002 to present, including descriptions, CVSS scores, CWE mappings, and references
|
| 64 |
- **ExploitDB:** 47,021 exploits with descriptions and metadata
|
| 65 |
- **Red Hat Security:** 43,063 advisories with CVE mappings and affected packages
|
| 66 |
-
- **MSRC (Microsoft Security):** 21,458 monthly advisory entries
|
| 67 |
-
- **GHSA (GitHub Security Advisories):** 15,757 advisories across 7 ecosystems (
|
| 68 |
- **Ubuntu Security Notices:** 320 (partial — see [Limitations](#known-limitations))
|
| 69 |
|
| 70 |
-
### Threat intelligence & taxonomy (
|
| 71 |
- **MITRE ATT&CK:** 2,354 techniques, tactics, and procedures
|
| 72 |
- **Atomic Red Team:** 2,138 test definitions
|
| 73 |
- **CWE:** 944 weakness classifications
|
| 74 |
- **CAPEC:** 556 attack patterns
|
| 75 |
- **LOLBAS:** 237 living-off-the-land binaries
|
| 76 |
-
- **MITRE D3FEND:** included in mitre_attack source
|
| 77 |
|
| 78 |
-
### Detection & rule corpora (
|
| 79 |
- **YARA rules:** 20,226 from multiple public repos
|
| 80 |
- **Sigma rules:** 7,348 SIEM detection rules
|
| 81 |
- **Metasploit Framework:** 4,569 modules with documentation
|
|
@@ -90,7 +115,7 @@ The corpus is weighted heavily toward GitHub repository documentation (curated f
|
|
| 90 |
- **github_deep:** Markdown documentation extracted from the 10,000 highest-starred security-related GitHub repositories matching 108 security-focused search queries. Includes READMEs, in-repo documentation, methodology notes, technique writeups, and tool documentation. 96% unique content; median document length ~1,500 characters.
|
| 91 |
|
| 92 |
### Specialty sources
|
| 93 |
-
OWASP MASTG, OWASP API Security, OWASP WSTG, How2Heap, Nightmare, Nmap docs, Wireshark docs, PacketLife, OWASP Mobile (HackTricks), Azure Security, GCP Security, Kubernetes Container Security, post-quantum cryptography, Cryptopals, CryptoHack, Forensic Tools docs, Windows Artifact Guide, Ghidra Course, IR Playbooks, SIEM Implementation, Secure Coding guides, Mobile Security Repos, CloudGoat, PTES, Pentest Reports, Dan Boneh's
|
| 94 |
|
| 95 |
A complete machine-readable source breakdown is included as `sources_manifest.json` in this dataset.
|
| 96 |
|
|
@@ -104,7 +129,7 @@ A complete machine-readable source breakdown is included as `sources_manifest.js
|
|
| 104 |
| `text` | string | The primary content of the document |
|
| 105 |
| `url` | string | The original URL or canonical reference |
|
| 106 |
|
| 107 |
-
Source-specific fields commonly include `id`, `cve_id`, `severity`, `cvss_score`, `published`, `repo`, `file`, `subject`, `date`, `technique_id`, `attack_ids`,
|
| 108 |
|
| 109 |
**The HuggingFace dataset viewer is disabled** because the multi-schema structure cannot be cleanly cast to a single Arrow schema. Load the data directly:
|
| 110 |
|
|
@@ -112,7 +137,7 @@ Source-specific fields commonly include `id`, `cve_id`, `severity`, `cvss_score`
|
|
| 112 |
import json
|
| 113 |
|
| 114 |
docs = []
|
| 115 |
-
for chunk_idx in range(8): # adjust to actual chunk count
|
| 116 |
with open(f'raw_docs_chunk_{chunk_idx:03d}.jsonl') as f:
|
| 117 |
for line in f:
|
| 118 |
docs.append(json.loads(line))
|
|
@@ -128,8 +153,7 @@ For streaming use (recommended for the full dataset):
|
|
| 128 |
from huggingface_hub import hf_hub_download
|
| 129 |
import json
|
| 130 |
|
| 131 |
-
|
| 132 |
-
for i in range(8):
|
| 133 |
path = hf_hub_download(
|
| 134 |
repo_id="deardaniel/secdata-raw",
|
| 135 |
filename=f"raw_docs_chunk_{i:03d}.jsonl",
|
|
@@ -186,7 +210,7 @@ When using this dataset, please cite:
|
|
| 186 |
## How to cite
|
| 187 |
|
| 188 |
```bibtex
|
| 189 |
-
@dataset{
|
| 190 |
author = {yourdeardaniel},
|
| 191 |
title = {secdata-raw: A multi-source raw corpus for cybersecurity language models},
|
| 192 |
year = {2026},
|
|
@@ -243,7 +267,7 @@ The exact scraper version that produced this dataset is tagged as `v1.0.0` on Gi
|
|
| 243 |
## Contact & contributions
|
| 244 |
|
| 245 |
For technical questions, bug reports, or contributions:
|
| 246 |
-
- Open an issue: [secdata-scrapers/issues](https://github.com/yourdeardaniel/secdata-scrapers/issues)
|
| 247 |
- For dataset-specific issues, use the Community tab on this dataset page
|
| 248 |
|
| 249 |
If you identify specific documents that should be removed for safety or licensing reasons, please open an issue with the document content (or its URL/hash) and a description of the concern. Examples that are genuinely harmful or improperly licensed will be removed from future dataset versions.
|
|
|
|
| 35 |
|
| 36 |
## Topic breakdown
|
| 37 |
|
| 38 |
+
Documents are listed by primary topic. Note that the largest source — `github_deep` (3.47M documents, 86% of the corpus) — consists of markdown documentation from 10,000 curated security-focused GitHub repositories spanning all topics below; it is shown as a single broad-coverage bucket rather than allocated across topics.
|
| 39 |
+
|
| 40 |
+
| Rank | % | Documents | Topic |
|
| 41 |
+
|---:|---:|---:|---|
|
| 42 |
+
| 1 | 85.64% | 3,469,231 | **Broad security documentation** — curated GitHub repo content (spans all topics below) |
|
| 43 |
+
| 2 | 7.91% | 320,557 | **Vulnerability disclosure (CVE tracking)** — NVD full CVE database |
|
| 44 |
+
| 3 | 1.27% | 51,256 | **Practitioner Q&A** — Stack Exchange (security, RE, cryptography) |
|
| 45 |
+
| 4 | 1.16% | 47,021 | **Exploit code & writeups** — ExploitDB |
|
| 46 |
+
| 5 | 1.06% | 43,063 | **Linux distribution security advisories** — Red Hat Security |
|
| 47 |
+
| 6 | 0.96% | 38,771 | **Linux kernel security commits** — security-relevant kernel git history |
|
| 48 |
+
| 7 | 0.53% | 21,458 | **Windows / Microsoft security advisories** — MSRC Patch Tuesday entries |
|
| 49 |
+
| 8 | 0.50% | 20,226 | **Malware detection rules** — YARA |
|
| 50 |
+
| 9 | 0.39% | 15,757 | **Package ecosystem vulnerabilities** — GHSA (7 ecosystems) |
|
| 51 |
+
| 10 | 0.18% | 7,348 | **SIEM / log-based detection rules** — Sigma |
|
| 52 |
+
| 11 | 0.11% | 4,569 | **Offensive frameworks** — Metasploit modules |
|
| 53 |
+
| 12 | 0.06% | 2,354 | **Threat intelligence & attack modeling** — MITRE ATT&CK techniques |
|
| 54 |
+
| 13 | 0.05% | 2,138 | **Detection validation test cases** — Atomic Red Team |
|
| 55 |
+
| 14 | 0.04% | 1,653 | **Web/API/Mobile security testing guides** — OWASP MASTG, API Security, WSTG |
|
| 56 |
+
| 15 | 0.04% | 1,500 | **Vulnerability & attack pattern taxonomy** — CWE + CAPEC |
|
| 57 |
+
| 16 | 0.02% | 936 | **Pentest methodology & reports** — PTES, pentest reports, secure coding, IR playbooks |
|
| 58 |
+
| 17 | 0.02% | 779 | **Network & protocol security** — Nmap, Wireshark, PacketLife, wireless |
|
| 59 |
+
| 18 | 0.01% | 388 | **AI/ML security** — ML-focused security guides and repositories |
|
| 60 |
+
| 19 | 0.01% | 372 | **Heap exploitation** — How2Heap |
|
| 61 |
+
| 20 | 0.01% | 331 | **Forensics & incident response** — DFIR tools, Windows artifacts, Linux forensics |
|
| 62 |
+
| 21 | 0.01% | 320 | **Ubuntu security advisories** (partial — see Limitations) |
|
| 63 |
+
| 22 | 0.01% | 245 | **Kernel exploitation training** — Nightmare CTF series |
|
| 64 |
+
| 23 | 0.01% | 243 | **Mobile application security** — MASTG, hacktricks_mobile, mobile repos |
|
| 65 |
+
| 24 | 0.01% | 237 | **Living-off-the-land binaries** — LOLBAS |
|
| 66 |
+
| 25 | <0.01% | 149 | **Cloud & container security** — Azure, GCP, Kubernetes, CloudGoat, FLAWS |
|
| 67 |
+
| 26 | <0.01% | 128 | **Cryptography** — Cryptopals, post-quantum, CryptoHack, Dan Boneh course |
|
| 68 |
+
| 27 | <0.01% | 57 | **Reverse engineering training** — Ghidra course |
|
| 69 |
+
| 28 | <0.01% | 16 | **Academic security papers** — arXiv (partial — see Limitations) |
|
| 70 |
+
| 29 | <0.01% | 13 | **Miscellaneous code snippets** — GitHub Gists |
|
| 71 |
+
|
| 72 |
+
### Topic coverage at a glance (excluding the broad GitHub bucket)
|
| 73 |
+
|
| 74 |
+
Among the ~582K **structured** documents — the 14% that isn't broad GitHub markdown — the corpus emphasizes:
|
| 75 |
+
|
| 76 |
+
- **Vulnerability disclosure & tracking** (NVD + GHSA + vendor advisories): ~401K docs, ~69% of structured content
|
| 77 |
+
- **Practitioner Q&A** (Stack Exchange): 51K docs, ~9%
|
| 78 |
+
- **Exploit & offensive technique documentation** (ExploitDB + Metasploit + How2Heap + Nightmare + LOLBAS + Atomic Red Team): ~54K docs, ~9%
|
| 79 |
+
- **Linux kernel security**: 39K docs, ~7%
|
| 80 |
+
- **Detection engineering** (YARA + Sigma): 28K docs, ~5%
|
| 81 |
+
- **Threat modeling & taxonomy** (ATT&CK + CWE + CAPEC): ~3.9K docs
|
| 82 |
+
- **Everything else** (cloud, mobile, crypto, forensics, network, AI/ML, web): ~3K docs combined
|
| 83 |
+
|
| 84 |
+
This shape — heavy on vulnerability disclosure plus broad practitioner content, lighter on specific defensive subfields — reflects what's openly available at scale in cybersecurity. Sparser topics (cryptography, mobile security, cloud security) are documented but represent priority areas for v1.x expansion.
|
| 85 |
|
| 86 |
## What's in it
|
| 87 |
|
|
|
|
| 89 |
- **NVD (CVE database):** 320,557 entries — full NIST National Vulnerability Database from 2002 to present, including descriptions, CVSS scores, CWE mappings, and references
|
| 90 |
- **ExploitDB:** 47,021 exploits with descriptions and metadata
|
| 91 |
- **Red Hat Security:** 43,063 advisories with CVE mappings and affected packages
|
| 92 |
+
- **MSRC (Microsoft Security Response Center):** 21,458 monthly advisory entries
|
| 93 |
+
- **GHSA (GitHub Security Advisories):** 15,757 advisories across 7 ecosystems (pip, Maven, RubyGems, Go, Rust, Composer, NuGet)
|
| 94 |
- **Ubuntu Security Notices:** 320 (partial — see [Limitations](#known-limitations))
|
| 95 |
|
| 96 |
+
### Threat intelligence & taxonomy (~6K documents)
|
| 97 |
- **MITRE ATT&CK:** 2,354 techniques, tactics, and procedures
|
| 98 |
- **Atomic Red Team:** 2,138 test definitions
|
| 99 |
- **CWE:** 944 weakness classifications
|
| 100 |
- **CAPEC:** 556 attack patterns
|
| 101 |
- **LOLBAS:** 237 living-off-the-land binaries
|
|
|
|
| 102 |
|
| 103 |
+
### Detection & rule corpora (~32K documents)
|
| 104 |
- **YARA rules:** 20,226 from multiple public repos
|
| 105 |
- **Sigma rules:** 7,348 SIEM detection rules
|
| 106 |
- **Metasploit Framework:** 4,569 modules with documentation
|
|
|
|
| 115 |
- **github_deep:** Markdown documentation extracted from the 10,000 highest-starred security-related GitHub repositories matching 108 security-focused search queries. Includes READMEs, in-repo documentation, methodology notes, technique writeups, and tool documentation. 96% unique content; median document length ~1,500 characters.
|
| 116 |
|
| 117 |
### Specialty sources
|
| 118 |
+
OWASP MASTG, OWASP API Security, OWASP WSTG, How2Heap, Nightmare, Nmap docs, Wireshark docs, PacketLife, OWASP Mobile (HackTricks), Azure Security, GCP Security, Kubernetes Container Security, post-quantum cryptography, Cryptopals, CryptoHack, Forensic Tools docs, Windows Artifact Guide, Ghidra Course, IR Playbooks, SIEM Implementation, Secure Coding guides, Mobile Security Repos, CloudGoat, PTES, Pentest Reports, Dan Boneh's Cryptography course, FLAWS.cloud, AI/ML Security guides.
|
| 119 |
|
| 120 |
A complete machine-readable source breakdown is included as `sources_manifest.json` in this dataset.
|
| 121 |
|
|
|
|
| 129 |
| `text` | string | The primary content of the document |
|
| 130 |
| `url` | string | The original URL or canonical reference |
|
| 131 |
|
| 132 |
+
Source-specific fields commonly include `id`, `cve_id`, `severity`, `cvss_score`, `published`, `repo`, `file`, `subject`, `date`, `technique_id`, `attack_ids`, and others. See `sources_manifest.json` and the [scraper code](https://github.com/yourdeardaniel/secdata-scrapers) for per-source schemas.
|
| 133 |
|
| 134 |
**The HuggingFace dataset viewer is disabled** because the multi-schema structure cannot be cleanly cast to a single Arrow schema. Load the data directly:
|
| 135 |
|
|
|
|
| 137 |
import json
|
| 138 |
|
| 139 |
docs = []
|
| 140 |
+
for chunk_idx in range(8): # adjust to actual chunk count in this dataset
|
| 141 |
with open(f'raw_docs_chunk_{chunk_idx:03d}.jsonl') as f:
|
| 142 |
for line in f:
|
| 143 |
docs.append(json.loads(line))
|
|
|
|
| 153 |
from huggingface_hub import hf_hub_download
|
| 154 |
import json
|
| 155 |
|
| 156 |
+
for i in range(8): # adjust to actual chunk count
|
|
|
|
| 157 |
path = hf_hub_download(
|
| 158 |
repo_id="deardaniel/secdata-raw",
|
| 159 |
filename=f"raw_docs_chunk_{i:03d}.jsonl",
|
|
|
|
| 210 |
## How to cite
|
| 211 |
|
| 212 |
```bibtex
|
| 213 |
+
@dataset{yourdeardaniel_secdata_raw_2026,
|
| 214 |
author = {yourdeardaniel},
|
| 215 |
title = {secdata-raw: A multi-source raw corpus for cybersecurity language models},
|
| 216 |
year = {2026},
|
|
|
|
| 267 |
## Contact & contributions
|
| 268 |
|
| 269 |
For technical questions, bug reports, or contributions:
|
| 270 |
+
- Open an issue: [secdata-scrapers/issues](https://github.com/yourdeardaniel/secdata-scrapers/issues) for scraper/collection issues, or [secdata-pipeline/issues](https://github.com/yourdeardaniel/secdata-pipeline/issues) for pipeline/conversion issues
|
| 271 |
- For dataset-specific issues, use the Community tab on this dataset page
|
| 272 |
|
| 273 |
If you identify specific documents that should be removed for safety or licensing reasons, please open an issue with the document content (or its URL/hash) and a description of the concern. Examples that are genuinely harmful or improperly licensed will be removed from future dataset versions.
|