Reizxn commited on
Commit
def9b39
·
verified ·
1 Parent(s): 8d21746

Upload DATASET_CARD.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. DATASET_CARD.md +156 -0
DATASET_CARD.md ADDED
@@ -0,0 +1,156 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # HolyCyber — Dataset Card
2
+
3
+ A large, fully grounded, decontaminated instruction dataset spanning cybersecurity.
4
+
5
+ ## Overview
6
+
7
+ - **Rows:** 51,805
8
+ - **Groups (leakage units):** 12,125
9
+ - **Splits:** test=5,702, train=40,998, val=5,105
10
+ - **Domains:** 17 | **Task types:** 19
11
+ - **Avg assistant length:** 11,001 chars
12
+ - **Row size (tiktoken cl100k, user+assistant):** min 2,050 / median 2,324 / mean 2,464 / p90 2,926 / max 6,790 tokens
13
+ - **Total tokens:** 127,643,325 | **Rows below the 2,000-token floor:** 0
14
+ - **Seed:** 1337 | **Canary:** `BENCHMARK DATA SHOULD NEVER APPEAR AS TRAINING DATA: HOLYCYBER-DECONTAM-CANARY-9f2c7a14`
15
+ - **Entity's own material:** median 16% of an answer's tokens; 32,399 rows are below 25%. The balance is the labelled reference appendix (`## Reference: ...`), not extra facts about the row's entity.
16
+
17
+ ## Record format
18
+
19
+ One JSON object per line; `messages` is a three-turn chat (system / user / assistant).
20
+
21
+ ```json
22
+ {"id": "6d408e38f3cb8dff", "row_key": "detection_engineering:attack:T1568:detection_engineering:detection_strategy:1",
23
+ "domain": "detection_engineering",
24
+ "subdomain": "detection_strategy", "task_type": "detection_engineering",
25
+ "difficulty": "advanced", "group_key": "attack:T1568", "source": "mitre-attack",
26
+ "license": "...", "split": "train", "canary": "...",
27
+ "tokens": {"user": 180, "assistant": 2350, "total": 2530},
28
+ "core_share": 0.41, "appendix": true,
29
+ "references": [{"title": "...", "url": "https://..."}],
30
+ "messages": [{"role": "system", "content": "..."},
31
+ {"role": "user", "content": "..."},
32
+ {"role": "assistant", "content": "## ...\n..."}]}
33
+ ```
34
+
35
+ | Field | Meaning |
36
+ |---|---|
37
+ | `id` | content hash of user+assistant, stable across rebuilds of the same row |
38
+ | `row_key` | stable identity across rebuilds (`domain:group:task:subdomain:part`) |
39
+ | `domain` / `subdomain` | the layer, and the slice of it the row covers |
40
+ | `task_type` | the question shape (detection, mitigation, mapping, response, ...) |
41
+ | `difficulty` | derived from the task shape, not guessed |
42
+ | `group_key` | the source entity; the unit of the train/val/test split |
43
+ | `source` / `license` | the authoritative source, and its licence |
44
+ | `tokens` | measured `cl100k_base` counts for user, assistant and total |
45
+ | `core_share` | share of the answer that is the entity's own material (1 - appendix) |
46
+ | `appendix` | whether the row carries a `## Reference:` appendix |
47
+ | `references` | resolvable links for the entities cited in the answer |
48
+ | `canary` | decontamination marker |
49
+
50
+ ## What a row contains
51
+
52
+ Section headings used in the answers (appendix excluded):
53
+
54
+ | Section | Rows |
55
+ |---|---|
56
+ | Summary | 26,919 |
57
+ | Detection strategies and analytics | 7,440 |
58
+ | Mitigations | 6,854 |
59
+ | Tracked users (groups, malware, tools) | 6,836 |
60
+ | Classification | 5,088 |
61
+ | Introduction | 3,499 |
62
+ | Platforms | 3,123 |
63
+ | Background | 2,807 |
64
+ | Associated weaknesses | 2,379 |
65
+ | Scope note | 2,283 |
66
+ | What it is | 2,281 |
67
+ | Detection logic | 2,249 |
68
+ | Engineering note | 2,249 |
69
+ | Supports technique(s) | 2,232 |
70
+ | Telemetry | 2,210 |
71
+
72
+ ## Row design
73
+
74
+ The corpus is built as **one focused dataset per cybersecurity domain** (`dataset/layers/<domain>/`), each from that domain's own authoritative sources, and this global file is their concatenation.
75
+
76
+ Each row is a **self-contained, long-form briefing on one entity** (an ATT&CK technique/group/software, a CWE weakness, a CAPEC pattern, a KEV vulnerability, a Sigma rule, an ATLAS technique, a D3FEND control, or a section of a cited arXiv paper). A row is built in three steps:
77
+
78
+ 1. **Base cell** — the parser output for that entity and that (task type, subdomain).
79
+ 2. **Task shapes** — the same entity asked a *different* defensive question (detection, mitigation, framework mapping, response, adversary usage), built only from other sections of that entity's own record, so no new fact is introduced.
80
+ 3. **Reference pack** — if the row is still short, it is topped up with compact descriptions of other entities *of the same domain*, taken from that domain's own source text, with a rotating window so two rows do not carry identical padding.
81
+
82
+ Rows are packed to a hard floor of 2,000 tokens, so **no row is below the floor**. Context is allocated **disjointly** across an entity's cells, so a record is never repeated inside a single entity, and the split is cut on `group_key` so an entity never appears in two splits.
83
+
84
+ ## Construction
85
+
86
+ Sources are parsed deterministically; no facts are invented by a model.
87
+
88
+ | Source | Rows | Licence |
89
+ |---|---|---|
90
+ | mitre-attack | 27,221 | MITRE ATT&CK — free for defensive use |
91
+ | arxiv-corpus | 11,332 | arXiv preprints; cited per row |
92
+ | cisa-kev | 5,843 | CISA KEV — U.S. Government work (public domain) |
93
+ | cwe | 2,747 | CWE (MITRE) — attribution required |
94
+ | capec | 2,714 | CAPEC (MITRE) — attribution required |
95
+ | ietf-rfc | 645 | see source |
96
+ | atlas | 608 | MITRE ATLAS — free for defensive use |
97
+ | nist-publication | 432 | see source |
98
+ | owasp-cheatsheet | 175 | see source |
99
+ | research-corpus | 88 | Curated; cites public arXiv preprints |
100
+
101
+ ## Quality controls
102
+
103
+ - **Exact duplicates removed:** 0
104
+ - **Near-duplicates removed:** 952 (MinHash-LSH: 5-word shingles, 112 perms, Jaccard >= 0.9; same task type only)
105
+ - **Decontamination:** token-25 overlap vs 27 benchmark files; 2,064 benchmark CVE IDs excluded; canary GUID emitted per row
106
+ - **Contaminated rows removed:** 0 ({})
107
+ - **Quality gate:** 315 rejected ({})
108
+ - **Split integrity:** group-level by `group_key`; no group appears in more than one split
109
+
110
+ ## Domain coverage
111
+
112
+ | Domain | Rows | Subdomains covered |
113
+ |---|---|---|
114
+ | detection_engineering | 7,970 | 6 |
115
+ | ai_ml_security | 4,602 | 10 |
116
+ | vulnerability_management | 3,493 | 4 |
117
+ | governance_risk | 3,176 | 5 |
118
+ | defense_engineering | 2,986 | 3 |
119
+ | incident_response | 2,943 | 4 |
120
+ | attack_knowledge | 2,887 | 6 |
121
+ | threat_intelligence | 2,865 | 6 |
122
+ | pentest | 2,788 | 7 |
123
+ | secure_coding | 2,659 | 6 |
124
+ | network_security | 2,373 | 5 |
125
+ | identity_access | 2,304 | 4 |
126
+ | cloud_security | 2,244 | 5 |
127
+ | safety_boundary | 2,200 | 5 |
128
+ | ml_security_methodology | 2,111 | 6 |
129
+ | malware_analysis | 2,104 | 4 |
130
+ | cryptography | 2,100 | 5 |
131
+
132
+ **Known coverage gaps (subdomains not yet populated):**
133
+
134
+ - threat_intelligence: malware, procedure
135
+ - vulnerability_management: prioritisation, weakness_consequences, weakness_detection, weakness_mitigation
136
+ - detection_engineering: false_positive_analysis
137
+ - defense_engineering: architecture_control, hardening
138
+ - incident_response: eradication, lessons_learned, recovery
139
+ - network_security: exfiltration
140
+ - cloud_security: storage_exposure
141
+ - malware_analysis: aliases, static_indicators
142
+ - identity_access: kerberos, mfa_bypass
143
+
144
+ ## Intended use
145
+
146
+ Supervised fine-tuning / instruction tuning of a defensive cybersecurity assistant (HolyCyber persona). All rows are defensive or detection/analysis oriented.
147
+
148
+ ## Out of scope
149
+
150
+ No functional exploits, malware, weaponised jailbreak prompts, or operational attack tooling. Pentest rows are framed as authorised engagements; offensive concepts are conceptual and paired with detection/remediation.
151
+
152
+ ## Limitations
153
+
154
+ Rows are unique; some paragraphs are not. The framework domains complete short entity records with a labelled reference appendix, so a sizeable share of their answer tokens is reused material from the same domain. `research/AUDIT_REPORT.md` measures the paragraph reuse, including how much of it crosses the train/test boundary, and `research/EXTERNAL_REVIEW.md` records how this compares with a public peer dataset.
155
+
156
+ No row has been reviewed individually by a domain expert: grounding bounds invention, it does not by itself prove correctness.