@blamejs/exceptd-skills 0.9.4 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/verify.js CHANGED
@@ -161,6 +161,41 @@ function loadManifest() {
161
161
  return JSON.parse(fs.readFileSync(MANIFEST_PATH, 'utf8'));
162
162
  }
163
163
 
164
+ /**
165
+ * Public key fingerprint(s) of the DER-encoded SPKI public key,
166
+ * base64-encoded. Emits both:
167
+ *
168
+ * - SHA-256: the universal convention. Matches `ssh-keygen -lf`
169
+ * output for the same key, matches GPG / npm provenance / CT log
170
+ * fingerprints. Operators cross-referencing the key against an
171
+ * external pin will use this line.
172
+ *
173
+ * - SHA3-512: SHA-3 family (Keccak / sponge construction), different
174
+ * mathematical foundation than SHA-2. Hedges against future SHA-2
175
+ * weaknesses. 512-bit output (~88 b64 chars) so collision +
176
+ * second-preimage resistance both exceed the 256-bit Ed25519 key
177
+ * itself. SHA-3 is also the hash family ML-KEM / ML-DSA use
178
+ * internally, so this fingerprint travels well with the project's
179
+ * PQ posture.
180
+ *
181
+ * @param {string|null} pemKey PEM-encoded public key (or null)
182
+ * @returns {{sha256: string, sha3_512: string}|{error: string}}
183
+ */
184
+ function publicKeyFingerprint(pemKey) {
185
+ if (!pemKey) return { sha256: '(no key)', sha3_512: '(no key)' };
186
+ try {
187
+ const keyObj = crypto.createPublicKey(pemKey);
188
+ const der = keyObj.export({ type: 'spki', format: 'der' });
189
+ return {
190
+ sha256: 'SHA256:' + crypto.createHash('sha256').update(der).digest('base64'),
191
+ sha3_512: 'SHA3-512:' + crypto.createHash('sha3-512').update(der).digest('base64'),
192
+ };
193
+ } catch (err) {
194
+ const errStr = `(invalid: ${err.message})`;
195
+ return { sha256: errStr, sha3_512: errStr };
196
+ }
197
+ }
198
+
164
199
  // --- CLI ---
165
200
 
166
201
  if (require.main === module) {
@@ -203,7 +238,17 @@ if (require.main === module) {
203
238
  if (result.no_key) process.exit(1);
204
239
 
205
240
  const total = Object.values(result).filter(Array.isArray).flat().length;
241
+ // Compute + print the public key fingerprints so operators can pin
242
+ // the key out-of-band. Without this, a swapped keys/public.pem
243
+ // would still produce a "verified" message — undetectable from the
244
+ // exit code alone. Dual fingerprint (SHA-256 + SHA3-512) gives
245
+ // ssh-keygen compatibility AND a SHA-3 family diversity hedge.
246
+ const pubKey = loadPublicKey();
247
+ const fp = publicKeyFingerprint(pubKey);
206
248
  console.log(`\n[verify] ${result.valid.length}/${total} skills passed Ed25519 verification.`);
249
+ console.log(`[verify] Public key: keys/public.pem`);
250
+ console.log(`[verify] ${fp.sha256}`);
251
+ console.log(`[verify] ${fp.sha3_512}`);
207
252
 
208
253
  if (result.invalid.length > 0) { console.error('[verify] TAMPERED:', result.invalid.join(', ')); process.exit(1); }
209
254
  if (result.missing_sig.length > 0) { console.warn('[verify] UNSIGNED:', result.missing_sig.join(', ')); process.exit(1); }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "_comment": "Auto-generated by scripts/refresh-manifest-snapshot.js — do not hand-edit. Public skill surface used by check-manifest-snapshot.js to detect breaking removals.",
3
- "_generated_at": "2026-05-12T03:27:57.933Z",
3
+ "_generated_at": "2026-05-12T05:39:54.946Z",
4
4
  "atlas_version": "5.1.0",
5
5
  "skill_count": 38,
6
6
  "skills": [
package/manifest.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "exceptd-security",
3
- "version": "0.9.4",
3
+ "version": "0.10.0",
4
4
  "description": "AI security skills grounded in mid-2026 threat reality, not stale framework documentation",
5
5
  "homepage": "https://exceptd.com",
6
6
  "license": "Apache-2.0",
@@ -52,7 +52,7 @@
52
52
  ],
53
53
  "last_threat_review": "2026-05-01",
54
54
  "signature": "WprHkO1KOjQtCBj6/EJghBTNyNKJhn7O2HDbAQZPi5jn4flwHpSrtP8LC15a4Unoh+xiIIgGhvTHZIQFHGMpBQ==",
55
- "signed_at": "2026-05-12T03:27:57.857Z",
55
+ "signed_at": "2026-05-12T05:39:54.542Z",
56
56
  "cwe_refs": [
57
57
  "CWE-125",
58
58
  "CWE-362",
@@ -116,7 +116,7 @@
116
116
  ],
117
117
  "last_threat_review": "2026-05-01",
118
118
  "signature": "fg20bOXGRkPUdLmegeXpTM4hnzl/ArgcVc88rItZN5DdsnFnzPgUU1PwCI82zooyj2GfxJHYjxNkq5qd2zNPBg==",
119
- "signed_at": "2026-05-12T03:27:57.858Z",
119
+ "signed_at": "2026-05-12T05:39:54.544Z",
120
120
  "cwe_refs": [
121
121
  "CWE-1039",
122
122
  "CWE-1426",
@@ -179,7 +179,7 @@
179
179
  ],
180
180
  "last_threat_review": "2026-05-01",
181
181
  "signature": "6JuSzkSSFzFHEZ3ANzqjtIbKPOkwJeKhQ+8WAPB4+dTRvDSeg46n3D88XfGaNd2z7pmg/i8p9ZoImQcHFS4BCg==",
182
- "signed_at": "2026-05-12T03:27:57.859Z",
182
+ "signed_at": "2026-05-12T05:39:54.544Z",
183
183
  "cwe_refs": [
184
184
  "CWE-22",
185
185
  "CWE-345",
@@ -225,7 +225,7 @@
225
225
  "framework_gaps": [],
226
226
  "last_threat_review": "2026-05-01",
227
227
  "signature": "PYSw9abiYfW+y7IkY8udJG5LSds2a4rMimlw3rrdD0zE3vunEeV/y7oTmDD4o83OqHSCKNzF/7vMhvd/noqICQ==",
228
- "signed_at": "2026-05-12T03:27:57.859Z"
228
+ "signed_at": "2026-05-12T05:39:54.545Z"
229
229
  },
230
230
  {
231
231
  "name": "compliance-theater",
@@ -256,7 +256,7 @@
256
256
  ],
257
257
  "last_threat_review": "2026-05-01",
258
258
  "signature": "BMFmmJYP3HsHIjUqnhw8E3MiMGZJsI/eDq51we+nxUicZ8nFUQT9DhmRntAqOs6BUnsfiQNNLc/rrsNh8yg1CQ==",
259
- "signed_at": "2026-05-12T03:27:57.860Z"
259
+ "signed_at": "2026-05-12T05:39:54.545Z"
260
260
  },
261
261
  {
262
262
  "name": "exploit-scoring",
@@ -285,7 +285,7 @@
285
285
  ],
286
286
  "last_threat_review": "2026-05-01",
287
287
  "signature": "VGPyDwy5BRlpn1lZthhPB6ytb4ZcU2j0KtCZbaMkyLdMugQJtK2yEuwrsDH4yEtAhTB6/A4B3eSygJckum49Ag==",
288
- "signed_at": "2026-05-12T03:27:57.860Z"
288
+ "signed_at": "2026-05-12T05:39:54.546Z"
289
289
  },
290
290
  {
291
291
  "name": "rag-pipeline-security",
@@ -322,7 +322,7 @@
322
322
  ],
323
323
  "last_threat_review": "2026-05-01",
324
324
  "signature": "XkFGpsNnXBVslkQ48usEu9l1LjPiV2ppW+M4B63zXFBP2Puh52qYCffEPjUHYhoO5bjgTM7yCbK8XF/Dzk5wBw==",
325
- "signed_at": "2026-05-12T03:27:57.860Z",
325
+ "signed_at": "2026-05-12T05:39:54.546Z",
326
326
  "cwe_refs": [
327
327
  "CWE-1395",
328
328
  "CWE-1426"
@@ -379,7 +379,7 @@
379
379
  ],
380
380
  "last_threat_review": "2026-05-01",
381
381
  "signature": "1Xqy7Kxxy6GpTvuYJPdllPzVDRFxb7N6AuxKuoaO4v91CiZLmiXt0sTIWImKJ3p9Eup6rJNDdsY71dolFhHNBA==",
382
- "signed_at": "2026-05-12T03:27:57.861Z",
382
+ "signed_at": "2026-05-12T05:39:54.546Z",
383
383
  "d3fend_refs": [
384
384
  "D3-CA",
385
385
  "D3-CSPP",
@@ -414,7 +414,7 @@
414
414
  "framework_gaps": [],
415
415
  "last_threat_review": "2026-05-01",
416
416
  "signature": "QNLOmAL54S/Cmk4cdO4L2BCGkqZ/FgY4UBsKWtg/EEW+YXF5ev+a8XsUT8q5veuUa2VYcYna7rD1iAnE+2PDBA==",
417
- "signed_at": "2026-05-12T03:27:57.861Z",
417
+ "signed_at": "2026-05-12T05:39:54.546Z",
418
418
  "cwe_refs": [
419
419
  "CWE-1188"
420
420
  ]
@@ -442,7 +442,7 @@
442
442
  "framework_gaps": [],
443
443
  "last_threat_review": "2026-05-01",
444
444
  "signature": "aFHq4cSl3CKchnVITxx+BrAEWD33WtFFJoQtwAug5g9R3/3ABtjaXYGVQaZcdcG1AIZkMoGSPywgLQWDY7ZDCw==",
445
- "signed_at": "2026-05-12T03:27:57.861Z"
445
+ "signed_at": "2026-05-12T05:39:54.547Z"
446
446
  },
447
447
  {
448
448
  "name": "global-grc",
@@ -474,7 +474,7 @@
474
474
  "framework_gaps": [],
475
475
  "last_threat_review": "2026-05-01",
476
476
  "signature": "viCTUWdy6euvd2KTAo6sLvarK/FZkDtYGocxBt0H+fY94kLQGW8K5cSpqIWdUF5NUytSHBCiG4YcSze8P9Z/BQ==",
477
- "signed_at": "2026-05-12T03:27:57.862Z"
477
+ "signed_at": "2026-05-12T05:39:54.547Z"
478
478
  },
479
479
  {
480
480
  "name": "zeroday-gap-learn",
@@ -501,7 +501,7 @@
501
501
  "framework_gaps": [],
502
502
  "last_threat_review": "2026-05-01",
503
503
  "signature": "6PkUaHQi3Hxuqq/Jp4GYckvfqVEofmeT87NUH0T+pwyjlc+xZkoqNPn65f7ldciEPL86JIPi3/dDTKQbIFFBCw==",
504
- "signed_at": "2026-05-12T03:27:57.862Z"
504
+ "signed_at": "2026-05-12T05:39:54.547Z"
505
505
  },
506
506
  {
507
507
  "name": "pqc-first",
@@ -553,7 +553,7 @@
553
553
  ],
554
554
  "last_threat_review": "2026-05-01",
555
555
  "signature": "ZenFTEzWx+DzrSXlNXhbZ70vOdJSXfrnKkAwqMlBf5nlDf38V1/hG4XCKj43snQXWr4mVJOX6ilqFLTYNIjnBw==",
556
- "signed_at": "2026-05-12T03:27:57.862Z",
556
+ "signed_at": "2026-05-12T05:39:54.548Z",
557
557
  "cwe_refs": [
558
558
  "CWE-327"
559
559
  ],
@@ -600,7 +600,7 @@
600
600
  ],
601
601
  "last_threat_review": "2026-05-01",
602
602
  "signature": "ih0vpd2v2zS31JSJv7SnABoya8JlJdrXZXx4rBnrsV3Assj+dbjAP0pQ1HMT/5RX8yTTswRQsg0bJV3qmbJ3Bw==",
603
- "signed_at": "2026-05-12T03:27:57.863Z"
603
+ "signed_at": "2026-05-12T05:39:54.548Z"
604
604
  },
605
605
  {
606
606
  "name": "security-maturity-tiers",
@@ -637,7 +637,7 @@
637
637
  ],
638
638
  "last_threat_review": "2026-05-01",
639
639
  "signature": "Lv8dHiwIqUbNsywCCB/+pYWGF+MHCvxVn1IAvR7Cnif5fy0sICv0N4SVsSb621qAAkHNshpfxqwuhbuQnE1TBA==",
640
- "signed_at": "2026-05-12T03:27:57.863Z",
640
+ "signed_at": "2026-05-12T05:39:54.549Z",
641
641
  "cwe_refs": [
642
642
  "CWE-1188"
643
643
  ]
@@ -672,7 +672,7 @@
672
672
  "framework_gaps": [],
673
673
  "last_threat_review": "2026-05-11",
674
674
  "signature": "BS+wrL28HHYhBpe+v84VLoq9KPBXu6alfG968katfGIoLNYQueaHP931bRmlkrjfeb6qbDf067GWdPEh7nroAw==",
675
- "signed_at": "2026-05-12T03:27:57.863Z"
675
+ "signed_at": "2026-05-12T05:39:54.549Z"
676
676
  },
677
677
  {
678
678
  "name": "attack-surface-pentest",
@@ -743,7 +743,7 @@
743
743
  "PTES revision incorporating AI-surface enumeration"
744
744
  ],
745
745
  "signature": "vLhIYT/CC3IzxMRa+UPeqGSZTvthuwUeTMGNFMm37+TaEk0TtfwPrPyrBJLHw4W6Wt7+pufjHs46X3nTgzoRAg==",
746
- "signed_at": "2026-05-12T03:27:57.864Z"
746
+ "signed_at": "2026-05-12T05:39:54.549Z"
747
747
  },
748
748
  {
749
749
  "name": "fuzz-testing-strategy",
@@ -803,7 +803,7 @@
803
803
  "OSS-Fuzz-Gen / AI-assisted harness generation becoming the default expectation for OSS maintainers"
804
804
  ],
805
805
  "signature": "TOcQLy/427cuf0Lw90J7A0oIeuhUmf9NXb6tOUS5K3SazCKTJujPgYSVAPZOYf1zZrRAY/aq0iqELd5cLyk5DA==",
806
- "signed_at": "2026-05-12T03:27:57.864Z"
806
+ "signed_at": "2026-05-12T05:39:54.549Z"
807
807
  },
808
808
  {
809
809
  "name": "dlp-gap-analysis",
@@ -878,7 +878,7 @@
878
878
  "Quebec Law 25, India DPDPA, KSA PDPL enforcement actions naming AI-tool prompt data as in-scope personal information"
879
879
  ],
880
880
  "signature": "u4IN7escQa5V+OgdtaJXLdvhmNiGZsdmGOvebTLZ30WoImT+WiksvaqSa0POGdbr6HzFkALe2RrZEH9Tr0U6Dg==",
881
- "signed_at": "2026-05-12T03:27:57.864Z"
881
+ "signed_at": "2026-05-12T05:39:54.550Z"
882
882
  },
883
883
  {
884
884
  "name": "supply-chain-integrity",
@@ -955,7 +955,7 @@
955
955
  "OpenSSF model-signing — emerging Sigstore-based signing standard for ML model weights; track for production adoption"
956
956
  ],
957
957
  "signature": "eTGQJ3gnG24WggfwuFNNIFOWV/ttPxTa3pvx9OH28m5KDS1a4ZmOR7K8y01wk/su8bH0ClYYRfoBfKQOtRswAg==",
958
- "signed_at": "2026-05-12T03:27:57.864Z"
958
+ "signed_at": "2026-05-12T05:39:54.550Z"
959
959
  },
960
960
  {
961
961
  "name": "defensive-countermeasure-mapping",
@@ -1012,7 +1012,7 @@
1012
1012
  ],
1013
1013
  "last_threat_review": "2026-05-11",
1014
1014
  "signature": "q7gFLPoqf/8bqATR6gt/nj0EoyUOlfzi+bZ0bT3pC9KW7O6M/ji9fT+AXSGNp6PKd+70ACb3mkMGmWgjLpQXCg==",
1015
- "signed_at": "2026-05-12T03:27:57.865Z"
1015
+ "signed_at": "2026-05-12T05:39:54.550Z"
1016
1016
  },
1017
1017
  {
1018
1018
  "name": "identity-assurance",
@@ -1079,7 +1079,7 @@
1079
1079
  "d3fend_refs": [],
1080
1080
  "last_threat_review": "2026-05-11",
1081
1081
  "signature": "pX8rhrrzuyG3iRrPORLqTZAjzGdWK/bKPUGJG5WHSZcv4LB0kQXOit4sHG0exdXxI6HY8jyX67QY4r5vEHHACw==",
1082
- "signed_at": "2026-05-12T03:27:57.865Z"
1082
+ "signed_at": "2026-05-12T05:39:54.550Z"
1083
1083
  },
1084
1084
  {
1085
1085
  "name": "ot-ics-security",
@@ -1135,7 +1135,7 @@
1135
1135
  "d3fend_refs": [],
1136
1136
  "last_threat_review": "2026-05-11",
1137
1137
  "signature": "ypb8kNZQRdyu5mWeveB7sjCjNKXS1yXvjDJv88muzwhOs/a4Fu/Gb532js5NKyy+eCw/emrphpTZaL8R9a2lBA==",
1138
- "signed_at": "2026-05-12T03:27:57.865Z"
1138
+ "signed_at": "2026-05-12T05:39:54.551Z"
1139
1139
  },
1140
1140
  {
1141
1141
  "name": "coordinated-vuln-disclosure",
@@ -1187,7 +1187,7 @@
1187
1187
  "NYDFS 23 NYCRR 500 amendments potentially adding explicit CVD program requirements"
1188
1188
  ],
1189
1189
  "signature": "346Lt+277ycRNsyAOGwLSONi4awgxKy3hP9G+BWjwaa8ySmTeqbYsbyyhtxjeohk9bV2SF+Hl2q4JdSvc/2qCQ==",
1190
- "signed_at": "2026-05-12T03:27:57.865Z"
1190
+ "signed_at": "2026-05-12T05:39:54.551Z"
1191
1191
  },
1192
1192
  {
1193
1193
  "name": "threat-modeling-methodology",
@@ -1237,7 +1237,7 @@
1237
1237
  "PASTA v2 updates incorporating AI/ML application threats"
1238
1238
  ],
1239
1239
  "signature": "ewTvG5vu3ngFHyXgBur5vSKDFQsOZx0x79djGMricl7LCvQf5//OG6LZKXa+AOuEq58prRS+HgzrFA1DiTfeCQ==",
1240
- "signed_at": "2026-05-12T03:27:57.866Z"
1240
+ "signed_at": "2026-05-12T05:39:54.551Z"
1241
1241
  },
1242
1242
  {
1243
1243
  "name": "webapp-security",
@@ -1311,7 +1311,7 @@
1311
1311
  "d3fend_refs": [],
1312
1312
  "last_threat_review": "2026-05-11",
1313
1313
  "signature": "ZHjbKu0Em92Kimr2esL1g93mf9TmcsChBhVEMWf/lFrjeLcg8nyHEIcDstIZ3FWYgc6MQNHnc3Rup3Xp/Za1Cw==",
1314
- "signed_at": "2026-05-12T03:27:57.866Z"
1314
+ "signed_at": "2026-05-12T05:39:54.552Z"
1315
1315
  },
1316
1316
  {
1317
1317
  "name": "ai-risk-management",
@@ -1361,7 +1361,7 @@
1361
1361
  "d3fend_refs": [],
1362
1362
  "last_threat_review": "2026-05-11",
1363
1363
  "signature": "1KRxjCbAX0Rs5NTOioi1w/f1SOzDQrtRoXjTDtzEwJ+d1QzFf9cqmBlp0uXmGpL0bzEaHWIctjigSychmoL2Dw==",
1364
- "signed_at": "2026-05-12T03:27:57.866Z"
1364
+ "signed_at": "2026-05-12T05:39:54.552Z"
1365
1365
  },
1366
1366
  {
1367
1367
  "name": "sector-healthcare",
@@ -1421,7 +1421,7 @@
1421
1421
  "d3fend_refs": [],
1422
1422
  "last_threat_review": "2026-05-11",
1423
1423
  "signature": "eiajFh7w7d4g+/crGalTtw9Qsu0deVsdHkdthZSy595ifGmgu0zaFD8usKThbPhOdUCCclTYkZYz5GalQmkhCw==",
1424
- "signed_at": "2026-05-12T03:27:57.867Z"
1424
+ "signed_at": "2026-05-12T05:39:54.552Z"
1425
1425
  },
1426
1426
  {
1427
1427
  "name": "sector-financial",
@@ -1502,7 +1502,7 @@
1502
1502
  "TIBER-EU framework v2.0 alignment with DORA TLPT RTS (JC 2024/40); cross-recognition with CBEST and iCAST"
1503
1503
  ],
1504
1504
  "signature": "iSZR/fYESQVyjkcqj+O+yzU0BQfaELH5s7WizzUTWvDPDTD2ZyOnZTT1r/Zfx2l4mbPmVeFGWdYnnVFTk/i3Aw==",
1505
- "signed_at": "2026-05-12T03:27:57.867Z"
1505
+ "signed_at": "2026-05-12T05:39:54.553Z"
1506
1506
  },
1507
1507
  {
1508
1508
  "name": "sector-federal-government",
@@ -1571,7 +1571,7 @@
1571
1571
  "Australia PSPF 2024 revision and ISM quarterly updates — track for Essential Eight Maturity Level requirements for federal entities"
1572
1572
  ],
1573
1573
  "signature": "Wjdo5YXEL8XeNZkaEueG1DOUoyalstNPzQkxD/cwP5iMrJWg/Ly+sC0Oluuqm3aU7d63z55PrbGQCJD0XVZqBg==",
1574
- "signed_at": "2026-05-12T03:27:57.867Z"
1574
+ "signed_at": "2026-05-12T05:39:54.553Z"
1575
1575
  },
1576
1576
  {
1577
1577
  "name": "sector-energy",
@@ -1636,7 +1636,7 @@
1636
1636
  "ICS-CERT advisory feed (https://www.cisa.gov/news-events/cybersecurity-advisories/ics-advisories) for vendor CVEs in Siemens, Rockwell, Schneider Electric, ABB, GE Vernova, Hitachi Energy, AVEVA / OSIsoft PI"
1637
1637
  ],
1638
1638
  "signature": "c/l7dOHe0Zj6Ag3abUaEie6o0f8M4rhY5aPI9/wG4z6FDue9PzCVw8vUGoITFgg89g97lMfy2C3CE2PegQoFCw==",
1639
- "signed_at": "2026-05-12T03:27:57.868Z"
1639
+ "signed_at": "2026-05-12T05:39:54.553Z"
1640
1640
  },
1641
1641
  {
1642
1642
  "name": "api-security",
@@ -1705,7 +1705,7 @@
1705
1705
  "d3fend_refs": [],
1706
1706
  "last_threat_review": "2026-05-11",
1707
1707
  "signature": "9FgcJvYeo07QxQ+mnVRQk4jYLDMO/AVSXMs8cueO2f/qMOTQmrhBMVhj5ze7hzvXpGkp7EK/3Q1XKqde61JMAg==",
1708
- "signed_at": "2026-05-12T03:27:57.868Z"
1708
+ "signed_at": "2026-05-12T05:39:54.554Z"
1709
1709
  },
1710
1710
  {
1711
1711
  "name": "cloud-security",
@@ -1786,7 +1786,7 @@
1786
1786
  "CISA KEV additions for cloud-control-plane CVEs (IMDSv1 abuses, federation token mishandling, cross-tenant boundary failures); CISA Cybersecurity Advisories for cross-cloud advisories"
1787
1787
  ],
1788
1788
  "signature": "xRA0XZf7VPtuBtbsm41bay9yBLphw/hlL3YxIUrpko5g9ldM3oJe9o1qSwzIj/wSnQSI29qqPpNsnlks+HEOCA==",
1789
- "signed_at": "2026-05-12T03:27:57.868Z"
1789
+ "signed_at": "2026-05-12T05:39:54.554Z"
1790
1790
  },
1791
1791
  {
1792
1792
  "name": "container-runtime-security",
@@ -1848,7 +1848,7 @@
1848
1848
  "d3fend_refs": [],
1849
1849
  "last_threat_review": "2026-05-11",
1850
1850
  "signature": "GcU50DStuN1gU/Evm/sFRgeieQbqffVp12rgbGnasRX89Q7kM4ltFXB+bgCXHIvICzYb78hPIifWQb9UVupWBQ==",
1851
- "signed_at": "2026-05-12T03:27:57.869Z"
1851
+ "signed_at": "2026-05-12T05:39:54.554Z"
1852
1852
  },
1853
1853
  {
1854
1854
  "name": "mlops-security",
@@ -1919,7 +1919,7 @@
1919
1919
  "MITRE ATLAS v5.2 — track AML.T0010 sub-technique expansion and any new MLOps-pipeline-specific TTPs"
1920
1920
  ],
1921
1921
  "signature": "onIazpFoL1t4PMNRsoF06ggnl7BzCKjt0x+ZmVfWfyt1V06DgllsrbN3AAz4+g4jW2Sc71q0vIFKfwEUWpGVAQ==",
1922
- "signed_at": "2026-05-12T03:27:57.869Z"
1922
+ "signed_at": "2026-05-12T05:39:54.555Z"
1923
1923
  },
1924
1924
  {
1925
1925
  "name": "incident-response-playbook",
@@ -1981,7 +1981,7 @@
1981
1981
  "NYDFS 23 NYCRR 500.17 amendments tightening ransom-payment 24h disclosure operationalization"
1982
1982
  ],
1983
1983
  "signature": "P0Yv4CtqbnBNP6nSIxQUYYHL7T7ci+iE7iE2UXVfnMPeWVdKG2nvRePjBXc3JZTLima1Txn/I5ocDNhLTIeUAQ==",
1984
- "signed_at": "2026-05-12T03:27:57.869Z"
1984
+ "signed_at": "2026-05-12T05:39:54.555Z"
1985
1985
  },
1986
1986
  {
1987
1987
  "name": "email-security-anti-phishing",
@@ -2034,7 +2034,7 @@
2034
2034
  "d3fend_refs": [],
2035
2035
  "last_threat_review": "2026-05-11",
2036
2036
  "signature": "2pv81lLRbazpHqundCANb3YiLB4lkVsYctIDvI8rxSvHxhPS9jYXqmAoB5APSdDuOaew6XqpfZOehQUj9WmyBw==",
2037
- "signed_at": "2026-05-12T03:27:57.870Z"
2037
+ "signed_at": "2026-05-12T05:39:54.555Z"
2038
2038
  },
2039
2039
  {
2040
2040
  "name": "age-gates-child-safety",
@@ -2102,7 +2102,7 @@
2102
2102
  "US state adult-site age-verification laws — 19+ states by mid-2026 (TX HB 18 upheld by SCOTUS June 2025 in Free Speech Coalition v. Paxton); track ongoing challenges in remaining states"
2103
2103
  ],
2104
2104
  "signature": "BJ/YYnGVXeSBaR9oWAVrcNX7Wz+kE8R4CghX6+XEI/qY89fyrkKNNwo2veqqf49wffJhHVJ1wTp8ZDECjNp+Dw==",
2105
- "signed_at": "2026-05-12T03:27:57.870Z"
2105
+ "signed_at": "2026-05-12T05:39:54.556Z"
2106
2106
  }
2107
2107
  ]
2108
2108
  }
@@ -37,6 +37,17 @@ function dispatch(findings) {
37
37
  if (seen.has(skill.name)) continue;
38
38
  seen.add(skill.name);
39
39
 
40
+ // Preserve per-CVE evidence so operators see the actual CVE IDs
41
+ // (not just an aggregate count). Earlier output read "1 CISA
42
+ // KEV CVE with RWEP >= 90" — the entry below now also carries
43
+ // the CVE ID + RWEP score so the print path can render
44
+ // "1 CISA KEV CVE with RWEP >= 90 (CVE-2026-31431 / Copy Fail
45
+ // RWEP 90)".
46
+ const evidence = {};
47
+ if (Array.isArray(finding.items) && finding.items.length > 0) evidence.items = finding.items;
48
+ if (finding.cve_id) evidence.cve_id = finding.cve_id;
49
+ if (finding.rwep_score !== undefined) evidence.rwep_score = finding.rwep_score;
50
+
40
51
  plan.push({
41
52
  skill_name: skill.name,
42
53
  skill_path: path.join(SKILLS_DIR, skill.name, 'skill.md'),
@@ -45,7 +56,8 @@ function dispatch(findings) {
45
56
  finding_severity: finding.severity,
46
57
  action_required: finding.action_required,
47
58
  priority: severityToPriority(finding.severity),
48
- last_threat_review: skill.last_threat_review || 'unknown'
59
+ last_threat_review: skill.last_threat_review || 'unknown',
60
+ evidence,
49
61
  });
50
62
  }
51
63
  }
@@ -59,12 +59,105 @@ async function main() {
59
59
  case 'watchlist':
60
60
  runWatchlist(args);
61
61
  break;
62
+ case 'framework-gap':
63
+ case 'framework-gap-analysis':
64
+ runFrameworkGap(args);
65
+ break;
62
66
  case 'help':
63
67
  default:
64
68
  printHelp();
65
69
  }
66
70
  }
67
71
 
72
+ // Programmatic runner for the framework-gap-analysis skill. Closes the
73
+ // dispatch loop — previously `exceptd dispatch` would say "run
74
+ // framework-gap-analysis" but the only thing the CLI could actually do
75
+ // was print the skill body. This subcommand executes the analytical
76
+ // path in lib/framework-gap.js so an operator (or a CI gate) can pipe
77
+ // the JSON into another tool.
78
+ //
79
+ // Usage:
80
+ // exceptd framework-gap <FRAMEWORK_ID|all> <SCENARIO|CVE-ID>
81
+ // exceptd framework-gap NIST-800-53 CVE-2026-31431
82
+ // exceptd framework-gap PCI-DSS-4.0 "prompt injection"
83
+ // exceptd framework-gap all CVE-2025-53773 --json
84
+ function runFrameworkGap(rawArgs) {
85
+ const fs = require('fs');
86
+ const path = require('path');
87
+ const { gapReport, theaterCheck } = require('../lib/framework-gap');
88
+
89
+ const args = rawArgs.filter(a => !a.startsWith('--'));
90
+ const flags = new Set(rawArgs.filter(a => a.startsWith('--')));
91
+ const jsonOut = flags.has('--json');
92
+
93
+ if (args.length < 2) {
94
+ console.error(`Usage: exceptd framework-gap <FRAMEWORK_ID|all> <SCENARIO|CVE-ID> [--json]
95
+ Examples:
96
+ exceptd framework-gap NIST-800-53 CVE-2026-31431
97
+ exceptd framework-gap PCI-DSS-4.0 "prompt injection"
98
+ exceptd framework-gap all CVE-2025-53773 --json`);
99
+ process.exit(2);
100
+ }
101
+
102
+ const root = path.join(__dirname, '..');
103
+ let controlGaps, cveCatalog;
104
+ try {
105
+ controlGaps = JSON.parse(fs.readFileSync(path.join(root, 'data', 'framework-control-gaps.json'), 'utf8'));
106
+ cveCatalog = JSON.parse(fs.readFileSync(path.join(root, 'data', 'cve-catalog.json'), 'utf8'));
107
+ } catch (err) {
108
+ console.error(`[framework-gap] cannot read catalog: ${err.message}`);
109
+ process.exit(2);
110
+ }
111
+
112
+ const requested = args[0].toLowerCase() === 'all'
113
+ ? [...new Set(Object.values(controlGaps).flatMap(g =>
114
+ Array.isArray(g.framework) ? g.framework : [g.framework]
115
+ ).filter(f => f && f !== 'ALL'))]
116
+ : [args[0]];
117
+ const scenario = args[1];
118
+
119
+ const report = gapReport(requested, scenario, controlGaps, cveCatalog);
120
+ const theater = theaterCheck(controlGaps, cveCatalog);
121
+
122
+ if (jsonOut) {
123
+ console.log(JSON.stringify({ ...report, theater_findings: theater.findings, theater_score: theater.theater_score }, null, 2));
124
+ return;
125
+ }
126
+
127
+ // Human-readable output.
128
+ console.log(`\nFramework gap analysis — ${new Date().toISOString().slice(0, 10)}`);
129
+ console.log(`Scenario: ${scenario}`);
130
+ console.log(`Frameworks: ${requested.join(', ')}\n`);
131
+
132
+ for (const [fwId, result] of Object.entries(report.frameworks)) {
133
+ const flag = result.theater_exposure ? '⚠ THEATER RISK' : '✓ no scoped gaps';
134
+ console.log(`### ${fwId} — ${result.gap_count} matching control gap(s) — ${flag}`);
135
+ for (const g of result.gaps) {
136
+ console.log(` - ${g.id} (${g.control}) — status: ${g.status}`);
137
+ if (g.real_requirement) console.log(` real-requirement: ${g.real_requirement.slice(0, 160)}${g.real_requirement.length > 160 ? '…' : ''}`);
138
+ }
139
+ console.log();
140
+ }
141
+
142
+ if (report.universal_gaps.length > 0) {
143
+ console.log(`### Universal gaps (no jurisdiction covers these) — ${report.universal_gaps.length}`);
144
+ for (const g of report.universal_gaps) {
145
+ console.log(` - ${g.id || g.name}: ${(g.real_requirement || '').slice(0, 140)}`);
146
+ }
147
+ console.log();
148
+ }
149
+
150
+ if (report.theater_risks.length > 0) {
151
+ console.log(`### Theater risk controls (compliant but exposed) — ${report.theater_risks.length}`);
152
+ for (const t of report.theater_risks) {
153
+ console.log(` - ${t.control} → ${t.pattern} (framework: ${t.framework})`);
154
+ }
155
+ console.log();
156
+ }
157
+
158
+ console.log(`Summary: ${report.summary.total_gaps} matching gaps, ${report.summary.universal_gaps} universal, ${report.summary.theater_risk_controls} theater-risk controls`);
159
+ }
160
+
68
161
  // --- command implementations ---
69
162
 
70
163
  async function runScan() {
@@ -108,6 +201,18 @@ async function runDispatch() {
108
201
  console.log(`[${urgency}] ${item.skill_name}`);
109
202
  console.log(` Triggered by: ${item.triggered_by} (${item.finding_domain})`);
110
203
  console.log(` Action: ${item.action_required}`);
204
+ // Surface per-CVE detail when the underlying finding had a list of
205
+ // CVEs (e.g. cisa_kev_high_rwep). Operators need to know WHICH
206
+ // CVE — not just an aggregate count.
207
+ if (item.evidence && Array.isArray(item.evidence.items) && item.evidence.items.length > 0) {
208
+ console.log(` Evidence:`);
209
+ for (const ev of item.evidence.items) {
210
+ const parts = [ev.id, ev.name && `"${ev.name}"`, ev.rwep != null && `RWEP ${ev.rwep}`].filter(Boolean);
211
+ console.log(` - ${parts.join(' · ')}`);
212
+ }
213
+ } else if (item.evidence && item.evidence.cve_id) {
214
+ console.log(` Evidence: ${item.evidence.cve_id}${item.evidence.rwep_score != null ? ` · RWEP ${item.evidence.rwep_score}` : ''}`);
215
+ }
111
216
  console.log(` Path: ${item.skill_path}`);
112
217
  console.log();
113
218
  }
@@ -202,12 +307,21 @@ async function runReport(format) {
202
307
  }
203
308
 
204
309
  console.log('\n## Skill Currency');
205
- const stale = currency_report.filter(s => s.currency_score < 70);
206
- if (stale.length > 0) {
207
- console.log(`${stale.length} skills need review:`);
208
- for (const s of stale) console.log(` - ${s.skill}: ${s.currency_score}% (${s.days_since_review}d old)`);
310
+ // Two tiers, named consistently and explained inline so the reader
311
+ // doesn't have to mentally map two thresholds onto the same list.
312
+ const critical = currency_report.filter(s => s.currency_score < 50);
313
+ const stale = currency_report.filter(s => s.currency_score >= 50 && s.currency_score < 70);
314
+ if (critical.length === 0 && stale.length === 0) {
315
+ console.log('All skills current (>= 70% currency, reviewed within the last 60 days).');
209
316
  } else {
210
- console.log('All skills current.');
317
+ if (critical.length > 0) {
318
+ console.log(`Critical-stale (< 50% currency, > 90 days since review) — ${critical.length}:`);
319
+ for (const s of critical) console.log(` - ${s.skill}: ${s.currency_score}% (${s.days_since_review}d old)`);
320
+ }
321
+ if (stale.length > 0) {
322
+ console.log(`Stale (50-69% currency, 30-90 days since review) — ${stale.length}:`);
323
+ for (const s of stale) console.log(` - ${s.skill}: ${s.currency_score}% (${s.days_since_review}d old)`);
324
+ }
211
325
  }
212
326
  }
213
327
 
@@ -181,13 +181,19 @@ function getStageInstructions(stageName, previousOutput) {
181
181
  return instructions[stageName] || null;
182
182
  }
183
183
 
184
- function _currencyScore(daysSinceReview, forwardWatchCount) {
184
+ function _currencyScore(daysSinceReview, _forwardWatchCount) {
185
+ // Currency = function of last_threat_review age, period. Earlier
186
+ // versions subtracted 5 per forward_watch entry, which created a
187
+ // perverse incentive: skills that diligently track upcoming threats
188
+ // (e.g. cloud-security with 14 forward_watch items) scored 30%
189
+ // currency even on the day after a review. forward_watch is a
190
+ // signal of ACTIVE maintenance, not staleness, so the count no
191
+ // longer affects the score. The arg is retained for ABI compat.
185
192
  let score = 100;
186
193
  if (daysSinceReview > 180) score -= 30;
187
194
  else if (daysSinceReview > 90) score -= 20;
188
195
  else if (daysSinceReview > 60) score -= 10;
189
196
  else if (daysSinceReview > 30) score -= 5;
190
- score -= forwardWatchCount * 5;
191
197
  return Math.max(0, score);
192
198
  }
193
199