ezesecops commited on
Commit
2e652f8
·
verified ·
1 Parent(s): bbf6e9d

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +263 -0
README.md ADDED
@@ -0,0 +1,263 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc0-1.0
3
+ language: [en]
4
+ task_categories: [text-retrieval, question-answering]
5
+ tags: [cybersecurity, nist, rmf, compliance, fedramp, ato, ai-governance, oscal]
6
+ pretty_name: RMF/ATO Core Corpus
7
+ size_categories: [1K<n<10K]
8
+ ---
9
+
10
+ # RMF/ATO Core Corpus
11
+
12
+ ## What this is
13
+
14
+ A curated corpus of **current-revision** NIST Risk Management Framework and authorization
15
+ publications, plus a second tier of AI governance documents. Every row is source text — one
16
+ control, one assessment objective, one RMF task, one AI RMF subcategory, one SSDF practice, one
17
+ document section — carrying the identifiers a practitioner actually cites. It is built for
18
+ retrieval and fine-tuning around authorization workflows: control selection, SSP and assessment
19
+ work, categorization, continuous monitoring, and the emerging AI governance overlay.
20
+
21
+ **5,510 rows, 1.9 MB, single `train` split.** No embeddings, no synthetic Q&A, no system prompts.
22
+
23
+ ## Why another NIST dataset
24
+
25
+ Existing NIST corpora are typically indiscriminate scrapes, and they share four failure modes.
26
+ Each is prevented here by construction rather than by cleanup:
27
+
28
+ | Failure mode | How it is prevented |
29
+ |---|---|
30
+ | **Superseded-document contamination** — 1989 guidance sitting beside current guidance | A manifest is the sole authority on scope. Every row traces to one manifest entry. Landing pages are checked for supersession at build time; SP 800-18 Rev 1 was found withdrawn during this build and replaced with Rev 2. |
31
+ | **Fabricated control IDs** — "control HA-25", "control WE-12", produced when a chunker turns any two capital letters near a number into an identifier | A row may carry a `control_id` **only** if it came from OSCAL structured data, and the ID must match one of the 20 real SP 800-53 Rev 5 families. PDF-derived rows never carry a control ID, even where the prose names one. Both rules are executable checks, not conventions. |
32
+ | **Baked-in prompts** — "You are a cybersecurity expert…" prefixed to every row | Row text is source text. Validation rejects any row containing prompt scaffolding or unrendered template markers. |
33
+ | **Embedding lock-in** — precomputed vectors tying users to one model | Text only. Bring your own embedding model. |
34
+
35
+ The dataset is deliberately small. It is meant to be *right*, not exhaustive.
36
+
37
+ ## What's included
38
+
39
+ | doc_id | document | revision | date | tier | format |
40
+ |---|---|---|---|---|---|
41
+ | `SP-800-37r2` | Risk Management Framework for Information Systems and Organizations | Rev 2 | 2018-12 | 1 | PDF |
42
+ | `SP-800-53r5` | Security and Privacy Controls for Information Systems and Organizations | Rev 5 (OSCAL 5.2.0) | 2020-09 | 1 | OSCAL |
43
+ | `SP-800-53Ar5` | Assessing Security and Privacy Controls | Rev 5 | 2022-01 | 1 | embedded in OSCAL |
44
+ | `SP-800-53B-LOW/MODERATE/HIGH/PRIVACY` | Control Baselines | Rev 5 (OSCAL 5.2.0) | 2020-10 | 1 | OSCAL |
45
+ | `FIPS-199` | Standards for Security Categorization | Initial (in force) | 2004-02 | 1 | PDF |
46
+ | `FIPS-200` | Minimum Security Requirements | Initial (in force) | 2006-03 | 1 | PDF |
47
+ | `SP-800-60v1r1` / `v2r1` | Mapping Information Types to Security Categories, Vols 1–2 | Rev 1 | 2008-08 | 1 | PDF |
48
+ | `SP-800-18r2` | Developing Security, Privacy, and C-SCRM Plans for Systems | Rev 2 | 2026-06 | 1 | PDF |
49
+ | `SP-800-30r1` | Guide for Conducting Risk Assessments | Rev 1 | 2012-09 | 1 | PDF |
50
+ | `SP-800-39` | Managing Information Security Risk | Initial (in force) | 2011-03 | 1 | PDF |
51
+ | `SP-800-137` | Information Security Continuous Monitoring | Initial (in force) | 2011-09 | 1 | PDF |
52
+ | `AI-100-1` | AI Risk Management Framework (AI RMF 1.0) | 1.0 | 2023-01 | 2 | PDF |
53
+ | `AI-RMF-PLAYBOOK` | NIST AI RMF Playbook | rolling | 2026-08 | 2 | JSON |
54
+ | `SP-800-218` | Secure Software Development Framework (SSDF) | 1.1 | 2022-02 | 2 | PDF |
55
+ | `SP-800-218A` | SSDF Community Profile for Generative AI | Initial | 2024-07 | 2 | PDF |
56
+
57
+ **SP 800-53A content is extracted from the SP 800-53 Rev 5 OSCAL catalog's embedded assessment
58
+ parts**, not from a separate 53A file — NIST publishes no standalone 53A OSCAL artifact. Those
59
+ rows are attributed to `SP-800-53Ar5` and cite the catalog's hash.
60
+
61
+ ### Excluded
62
+
63
+ Superseded or withdrawn revisions (including 182 withdrawn SP 800-53 controls, each logged by
64
+ name); NIST annual reports and workshop proceedings; pre-2010 legacy publications except FIPS
65
+ 199/200, which remain in force; and draft publications. Also excluded from v1: CNSSI 1253 and
66
+ DoD Instruction 8510.01, whose publishers block automated retrieval; and **SP 800-60 Volume 2
67
+ Appendix E**, which reproduces OMB memoranda and legislative provisions as wide reference tables —
68
+ source material for the impact determinations rather than guidance, and it extracts as citation
69
+ soup.
70
+
71
+ ## Schema
72
+
73
+ One row = one chunk.
74
+
75
+ | field | type | notes |
76
+ |---|---|---|
77
+ | `id` | string | Deterministic and human-readable: `{doc_id}/{chunk_type}/{slug}`, e.g. `SP-800-53r5/control/ac-2`. Oversized rows split into ` (part n)`. Stable across versions, so diffs are meaningful. |
78
+ | `text` | string | Source text. Normalized whitespace, paragraph breaks preserved. 80–8,000 chars. |
79
+ | `doc_id` | string | Matches a manifest entry. |
80
+ | `doc_title` | string | From the manifest. |
81
+ | `revision` | string | From the manifest; names the exact OSCAL content release where applicable. |
82
+ | `pub_date` | string | `YYYY-MM` or `YYYY`. |
83
+ | `tier` | int32 | 1 = RMF/ATO core, 2 = AI governance. |
84
+ | `chunk_type` | string | `control`, `control_enhancement`, `control_discussion`, `assessment_objective`, `assessment_method`, `baseline`, `section`, `task`, `ai_rmf_subcategory`, `ssdf_practice`, `definition`, `table`. |
85
+ | `control_id` | string or null | Lowercase OSCAL form (`ac-2`, `ac-2.3`). **Null for every PDF-derived row.** |
86
+ | `section_path` | string or null | Where it sits: `AC > AC-2 > Discussion`, `CHAPTER THREE > TASK P-1`, `SSDF Practices > PO > PO.1 > PO.1.1`. |
87
+ | `source_url` | string | The retrieved artifact's URL. |
88
+ | `sha256_source` | string | Hash of the exact artifact the row came from. |
89
+
90
+ ### Rows by chunk type
91
+
92
+ | chunk_type | rows | | chunk_type | rows |
93
+ |---|---:|---|---|---:|
94
+ | `assessment_method` | 1,014 | | `ai_rmf_subcategory` | 154 |
95
+ | `assessment_objective` | 1,014 | | `ssdf_practice` | 94 |
96
+ | `control_discussion` | 999 | | `task` | 47 |
97
+ | `control_enhancement` | 714 | | `baseline` | 4 |
98
+ | `control` | 300 | | `table` | 1 |
99
+ | `section` | 872 | | | |
100
+ | `definition` | 297 | | | |
101
+
102
+ The 297 `definition` rows come from five glossaries: SP 800-37r2 (178), SP 800-137
103
+ (101), FIPS 199 (13), SP 800-18r2 (3) and FIPS 200 (2). The two large ones mark their
104
+ entries typographically rather than with punctuation — SP 800-37 sets terms in bold,
105
+ SP 800-137 marks each entry with a smaller bracketed source line — so both are read
106
+ from the font, not from a `TERM:` pattern.
107
+
108
+ ### Example rows
109
+
110
+ ```json
111
+ {
112
+ "id": "SP-800-53r5/control_enhancement/ac-2.3",
113
+ "text": "AC-2(3) Account Management | Disable Accounts\nFamily: Access Control (AC) > AC-2 Account Management\n\nDisable accounts within [Assignment: organization-defined time period] when the accounts:\n(a) Have expired;\n(b) Are no longer associated with a user or individual;\n(c) Are in violation of organizational policy; or\n(d) Have been inactive for [Assignment: organization-defined time period].",
114
+ "doc_id": "SP-800-53r5",
115
+ "revision": "Rev 5 (OSCAL content version 5.2.0)",
116
+ "tier": 1,
117
+ "chunk_type": "control_enhancement",
118
+ "control_id": "ac-2.3",
119
+ "section_path": "AC > AC-2 > AC-2(3)"
120
+ }
121
+ ```
122
+
123
+ ```json
124
+ {
125
+ "id": "AI-100-1/ai_rmf_subcategory/govern-1.1",
126
+ "text": "GOVERN 1.1: Legal and regulatory requirements involving AI are understood, managed, and documented.",
127
+ "doc_id": "AI-100-1",
128
+ "revision": "1.0",
129
+ "tier": 2,
130
+ "chunk_type": "ai_rmf_subcategory",
131
+ "control_id": null,
132
+ "section_path": "AI RMF Core > Govern > GOVERN 1.1"
133
+ }
134
+ ```
135
+
136
+ Note the ODP rendering: `{{ insert: param, ac-02_odp.01 }}` in the OSCAL source becomes
137
+ `[Assignment: organization-defined …]` / `[Selection; one or more: …]`, the convention SP 800-53
138
+ itself prints. No template marker survives into any row.
139
+
140
+ ## How it was built
141
+
142
+ ```
143
+ 01 verify → 02 fetch → 03 parse OSCAL → 04 parse PDF → 05 chunk → 06 validate → 07 export
144
+ ```
145
+
146
+ Each stage is an independently runnable, idempotent script. Source, tests, and the **full
147
+ rejection log** live in the GitHub repository: <https://github.com/ezesecops/rmf-ato-core>
148
+
149
+ **1,131 rows were rejected** across the pipeline, every one recorded with a rule and a reason in
150
+ `rejections.jsonl`. Rejected content is logged, never silently dropped.
151
+
152
+ | rule | rows | what it is |
153
+ |---|---:|---|
154
+ | `section_too_short` | 449 | layout fragments; their text survives, merged into neighbouring sections |
155
+ | `withdrawn_control` | 182 | SP 800-53 controls marked withdrawn in OSCAL |
156
+ | `excluded_appendix` | 161 | SP 800-60 Vol 2 Appendix E — OMB memoranda and legal-provision tables |
157
+ | `midsentence_fragment` | 97 | sections beginning mid-sentence (see Limitations) |
158
+ | `duplicate_task_stub` | 96 | RMF task identifiers repeated in summary tables and contents |
159
+ | `trailing_furniture` | 36 | stub sections with no sibling to merge into |
160
+ | `bibliography_entry` | 29 | reference-list entries: citation apparatus, no guidance |
161
+ | `duplicate_information_type_stub` | 26 | SP 800-60 information-type identifiers repeated in contents |
162
+ | `length_bounds` | 19 | text outside the length bounds for its chunk type |
163
+ | `empty_discussion` | 15 | SP 800-53 discussions whose whole content is "None." |
164
+ | `front_matter` | 8 | title pages, forewords, signature blocks, contents |
165
+ | `block_too_short` / `definition_too_short` | 10 | identifier blocks and glossary entries that extracted as fragments |
166
+ | `near_dupe` | 3 | text identical to an earlier row; the later row loses |
167
+
168
+ Three review passes shaped this log after the pipeline first ran end to end. The first added the
169
+ supply-chain rules that reject reference entries, running-header remnants and mid-sentence
170
+ fragments. The second showed those rules were discarding rows that had real guidance underneath a
171
+ damaged first line, so the pipeline now *repairs* what it can — a running-header remnant or a
172
+ leading citation tag over substantive text is stripped and the row is published, and rows are only
173
+ rejected when nothing substantive remains. The third recovered content the rules had been hiding:
174
+ SP 800-137's glossary became 101 `definition` rows, and decorative drop caps stopped being read as
175
+ headings. `running_header_fragment` rejected 101 rows before that repair step existed and rejects
176
+ none now.
177
+
178
+ ## Provenance & integrity
179
+
180
+ Every artifact was retrieved once, hashed, and recorded. `provenance.json` ships with the dataset.
181
+
182
+ | doc_id | revision | retrieved | bytes | sha256 (first 16) |
183
+ |---|---|---|---:|---|
184
+ | `AI-100-1` | 1.0 | 2026-08-08 | 1,946,127 | `7576edb531d98488…` |
185
+ | `AI-RMF-PLAYBOOK` | rolling | 2026-08-08 | 413,720 | `aecbee3d3c882081…` |
186
+ | `FIPS-199` | Initial (in force) | 2026-08-08 | 80,356 | `73d19f05f71e30f3…` |
187
+ | `FIPS-200` | Initial (in force) | 2026-08-08 | 218,892 | `107a9b9cdc8eccf3…` |
188
+ | `SP-800-137` | Initial (in force) | 2026-08-08 | 986,916 | `2d1c0bf459f5e1bf…` |
189
+ | `SP-800-18r2` | Rev 2 | 2026-08-08 | 1,313,448 | `640f9124469f285f…` |
190
+ | `SP-800-218` | 1.1 | 2026-08-08 | 739,891 | `617746e553a9e2da…` |
191
+ | `SP-800-218A` | Initial | 2026-08-08 | 650,661 | `e088c8bc75716824…` |
192
+ | `SP-800-30r1` | Rev 1 | 2026-08-08 | 826,897 | `f214087f0bdb3593…` |
193
+ | `SP-800-37r2` | Rev 2 | 2026-08-08 | 2,270,327 | `4f75e1136bb905a6…` |
194
+ | `SP-800-39` | Initial (in force) | 2026-08-08 | 1,228,127 | `cf680760d171fc59…` |
195
+ | `SP-800-53B-HIGH` | Rev 5 (OSCAL 5.2.0) | 2026-08-08 | 12,492 | `60576970caef91b2…` |
196
+ | `SP-800-53B-LOW` | Rev 5 (OSCAL 5.2.0) | 2026-08-08 | 7,234 | `8fd206017c8d718b…` |
197
+ | `SP-800-53B-MODERATE` | Rev 5 (OSCAL 5.2.0) | 2026-08-08 | 10,498 | `9030dbf1f1316994…` |
198
+ | `SP-800-53B-PRIVACY` | Rev 5 (OSCAL 5.2.0) | 2026-08-08 | 6,064 | `7e650c4397ad633e…` |
199
+ | `SP-800-53r5` | Rev 5 (OSCAL 5.2.0) | 2026-08-08 | 10,442,037 | `01f37cf90ea99d92…` |
200
+ | `SP-800-60v1r1` | Vol 1 Rev 1 | 2026-08-08 | 338,329 | `6f13f57f11697efc…` |
201
+ | `SP-800-60v2r1` | Vol 2 Rev 1 | 2026-08-08 | 1,193,436 | `0b4c5128b39a90f1…` |
202
+
203
+ `SP-800-53Ar5` rows cite the `SP-800-53r5` catalog hash, because that is the artifact they were
204
+ extracted from.
205
+
206
+ ## Limitations
207
+
208
+ - **PDF section coverage is partial and best-effort.** Layout is not structure. Per-unit rows
209
+ (controls, tasks, subcategories, practices, definitions) are high-confidence; `section` rows are
210
+ the residue of heading detection. Content loss to furniture stripping is under 1% for most
211
+ documents and about 8% for SP 800-218, whose bold bullet lists and two-line headings fragment
212
+ worst.
213
+ - **Assessment objectives and methods are one row per control**, not per leaf clause. A single
214
+ determination statement ("account managers are assigned;") is not retrievable on its own. This
215
+ keeps the corpus at ~5.5k coherent rows rather than ~13k fragments.
216
+ - **About 97 mid-sentence fragments were rejected rather than published.** PDF page breaks,
217
+ footnote interleaving and multi-column layout sometimes hand the extractor a passage that starts
218
+ partway through a sentence (`transparent the risk perceptions that organizations routinely
219
+ use…`). Those rows are dropped under `midsentence_fragment` and logged with the text that was
220
+ discarded. Two consequences worth knowing: a small amount of real guidance — mostly in SP
221
+ 800-30r1 and SP 800-37r2 — is missing from the corpus, and section coverage of those documents is
222
+ therefore not continuous. Repairing the fragments would mean stitching text across page
223
+ boundaries, which risks joining passages that were never adjacent; dropping them was the more
224
+ conservative choice.
225
+ - **CNSSI 1253 and DoDI 8510.01 are absent** from v1 — cnss.gov and esd.whs.mil block scripted
226
+ retrieval, and their control tables were out of scope for v1 regardless.
227
+ - **SP 800-60 Volume 2 Appendix E is absent** (see exclusions). The information-type entries it
228
+ supports — 113 `D.x` rows — are present.
229
+ - **The AI RMF Playbook is a rolling web resource.** Its rows reflect the version retrieved on the
230
+ date above and will drift as NIST updates it.
231
+ - **Nineteen rows fell outside the length bounds** and were rejected: one AI RMF subcategory
232
+ (`MAP 1.5`, which the Playbook carries in full), two FIPS 199 glossary terms, and sixteen
233
+ one-line glossary cross-references of the form "See authorization boundary."
234
+ - **This corpus reflects publications as of the build date.** NIST revises documents, sometimes
235
+ without notice — SP 800-18 Rev 1 was withdrawn six weeks before this build. Re-run the pipeline
236
+ rather than assuming currency.
237
+ - **Not legal or compliance advice.** These are reference texts; authorization decisions belong to
238
+ the authorizing official.
239
+
240
+ ## License
241
+
242
+ Source documents are works of the United States Government and are in the public domain under
243
+ 17 U.S.C. § 105. No copyright is claimed in them. The compilation, curation, manifest, and derived
244
+ structure are released under **CC0 1.0 Universal**.
245
+
246
+ ## Maintainer & citation
247
+
248
+ Maintained by **[@ezesecops](https://github.com/ezesecops)** — <https://ezesecops.com>
249
+
250
+ ```bibtex
251
+ @misc{rmf_ato_core_2026,
252
+ author = {Anene, Ebubeze},
253
+ title = {RMF/ATO Core Corpus: a curated, provenance-tracked NIST RMF and AI governance dataset},
254
+ year = {2026},
255
+ publisher = {Hugging Face},
256
+ howpublished = {\url{https://huggingface.co/datasets/ezesecops/rmf-ato-core}},
257
+ note = {Built 2026-08-08 from current-revision NIST publications}
258
+ }
259
+ ```
260
+
261
+ **Found a bad row?** That is the most useful thing you can report. Open an issue at
262
+ <https://github.com/ezesecops/rmf-ato-core/issues> with the row `id` — every row traces back
263
+ through `sha256_source` to the exact artifact it came from, so problems are reproducible.