@blamejs/exceptd-skills 0.13.39 → 0.13.41

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/AGENTS.md CHANGED
@@ -372,7 +372,7 @@ This split costs every consumer the same translation work on every invocation. C
372
372
  exceptd collect secrets | exceptd run secrets --evidence -
373
373
  ```
374
374
 
375
- The collector library is small and grows as playbooks are touched. Eight reference collectors ship today (`lib/collectors/secrets.js`, `lib/collectors/kernel.js`, `lib/collectors/sbom.js`, `lib/collectors/containers.js`, `lib/collectors/library-author.js`, `lib/collectors/crypto-codebase.js`, `lib/collectors/cred-stores.js`, `lib/collectors/hardening.js`); the rest are written when each playbook needs them. Until a playbook has a collector, the AI/operator owns evidence collection as before.
375
+ The collector library is small and grows as playbooks are touched. Ten reference collectors ship today (`lib/collectors/secrets.js`, `lib/collectors/kernel.js`, `lib/collectors/sbom.js`, `lib/collectors/containers.js`, `lib/collectors/library-author.js`, `lib/collectors/crypto-codebase.js`, `lib/collectors/cred-stores.js`, `lib/collectors/hardening.js`, `lib/collectors/runtime.js`, `lib/collectors/ai-api.js`); the rest are written when each playbook needs them. Until a playbook has a collector, the AI/operator owns evidence collection as before.
376
376
 
377
377
  ### Precision target for new `look.artifacts[].source` strings
378
378
 
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.13.41 — 2026-05-20
4
+
5
+ Tenth reference collector.
6
+
7
+ ### Features
8
+
9
+ - **`lib/collectors/ai-api.js`** — scans shell rc files (`~/.bashrc`, `~/.bash_profile`, `~/.zshrc`, `~/.zprofile`, `~/.profile`, `~/.config/fish/config.fish`, `~/.config/fish/conf.d/*.fish`) and vendor dotfiles (`~/.openai`, `~/.anthropic`, `~/.config/anthropic`, `~/.config/openai`, `~/.gemini`, `~/.config/google-genai`, `~/.config/azure-openai`) for cleartext AI API key exports — OpenAI `sk-*`, Anthropic `sk-ant-*`, Azure OpenAI, Google / Gemini / Generative AI, HuggingFace `hf_*`, Cohere. Honours `export VAR=value`, `VAR=value`, and fish-style `set -gx VAR value` shapes. Reuses the cred-stores carrier inspection for `long-lived-aws-keys` (any AWS profile with `aws_access_key_id` and no `aws_session_token` sibling), `gcp-service-account-json` (`type: service_account` in ADC JSON), `kubeconfig-with-static-token` (`users[].user.token` non-null, not the `auth-provider.config.access-token` sub-key). Behavioral indicators (`ai-api-egress-from-unexpected-process`, `ai-api-anomalous-volume`, `ai-api-beaconing-cadence`, `base64-or-encoded-payload-in-prompts`) need ss / netstat / auditd / process-list correlation and stay unflipped — the runner returns inconclusive and operator-supplied evidence completes the verdict.
10
+
11
+ ## 0.13.40 — 2026-05-20
12
+
13
+ Ninth reference collector.
14
+
15
+ ### Features
16
+
17
+ - **`lib/collectors/runtime.js`** — Linux-only runtime-posture collector. Reads `/etc/sudoers` + `/etc/sudoers.d/*`, `/etc/passwd`, walks trusted-path directories (`/etc`, `/usr/local/bin`, `/usr/local/sbin`, `/opt`, `/usr/bin`, `/usr/sbin`) to depth 2 for world-writable files, and inspects `/proc/<pid>` for orphan-privileged processes. Flips four deterministic indicators: `sudoers-nopasswd-wildcard` (any non-root `NOPASSWD: ALL` or `NOPASSWD: /path/*` wildcard rule), `duplicate-uid-zero` (>1 entry in `/etc/passwd` with UID 0), `world-writable-in-trusted-path` (any file under a trusted root with mode bit `o+w`), `orphan-privileged-process` (UID 0 process with PPID 1, canonical-init parent, executable under `/tmp`, `/dev/shm`, `/var/tmp`, or `/home`). Same unflipped-when-unreadable semantics as the hardening collector — when `/etc/sudoers` / `/etc/passwd` / trusted paths / `/proc` are all unreadable, the indicator stays absent from `signal_overrides` so the runner returns inconclusive rather than asserting a clean posture without evidence. Path overrides via `args.paths` for synthetic-tempdir tests.
18
+
3
19
  ## 0.13.39 — 2026-05-20
4
20
 
5
21
  Eighth reference collector.
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "schema_version": "1.1.0",
3
- "generated_at": "2026-05-21T05:15:19.319Z",
3
+ "generated_at": "2026-05-21T05:59:31.155Z",
4
4
  "generator": "scripts/build-indexes.js",
5
5
  "source_count": 54,
6
6
  "source_hashes": {
7
- "manifest.json": "0785c4b4b99897d6846d7e324c8a093da8bfdeaa48ca9ab234cd82009d1e04d0",
7
+ "manifest.json": "baf6b821336ba74ccafa21f09c510e7f581d3157a1aab19ed282f8d975ed8eec",
8
8
  "data/atlas-ttps.json": "d296c1d3e71807c9279b731f047e57796e85137f186586743a8cdad214b408f9",
9
9
  "data/attack-techniques.json": "49b6010b317edd219def135171ea8f3b1bbf1e00e9c5a08bf7237215ff54e2c3",
10
10
  "data/cve-catalog.json": "a09c83af3f9679a7ea73935726a1ff9de2cab94b4ab6321fc017fc147747d7c3",
@@ -0,0 +1,231 @@
1
+ "use strict";
2
+
3
+ /**
4
+ * lib/collectors/ai-api.js
5
+ *
6
+ * Companion collector for the `ai-api` playbook. Scans shell rc
7
+ * files for cleartext AI API key exports, plus the standard
8
+ * credential carriers (~/.aws, ~/.kube, ~/.config/gcloud) for
9
+ * long-lived credentials likely to authenticate against AI APIs.
10
+ *
11
+ * Non-deterministic indicators (ai-api-egress-from-unexpected-
12
+ * process, ai-api-anomalous-volume, ai-api-beaconing-cadence,
13
+ * base64-or-encoded-payload-in-prompts) require ss/netstat/auditd
14
+ * traces and process-list correlation that fall outside the
15
+ * stdlib-only collector contract. They stay unflipped — the runner
16
+ * returns inconclusive and operator-supplied evidence completes
17
+ * the verdict.
18
+ *
19
+ * Interface: see lib/collectors/README.md
20
+ */
21
+
22
+ const fs = require("node:fs");
23
+ const path = require("node:path");
24
+ const os = require("node:os");
25
+
26
+ const COLLECTOR_ID = "ai-api";
27
+
28
+ function readSafe(full, max = 256 * 1024) {
29
+ try {
30
+ const s = fs.statSync(full);
31
+ if (s.size > max) return null;
32
+ return fs.readFileSync(full, "utf8");
33
+ } catch { return null; }
34
+ }
35
+
36
+ function fileExists(full) {
37
+ try { return fs.statSync(full).isFile(); } catch { return false; }
38
+ }
39
+
40
+ // Cleartext AI-API-key export patterns. Matches the standard
41
+ // `export VAR=value` and `VAR=value` shell shapes plus fish-style
42
+ // `set -gx VAR value`.
43
+ const AI_KEY_PATTERNS = [
44
+ { id: "openai", re: /(?:^|\n)\s*(?:export\s+|set\s+-gx\s+)?OPENAI_API_KEY\s*[= ]\s*['"]?sk-[A-Za-z0-9_-]{20,}/m },
45
+ { id: "anthropic", re: /(?:^|\n)\s*(?:export\s+|set\s+-gx\s+)?ANTHROPIC_API_KEY\s*[= ]\s*['"]?sk-ant-[A-Za-z0-9_-]{20,}/m },
46
+ { id: "azure", re: /(?:^|\n)\s*(?:export\s+|set\s+-gx\s+)?AZURE_OPENAI(?:_API)?_KEY\s*[= ]\s*['"]?[A-Za-z0-9]{20,}/m },
47
+ { id: "google", re: /(?:^|\n)\s*(?:export\s+|set\s+-gx\s+)?(?:GOOGLE_API_KEY|GOOGLE_GENAI_API_KEY|GEMINI_API_KEY)\s*[= ]\s*['"]?[A-Za-z0-9_-]{20,}/m },
48
+ { id: "huggingface", re: /(?:^|\n)\s*(?:export\s+|set\s+-gx\s+)?(?:HUGGINGFACE_TOKEN|HF_TOKEN)\s*[= ]\s*['"]?hf_[A-Za-z0-9]{20,}/m },
49
+ { id: "cohere", re: /(?:^|\n)\s*(?:export\s+|set\s+-gx\s+)?COHERE_API_KEY\s*[= ]\s*['"]?[A-Za-z0-9-]{30,}/m },
50
+ ];
51
+
52
+ function scanShellRc(content) {
53
+ if (!content) return [];
54
+ const hits = [];
55
+ for (const p of AI_KEY_PATTERNS) {
56
+ if (p.re.test(content)) hits.push(p.id);
57
+ }
58
+ return hits;
59
+ }
60
+
61
+ function parseAwsCredentials(content) {
62
+ if (!content) return { staticProfiles: [] };
63
+ const lines = content.split(/\r?\n/);
64
+ const profiles = {};
65
+ let current = null;
66
+ for (const raw of lines) {
67
+ const line = raw.replace(/[#;].*$/, "").trim();
68
+ if (!line) continue;
69
+ const sec = line.match(/^\[([^\]]+)\]$/);
70
+ if (sec) { current = sec[1].trim(); profiles[current] = {}; continue; }
71
+ if (!current) continue;
72
+ const kv = line.match(/^([A-Za-z0-9_-]+)\s*=\s*(.*)$/);
73
+ if (!kv) continue;
74
+ profiles[current][kv[1].trim().toLowerCase()] = kv[2].trim();
75
+ }
76
+ const staticProfiles = [];
77
+ for (const [name, kv] of Object.entries(profiles)) {
78
+ // long-lived-aws-keys: aws_access_key_id present AND no
79
+ // aws_session_token sibling (STS temporary creds carry the
80
+ // session token; IAM-user long-lived keys do not).
81
+ if (kv["aws_access_key_id"] && !kv["aws_session_token"]) {
82
+ staticProfiles.push(name);
83
+ }
84
+ }
85
+ return { staticProfiles };
86
+ }
87
+
88
+ function parseGcloudAdc(content) {
89
+ if (!content) return { hasServiceAccount: false };
90
+ try {
91
+ const j = JSON.parse(content);
92
+ return { hasServiceAccount: j?.type === "service_account" };
93
+ } catch { return { hasServiceAccount: false }; }
94
+ }
95
+
96
+ function parseKubeStaticToken(content) {
97
+ if (!content) return false;
98
+ // Same shape as cred-stores: token under user:, not auth-provider.
99
+ const userKvRe = /^(\s+)(token|token-data)\s*:\s*(\S[^\n]*)/gm;
100
+ let staticFound = false;
101
+ for (const m of content.matchAll(userKvRe)) {
102
+ const upto = content.slice(0, m.index);
103
+ const lastUserAt = upto.lastIndexOf("\n user:");
104
+ const lastAuthProviderAt = upto.lastIndexOf("auth-provider:");
105
+ if (lastAuthProviderAt > lastUserAt) continue;
106
+ const value = m[3];
107
+ if (!value || value.startsWith("null")) continue;
108
+ staticFound = true;
109
+ break;
110
+ }
111
+ return staticFound;
112
+ }
113
+
114
+ function collect({ cwd = process.cwd(), env = process.env, args = {} } = {}) {
115
+ const errors = [];
116
+ const startTime = Date.now();
117
+ const root = path.resolve(cwd);
118
+ const home = (env && env.HOME) || (env && env.USERPROFILE) || os.homedir();
119
+
120
+ // Shell rc + dotfile candidates.
121
+ const shellRcs = [
122
+ ".bashrc", ".bash_profile", ".zshrc", ".zprofile", ".profile",
123
+ path.join(".config", "fish", "config.fish"),
124
+ ].map(rel => path.join(home, rel));
125
+ // Glob fish/conf.d/*.
126
+ try {
127
+ const fishConfD = path.join(home, ".config", "fish", "conf.d");
128
+ for (const e of fs.readdirSync(fishConfD)) {
129
+ if (e.endsWith(".fish")) shellRcs.push(path.join(fishConfD, e));
130
+ }
131
+ } catch { /* fish not present */ }
132
+
133
+ const dotfileKeys = [
134
+ ".openai", ".anthropic",
135
+ path.join(".config", "anthropic"), path.join(".config", "openai"),
136
+ ".gemini",
137
+ path.join(".config", "google-genai"),
138
+ path.join(".config", "azure-openai"),
139
+ ].map(rel => path.join(home, rel));
140
+
141
+ const allKeyCarriers = [...shellRcs, ...dotfileKeys];
142
+ const cleartextHitsByFile = {};
143
+ for (const p of allKeyCarriers) {
144
+ if (!fileExists(p)) continue;
145
+ const c = readSafe(p);
146
+ if (c == null) continue;
147
+ const hits = scanShellRc(c);
148
+ if (hits.length > 0) {
149
+ cleartextHitsByFile[path.relative(home, p)] = hits;
150
+ }
151
+ }
152
+ const cleartextAnyHit = Object.keys(cleartextHitsByFile).length > 0;
153
+
154
+ // AWS / GCP / kube reuse.
155
+ const awsCredsPath = path.join(home, ".aws", "credentials");
156
+ const awsCredsContent = fileExists(awsCredsPath) ? readSafe(awsCredsPath) : null;
157
+ const awsParsed = parseAwsCredentials(awsCredsContent);
158
+ const longLivedAws = awsParsed.staticProfiles.length > 0;
159
+
160
+ const gcloudAdcPath = path.join(home, ".config", "gcloud", "application_default_credentials.json");
161
+ const gcloudContent = fileExists(gcloudAdcPath) ? readSafe(gcloudAdcPath) : null;
162
+ const gcloudParsed = parseGcloudAdc(gcloudContent);
163
+
164
+ const kubeCfgPath = (env && env.KUBECONFIG) || path.join(home, ".kube", "config");
165
+ const kubeContent = fileExists(kubeCfgPath) ? readSafe(kubeCfgPath) : null;
166
+ const kubeStaticToken = parseKubeStaticToken(kubeContent);
167
+
168
+ const signal_overrides = {
169
+ "cleartext-api-key-in-dotfile": cleartextAnyHit ? "hit" : "miss",
170
+ "long-lived-aws-keys": longLivedAws ? "hit" : "miss",
171
+ "gcp-service-account-json": gcloudParsed.hasServiceAccount ? "hit" : "miss",
172
+ "kubeconfig-with-static-token": kubeStaticToken ? "hit" : "miss",
173
+ };
174
+
175
+ const artifacts = {
176
+ "shell-rc-files": {
177
+ value: cleartextAnyHit
178
+ ? Object.entries(cleartextHitsByFile).map(([f, ids]) => `${f}: ${ids.join(",")}`).join("; ")
179
+ : `scanned ${shellRcs.length} shell rc + ${dotfileKeys.length} dotfile path(s); no cleartext AI API key exports`,
180
+ captured: true,
181
+ },
182
+ "dotfile-api-keys": {
183
+ value: dotfileKeys.filter(p => fileExists(p)).map(p => path.relative(home, p)).join(", ") || "no AI vendor dotfile carriers found at the canonical paths",
184
+ captured: true,
185
+ },
186
+ "aws-credentials": awsCredsContent
187
+ ? { value: `${awsParsed.staticProfiles.length} long-lived profile(s): ${awsParsed.staticProfiles.join(", ") || "none"}`, captured: true }
188
+ : { value: "~/.aws/credentials absent", captured: true },
189
+ "gcp-credentials": gcloudContent
190
+ ? { value: `application_default_credentials.json present; service_account=${gcloudParsed.hasServiceAccount}`, captured: true }
191
+ : { value: "no gcloud ADC at the canonical path", captured: true, reason: "credentials.db / legacy_credentials/*/adc.json inspection deferred (no stdlib SQLite reader)" },
192
+ "kube-config": kubeContent
193
+ ? { value: `kubeconfig present; static_token=${kubeStaticToken}`, captured: true }
194
+ : { value: "no kubeconfig at the canonical path", captured: true },
195
+ "ai-sdk-inventory": {
196
+ value: "skipped — npm/pip global listing deferred to operator/AI evidence",
197
+ captured: false,
198
+ reason: "spawning npm ls / pip list out of stdlib collector contract; operator should run those and submit as evidence",
199
+ },
200
+ "ai-api-egress-baseline": {
201
+ value: "skipped — ss/netstat capture deferred to operator/AI evidence",
202
+ captured: false,
203
+ reason: "live socket / process correlation needs ss / netstat / auditd traces; operator-supplied evidence completes the verdict",
204
+ },
205
+ "process-list": {
206
+ value: "skipped — ps -ef capture deferred to operator/AI evidence",
207
+ captured: false,
208
+ reason: "process-list correlation tied to network egress + behavioral signals out of stdlib collector scope",
209
+ },
210
+ };
211
+
212
+ return {
213
+ precondition_checks: {
214
+ "home-dir-readable": fs.existsSync(home),
215
+ },
216
+ artifacts,
217
+ signal_overrides,
218
+ collector_meta: {
219
+ collector_id: COLLECTOR_ID,
220
+ collector_version: "2026-05-20",
221
+ platform: process.platform,
222
+ captured_at: new Date().toISOString(),
223
+ cwd: root,
224
+ home,
225
+ duration_ms: Date.now() - startTime,
226
+ },
227
+ collector_errors: errors,
228
+ };
229
+ }
230
+
231
+ module.exports = { playbook_id: COLLECTOR_ID, collect };
@@ -0,0 +1,317 @@
1
+ "use strict";
2
+
3
+ /**
4
+ * lib/collectors/runtime.js
5
+ *
6
+ * Companion collector for the `runtime` playbook. Linux-only:
7
+ * walks /etc/sudoers + /etc/sudoers.d/*, parses /etc/passwd for
8
+ * duplicate UID 0 entries, scans well-known trusted-path
9
+ * directories for world-writable files, and inspects /proc/<pid>
10
+ * for orphan-privileged processes. Defers non-deterministic
11
+ * indicators (non-baseline-suid, listening-socket-unknown-bind,
12
+ * cron-or-timer-outside-policy) so the runner returns inconclusive.
13
+ *
14
+ * Interface: see lib/collectors/README.md
15
+ */
16
+
17
+ const fs = require("node:fs");
18
+ const path = require("node:path");
19
+
20
+ const COLLECTOR_ID = "runtime";
21
+
22
+ function readFileSafe(p, max = 512 * 1024) {
23
+ try {
24
+ const s = fs.statSync(p);
25
+ if (s.size > max) return null;
26
+ return fs.readFileSync(p, "utf8");
27
+ } catch { return null; }
28
+ }
29
+
30
+ const NOPASSWD_WILDCARD_RE = /\bNOPASSWD:\s*(?:ALL|\/[^,\n]*\*)/;
31
+
32
+ // Trusted-path roots scanned for world-writable files. The
33
+ // playbook explicitly lists /etc, /usr/local/bin, /usr/local/sbin,
34
+ // /opt. We add /usr/bin and /usr/sbin as common variants but stay
35
+ // shallow (depth 2) so we don't walk arbitrarily deep filesystems.
36
+ const TRUSTED_PATHS = ["/etc", "/usr/local/bin", "/usr/local/sbin", "/opt", "/usr/bin", "/usr/sbin"];
37
+ const TRUSTED_PATH_MAX_DEPTH = 2;
38
+
39
+ const PARENT_INIT_BINARIES = new Set([
40
+ "/sbin/init", "/usr/sbin/init", "/usr/lib/systemd/systemd",
41
+ "/lib/systemd/systemd", "/usr/lib/systemd/systemd-userdbd",
42
+ ]);
43
+ const ORPHAN_RISKY_PREFIXES = ["/tmp/", "/dev/shm/", "/var/tmp/", "/home/"];
44
+
45
+ function parseSudoersForWildcards(content) {
46
+ if (!content) return [];
47
+ const hits = [];
48
+ for (const raw of content.split(/\r?\n/)) {
49
+ const line = raw.replace(/#.*$/, "").trim();
50
+ if (!line) continue;
51
+ if (!NOPASSWD_WILDCARD_RE.test(line)) continue;
52
+ // Sudoers entries lead with a comma-separated user/group list:
53
+ // `<user1>,<user2>,%group host = (runas) NOPASSWD: cmd*`
54
+ // Skip ONLY when the user list is exactly `root` (no other
55
+ // principals). A line like `root,deploy ALL=(ALL) NOPASSWD: ALL`
56
+ // still grants wildcard sudo to `deploy` and counts as a hit.
57
+ const userListMatch = line.match(/^([^\s]+)\s/);
58
+ if (userListMatch) {
59
+ const principals = userListMatch[1].split(",").map(s => s.trim()).filter(Boolean);
60
+ if (principals.length === 1 && principals[0] === "root") continue;
61
+ }
62
+ hits.push(line);
63
+ }
64
+ return hits;
65
+ }
66
+
67
+ function parsePasswdUidZero(content) {
68
+ if (!content) return [];
69
+ const uid0 = [];
70
+ for (const raw of content.split(/\r?\n/)) {
71
+ const line = raw.trim();
72
+ if (!line || line.startsWith("#")) continue;
73
+ const fields = line.split(":");
74
+ if (fields.length < 3) continue;
75
+ if (fields[2] === "0") uid0.push(fields[0]);
76
+ }
77
+ return uid0;
78
+ }
79
+
80
+ function walkShallow(dir, maxDepth) {
81
+ const out = [];
82
+ const seen = new Set();
83
+ function walk(d, depth) {
84
+ if (depth > maxDepth) return;
85
+ let entries;
86
+ try { entries = fs.readdirSync(d, { withFileTypes: true }); }
87
+ catch { return; }
88
+ for (const e of entries) {
89
+ const full = path.join(d, e.name);
90
+ let real;
91
+ try { real = fs.realpathSync(full); } catch { continue; }
92
+ if (seen.has(real)) continue;
93
+ seen.add(real);
94
+ if (e.isDirectory()) walk(full, depth + 1);
95
+ else if (e.isFile()) out.push(full);
96
+ }
97
+ }
98
+ walk(dir, 0);
99
+ return out;
100
+ }
101
+
102
+ function isWorldWritable(p) {
103
+ try {
104
+ const s = fs.statSync(p);
105
+ return (s.mode & 0o002) !== 0;
106
+ } catch { return false; }
107
+ }
108
+
109
+ function readProcPid(pid, procRoot) {
110
+ // Returns { pid, ppid, uid, exe } or null.
111
+ try {
112
+ const statusPath = path.join(procRoot, String(pid), "status");
113
+ const status = fs.readFileSync(statusPath, "utf8");
114
+ const ppidMatch = status.match(/^PPid:\s+(\d+)/m);
115
+ const uidMatch = status.match(/^Uid:\s+(\d+)/m);
116
+ if (!ppidMatch || !uidMatch) return null;
117
+ let exe = null;
118
+ try {
119
+ exe = fs.readlinkSync(path.join(procRoot, String(pid), "exe"));
120
+ } catch { /* no permission to read exe link */ }
121
+ return {
122
+ pid,
123
+ ppid: Number(ppidMatch[1]),
124
+ uid: Number(uidMatch[1]),
125
+ exe,
126
+ };
127
+ } catch { return null; }
128
+ }
129
+
130
+ function scanOrphanPrivileged(procRoot) {
131
+ // Returns { hits, exeReadable }. exeReadable is false when at
132
+ // least one candidate PID (UID 0, PPID 1) had an unreadable
133
+ // /proc/<pid>/exe symlink AND PID 1's exe was also unreadable —
134
+ // in that case the indicator MUST stay unflipped (the caller
135
+ // converts that to inconclusive). hidepid / ptrace-restrict /
136
+ // non-root scope all collapse exe readability to zero, and
137
+ // emitting "miss" there would mask real privileged orphans.
138
+ let entries;
139
+ try { entries = fs.readdirSync(procRoot); } catch { return { hits: [], exeReadable: false }; }
140
+ const hits = [];
141
+
142
+ // PID 1's exe is the canonical anchor. If we can't read it, we
143
+ // can't tell whether the parent is canonical init or a hijacked
144
+ // PID 1. That's an inconclusive condition.
145
+ const initProc = readProcPid(1, procRoot);
146
+ const initExeReadable = !!(initProc && initProc.exe);
147
+ if (!initExeReadable) return { hits: [], exeReadable: false };
148
+ if (!PARENT_INIT_BINARIES.has(initProc.exe)) {
149
+ // PID 1's exe is readable but isn't a canonical init. Treat
150
+ // as inconclusive — the playbook predicate explicitly says
151
+ // "parent != systemd/init" is the orphan condition, but
152
+ // distinguishing a legitimate non-systemd init (e.g. SysV,
153
+ // BusyBox init) from a hijacked PID 1 needs operator review.
154
+ return { hits: [], exeReadable: false };
155
+ }
156
+
157
+ // PID 1's exe is canonical init. Now scan candidate PIDs.
158
+ let anyExeReadable = false;
159
+ let anyExeUnreadable = false;
160
+ for (const name of entries) {
161
+ if (!/^\d+$/.test(name)) continue;
162
+ const proc = readProcPid(Number(name), procRoot);
163
+ if (!proc) continue;
164
+ if (proc.uid !== 0) continue;
165
+ if (proc.ppid !== 1) continue;
166
+ if (proc.exe) {
167
+ anyExeReadable = true;
168
+ if (ORPHAN_RISKY_PREFIXES.some(p => proc.exe.startsWith(p))) {
169
+ hits.push({ pid: proc.pid, exe: proc.exe });
170
+ }
171
+ } else {
172
+ anyExeUnreadable = true;
173
+ }
174
+ }
175
+ // If we couldn't read ANY candidate's exe (typical non-root /
176
+ // hidepid scope), the indicator stays unflipped. If we read at
177
+ // least one and saw zero risky-path orphans, the miss is
178
+ // honest. If we saw mixed (some readable, some not), still
179
+ // report what we found — but only emit a verdict when at least
180
+ // one exe was readable so we have evidence to back it.
181
+ const exeReadable = anyExeReadable || (!anyExeUnreadable && entries.length > 0);
182
+ return { hits, exeReadable };
183
+ }
184
+
185
+ function collect({ cwd = process.cwd(), env = process.env, args = {} } = {}) {
186
+ const errors = [];
187
+ const startTime = Date.now();
188
+ const root = path.resolve(cwd);
189
+ const paths = args.paths || {};
190
+ const P = {
191
+ sudoers: paths.sudoers || "/etc/sudoers",
192
+ sudoersD: paths.sudoersD || "/etc/sudoers.d",
193
+ passwd: paths.passwd || "/etc/passwd",
194
+ trustedPaths: paths.trustedPaths || TRUSTED_PATHS,
195
+ procRoot: paths.procRoot || "/proc",
196
+ };
197
+ const isLinux = args.forceLinux === true || process.platform === "linux";
198
+
199
+ if (!isLinux) {
200
+ return {
201
+ precondition_checks: { "linux-platform": false },
202
+ artifacts: {
203
+ "sudo-rules": { value: "skipped — non-Linux platform", captured: false, reason: `process.platform=${process.platform}` },
204
+ "passwd-shadow-baseline": { value: "skipped — non-Linux platform", captured: false, reason: `process.platform=${process.platform}` },
205
+ "world-writable-paths": { value: "skipped — non-Linux platform", captured: false, reason: `process.platform=${process.platform}` },
206
+ "process-tree": { value: "skipped — non-Linux platform", captured: false, reason: `process.platform=${process.platform}` },
207
+ },
208
+ signal_overrides: {},
209
+ collector_meta: {
210
+ collector_id: COLLECTOR_ID,
211
+ collector_version: "2026-05-20",
212
+ platform: process.platform,
213
+ captured_at: new Date().toISOString(),
214
+ cwd: root,
215
+ duration_ms: Date.now() - startTime,
216
+ },
217
+ collector_errors: errors,
218
+ };
219
+ }
220
+
221
+ // Sudo rules: /etc/sudoers + /etc/sudoers.d/*
222
+ const sudoersBase = readFileSafe(P.sudoers);
223
+ let sudoersContent = sudoersBase || "";
224
+ let sudoersReadable = sudoersBase != null;
225
+ try {
226
+ const dEntries = fs.readdirSync(P.sudoersD);
227
+ for (const e of dEntries) {
228
+ // skip editor backup files (~, .bak, .swp)
229
+ if (/[~]$/.test(e) || /\.(bak|swp|orig)$/.test(e)) continue;
230
+ const c = readFileSafe(path.join(P.sudoersD, e));
231
+ if (c != null) {
232
+ sudoersContent += "\n" + c;
233
+ sudoersReadable = true;
234
+ }
235
+ }
236
+ } catch { /* .d not present */ }
237
+ const sudoersHits = parseSudoersForWildcards(sudoersContent);
238
+
239
+ // /etc/passwd UID-zero count
240
+ const passwdContent = readFileSafe(P.passwd);
241
+ const uid0 = passwdContent ? parsePasswdUidZero(passwdContent) : null;
242
+
243
+ // World-writable files under trusted paths.
244
+ const worldWritableFiles = [];
245
+ for (const tp of P.trustedPaths) {
246
+ for (const f of walkShallow(tp, TRUSTED_PATH_MAX_DEPTH)) {
247
+ if (isWorldWritable(f)) worldWritableFiles.push(f);
248
+ }
249
+ }
250
+
251
+ // Orphan-privileged process scan. Only meaningful on a real
252
+ // /proc; on a synthetic tempdir we still walk it the same way.
253
+ const orphanScan = scanOrphanPrivileged(P.procRoot);
254
+
255
+ const signal_overrides = {};
256
+ if (sudoersReadable) {
257
+ signal_overrides["sudoers-nopasswd-wildcard"] = sudoersHits.length > 0 ? "hit" : "miss";
258
+ }
259
+ if (uid0 !== null) {
260
+ signal_overrides["duplicate-uid-zero"] = uid0.length > 1 ? "hit" : "miss";
261
+ }
262
+ // world-writable-in-trusted-path: only emit a verdict if at least
263
+ // one trusted path was readable. If every TP was unreadable
264
+ // (chroot / restricted container), leave the indicator unflipped.
265
+ const anyTpReadable = P.trustedPaths.some(tp => {
266
+ try { fs.readdirSync(tp); return true; } catch { return false; }
267
+ });
268
+ if (anyTpReadable) {
269
+ signal_overrides["world-writable-in-trusted-path"] = worldWritableFiles.length > 0 ? "hit" : "miss";
270
+ }
271
+ // orphan-privileged-process: only emit when /proc was walkable
272
+ // AND the scan had enough exe-link visibility to reach a verdict.
273
+ // hidepid / ptrace-restrict / non-root scope leaves
274
+ // exeReadable=false; the indicator stays unflipped so the runner
275
+ // returns inconclusive (codex P1 #80).
276
+ let procWalkable = false;
277
+ try { fs.readdirSync(P.procRoot); procWalkable = true; } catch { /* not present */ }
278
+ if (procWalkable && orphanScan.exeReadable) {
279
+ signal_overrides["orphan-privileged-process"] = orphanScan.hits.length > 0 ? "hit" : "miss";
280
+ }
281
+
282
+ const artifacts = {
283
+ "sudo-rules": sudoersReadable
284
+ ? { value: `${sudoersHits.length} NOPASSWD wildcard rule(s)` + (sudoersHits.length > 0 ? ": " + sudoersHits.slice(0, 3).join("; ") : ""), captured: true }
285
+ : { value: "/etc/sudoers unreadable", captured: false, reason: "permission denied or absent" },
286
+ "passwd-shadow-baseline": passwdContent
287
+ ? { value: `${(uid0 || []).length} UID-0 entr(y/ies): ${(uid0 || []).join(", ") || "none"}`, captured: true }
288
+ : { value: "/etc/passwd unreadable", captured: false, reason: "permission denied or absent" },
289
+ "world-writable-paths": anyTpReadable
290
+ ? { value: worldWritableFiles.length > 0 ? `${worldWritableFiles.length} world-writable file(s): ${worldWritableFiles.slice(0, 5).join("; ")}` : "no world-writable files under trusted paths", captured: true }
291
+ : { value: "no trusted paths readable from this scope", captured: false, reason: "all trusted paths unreadable (chroot / restricted scope)" },
292
+ "process-tree": procWalkable
293
+ ? (orphanScan.exeReadable
294
+ ? { value: orphanScan.hits.length > 0 ? `${orphanScan.hits.length} orphan-privileged process(es): ` + orphanScan.hits.slice(0, 3).map(p => `pid=${p.pid} exe=${p.exe}`).join("; ") : "no orphan-privileged processes detected", captured: true }
295
+ : { value: "/proc walkable but /proc/<pid>/exe symlinks unreadable (likely hidepid / ptrace-restrict / non-root scope)", captured: false, reason: "insufficient exe-link visibility to reach a verdict" })
296
+ : { value: "/proc not walkable", captured: false, reason: "no /proc on this scope" },
297
+ };
298
+
299
+ return {
300
+ precondition_checks: {
301
+ "linux-platform": true,
302
+ },
303
+ artifacts,
304
+ signal_overrides,
305
+ collector_meta: {
306
+ collector_id: COLLECTOR_ID,
307
+ collector_version: "2026-05-20",
308
+ platform: process.platform,
309
+ captured_at: new Date().toISOString(),
310
+ cwd: root,
311
+ duration_ms: Date.now() - startTime,
312
+ },
313
+ collector_errors: errors,
314
+ };
315
+ }
316
+
317
+ module.exports = { playbook_id: COLLECTOR_ID, collect };
package/manifest.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "exceptd-security",
3
- "version": "0.13.39",
3
+ "version": "0.13.41",
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",
@@ -53,7 +53,7 @@
53
53
  ],
54
54
  "last_threat_review": "2026-05-01",
55
55
  "signature": "lXhZgoIrrVloO3XaTvo/43AxZn4mwErstd7DR0O/oVhD3AOGODM4HqrageYEou9WKOdMEGP5mJNTjJsXdP5NDA==",
56
- "signed_at": "2026-05-21T05:14:23.230Z",
56
+ "signed_at": "2026-05-21T05:58:40.487Z",
57
57
  "cwe_refs": [
58
58
  "CWE-125",
59
59
  "CWE-362",
@@ -117,7 +117,7 @@
117
117
  ],
118
118
  "last_threat_review": "2026-05-01",
119
119
  "signature": "vSVqu4wBm+d68ujZmM6Rto/HzViCkE0gPUcv/MYE/bjFiqamf/s0On4kTOo1KIveV9cOwYNxiItaGEWlVkRFDg==",
120
- "signed_at": "2026-05-21T05:14:23.231Z",
120
+ "signed_at": "2026-05-21T05:58:40.488Z",
121
121
  "cwe_refs": [
122
122
  "CWE-1039",
123
123
  "CWE-1426",
@@ -180,7 +180,7 @@
180
180
  ],
181
181
  "last_threat_review": "2026-05-01",
182
182
  "signature": "RIgXKvolQjgJdnlrDnVOd90IOY1B7VHHZD/YJQRzouL+wUeOLclPrdK/EgEuFyiu7lR4bi+Pl6aGB9G9tOxYCQ==",
183
- "signed_at": "2026-05-21T05:14:23.232Z",
183
+ "signed_at": "2026-05-21T05:58:40.489Z",
184
184
  "cwe_refs": [
185
185
  "CWE-22",
186
186
  "CWE-345",
@@ -226,7 +226,7 @@
226
226
  "framework_gaps": [],
227
227
  "last_threat_review": "2026-05-01",
228
228
  "signature": "RYOxeq/o3uTwTWq4H7RcdH2Aclg9UyCERfUH9Frwkzncsowg7LgxpaEDc3swTCv73HMEGbU8wVbXguZ4JxHUCQ==",
229
- "signed_at": "2026-05-21T05:14:23.232Z"
229
+ "signed_at": "2026-05-21T05:58:40.489Z"
230
230
  },
231
231
  {
232
232
  "name": "compliance-theater",
@@ -257,7 +257,7 @@
257
257
  ],
258
258
  "last_threat_review": "2026-05-01",
259
259
  "signature": "DneJCPKCPcoe6nQ82XptqSqNfSRdt1orKaO+o7K36YCciDrzwJb+1BuBLusPDtpcdDaGY0y0e+AqiTYJklhBAQ==",
260
- "signed_at": "2026-05-21T05:14:23.233Z"
260
+ "signed_at": "2026-05-21T05:58:40.489Z"
261
261
  },
262
262
  {
263
263
  "name": "exploit-scoring",
@@ -286,7 +286,7 @@
286
286
  ],
287
287
  "last_threat_review": "2026-05-01",
288
288
  "signature": "NA1hoQycvQhSUoG5rwlXX0mOVmGxoXRVezkELGEA2nZOdGis4gXkHT3O6Sfw7zxE4JuMrsCb65TEeOWk9WEPDg==",
289
- "signed_at": "2026-05-21T05:14:23.233Z"
289
+ "signed_at": "2026-05-21T05:58:40.490Z"
290
290
  },
291
291
  {
292
292
  "name": "rag-pipeline-security",
@@ -323,7 +323,7 @@
323
323
  ],
324
324
  "last_threat_review": "2026-05-01",
325
325
  "signature": "XgrzcA2brPhXrSTxrcLnJec0OpgGYJBoSTUlJ10UdePHffxqb9LTVGnfbmEk1ykQifXREZexui2bG7X/+eFfCQ==",
326
- "signed_at": "2026-05-21T05:14:23.234Z",
326
+ "signed_at": "2026-05-21T05:58:40.490Z",
327
327
  "cwe_refs": [
328
328
  "CWE-1395",
329
329
  "CWE-1426"
@@ -380,7 +380,7 @@
380
380
  ],
381
381
  "last_threat_review": "2026-05-01",
382
382
  "signature": "9+hZlZOqZdeACUmamQk66L5levZhhwnFXuYRhdT6Mce99eQaKT7wNfWq12hXQztkRcVRKaFH+a01zwJQwsRQCA==",
383
- "signed_at": "2026-05-21T05:14:23.234Z",
383
+ "signed_at": "2026-05-21T05:58:40.491Z",
384
384
  "d3fend_refs": [
385
385
  "D3-CA",
386
386
  "D3-CSPP",
@@ -415,7 +415,7 @@
415
415
  "framework_gaps": [],
416
416
  "last_threat_review": "2026-05-01",
417
417
  "signature": "ciqhVloMWWXEigPZvvwoV2c54tEqsDqsoc+sS/mNTFFJk2H+tz2+XUrgfEPRuYw0FeyNB6/+27pL2NpKHzUqAg==",
418
- "signed_at": "2026-05-21T05:14:23.235Z",
418
+ "signed_at": "2026-05-21T05:58:40.491Z",
419
419
  "cwe_refs": [
420
420
  "CWE-1188"
421
421
  ]
@@ -443,7 +443,7 @@
443
443
  "framework_gaps": [],
444
444
  "last_threat_review": "2026-05-01",
445
445
  "signature": "xiHAhhdufm9hCKU8PLiPE0MX65ej2F4OZwtlWLGLCiie9/km+Kiqbt192LcMvr94v83C98pb9wIaqFsFWft6AQ==",
446
- "signed_at": "2026-05-21T05:14:23.235Z"
446
+ "signed_at": "2026-05-21T05:58:40.491Z"
447
447
  },
448
448
  {
449
449
  "name": "global-grc",
@@ -475,7 +475,7 @@
475
475
  "framework_gaps": [],
476
476
  "last_threat_review": "2026-05-01",
477
477
  "signature": "oYsSk35N2Uzq7MRofACykylcVwkgPhI4luWZ14vmQT+gUKLyZiKVOUJbe1+7lGl6BYPRN0sUDQ0f7S5Eu5w2Ag==",
478
- "signed_at": "2026-05-21T05:14:23.235Z"
478
+ "signed_at": "2026-05-21T05:58:40.492Z"
479
479
  },
480
480
  {
481
481
  "name": "zeroday-gap-learn",
@@ -502,7 +502,7 @@
502
502
  "framework_gaps": [],
503
503
  "last_threat_review": "2026-05-01",
504
504
  "signature": "igRqYyU1unRFH40BsPyAR62SPrk8QZv8dPGb8S9O9EvLCNOZAzm3t+HdT/NKqzWHwrpomOzkkkyLfYI/0qTUDA==",
505
- "signed_at": "2026-05-21T05:14:23.236Z"
505
+ "signed_at": "2026-05-21T05:58:40.492Z"
506
506
  },
507
507
  {
508
508
  "name": "pqc-first",
@@ -554,7 +554,7 @@
554
554
  ],
555
555
  "last_threat_review": "2026-05-01",
556
556
  "signature": "vhc3wuQEro/86s1ro2b/KakUXg8QVnySYTBqA7ebzv9oeR2HYO5bvGEJp3oOHWtL37JDqcCAHYadSN/qxIyCCA==",
557
- "signed_at": "2026-05-21T05:14:23.236Z",
557
+ "signed_at": "2026-05-21T05:58:40.492Z",
558
558
  "cwe_refs": [
559
559
  "CWE-327"
560
560
  ],
@@ -601,7 +601,7 @@
601
601
  ],
602
602
  "last_threat_review": "2026-05-01",
603
603
  "signature": "MS35nWm8djfJGn4OOoT0JKJ2aO+Dkbb6wOOWJYvNZlRKT3UGA59o2gxg1JOnD20hb/RwxtkmCujhl2tuYSR+AQ==",
604
- "signed_at": "2026-05-21T05:14:23.236Z"
604
+ "signed_at": "2026-05-21T05:58:40.493Z"
605
605
  },
606
606
  {
607
607
  "name": "security-maturity-tiers",
@@ -638,7 +638,7 @@
638
638
  ],
639
639
  "last_threat_review": "2026-05-01",
640
640
  "signature": "8Px1s2lDj10/Q6erwEQlXgUHM1+OTruUR8qAHPX7Oo3k/l69N6P9sm0PsafS9wDFtj9l5C/OiLiFgzMlMt6vBw==",
641
- "signed_at": "2026-05-21T05:14:23.237Z",
641
+ "signed_at": "2026-05-21T05:58:40.493Z",
642
642
  "cwe_refs": [
643
643
  "CWE-1188"
644
644
  ]
@@ -673,7 +673,7 @@
673
673
  "framework_gaps": [],
674
674
  "last_threat_review": "2026-05-11",
675
675
  "signature": "WAu5fRirzSOcnnZsTx2d/JJZwa/LPpXCi+31qATTGLmoNuhyy81k3ooPe9kCM3E0CLMtvTePg9DagYqBninZDQ==",
676
- "signed_at": "2026-05-21T05:14:23.237Z"
676
+ "signed_at": "2026-05-21T05:58:40.493Z"
677
677
  },
678
678
  {
679
679
  "name": "attack-surface-pentest",
@@ -744,7 +744,7 @@
744
744
  "PTES revision incorporating AI-surface enumeration"
745
745
  ],
746
746
  "signature": "7eEwCXFd9pDKUw7yCUbRJSjfzozE44dwwwemCQUPm8JBPztLltibD9bL/RszSbYyCrYJmVb5Drncz2cGe62gCw==",
747
- "signed_at": "2026-05-21T05:14:23.237Z"
747
+ "signed_at": "2026-05-21T05:58:40.493Z"
748
748
  },
749
749
  {
750
750
  "name": "fuzz-testing-strategy",
@@ -804,7 +804,7 @@
804
804
  "OSS-Fuzz-Gen / AI-assisted harness generation becoming the default expectation for OSS maintainers"
805
805
  ],
806
806
  "signature": "Z7ypCUnXx8JpLtgxxB6RHNi39w74AmrGY1N4ofAGCXhkuM2EaFVm1AU0dvl9UQ1bVLfHKEDGqMO/TwlIY7RABg==",
807
- "signed_at": "2026-05-21T05:14:23.238Z"
807
+ "signed_at": "2026-05-21T05:58:40.494Z"
808
808
  },
809
809
  {
810
810
  "name": "dlp-gap-analysis",
@@ -879,7 +879,7 @@
879
879
  "Quebec Law 25, India DPDPA, KSA PDPL enforcement actions naming AI-tool prompt data as in-scope personal information"
880
880
  ],
881
881
  "signature": "fgxG344JGYBWWWwFXZ1IzGipWKP7EyBhrsvsbsb0CCGXfv/MvNHVNI6G0zQddCsWX1JeQbhZT3Vk8v1uJKDTDA==",
882
- "signed_at": "2026-05-21T05:14:23.238Z"
882
+ "signed_at": "2026-05-21T05:58:40.494Z"
883
883
  },
884
884
  {
885
885
  "name": "supply-chain-integrity",
@@ -956,7 +956,7 @@
956
956
  "OpenSSF model-signing — emerging Sigstore-based signing standard for ML model weights; track for production adoption"
957
957
  ],
958
958
  "signature": "pcLrM98A3vUSZRjwNAk0aZ9umvOwB41XCLLsCOy/IebB2F/06oIrGUKkMHtHwm4pTVPShMMcKdZQQ3jz30FnCg==",
959
- "signed_at": "2026-05-21T05:14:23.238Z"
959
+ "signed_at": "2026-05-21T05:58:40.494Z"
960
960
  },
961
961
  {
962
962
  "name": "defensive-countermeasure-mapping",
@@ -1013,7 +1013,7 @@
1013
1013
  ],
1014
1014
  "last_threat_review": "2026-05-11",
1015
1015
  "signature": "gqF8eU3VBrZhO2WnlcqKa7wm1d2mmWtvpbmx0kNCgHojNV+qEt+Ij84RO6bZvaUqhfYPWizWL79Fa4DL0curAQ==",
1016
- "signed_at": "2026-05-21T05:14:23.239Z"
1016
+ "signed_at": "2026-05-21T05:58:40.495Z"
1017
1017
  },
1018
1018
  {
1019
1019
  "name": "identity-assurance",
@@ -1080,7 +1080,7 @@
1080
1080
  "d3fend_refs": [],
1081
1081
  "last_threat_review": "2026-05-11",
1082
1082
  "signature": "Wv5hGMeHjlaQK1zwicVCA7AvdKgJBgvcjdpGM9Ywahh9tagAKhbkOjybowDQZzu7OZ3bDkbh6pBYc1Sdwr6NAA==",
1083
- "signed_at": "2026-05-21T05:14:23.239Z"
1083
+ "signed_at": "2026-05-21T05:58:40.495Z"
1084
1084
  },
1085
1085
  {
1086
1086
  "name": "ot-ics-security",
@@ -1136,7 +1136,7 @@
1136
1136
  "d3fend_refs": [],
1137
1137
  "last_threat_review": "2026-05-11",
1138
1138
  "signature": "8t5qKHd3yWi57dvG36YQkLN/X9bQWqtEiYjay4IfSmqhJpM/xXPaQVKNGz3wscrO8OLKUZ0OaX7Mj5kzpgBKBQ==",
1139
- "signed_at": "2026-05-21T05:14:23.239Z"
1139
+ "signed_at": "2026-05-21T05:58:40.495Z"
1140
1140
  },
1141
1141
  {
1142
1142
  "name": "coordinated-vuln-disclosure",
@@ -1188,7 +1188,7 @@
1188
1188
  "NYDFS 23 NYCRR 500 amendments potentially adding explicit CVD program requirements"
1189
1189
  ],
1190
1190
  "signature": "GDGt4UPqBa04PjlpSmpyihGzd3OgfBN7jaAK5tfwp+LRSs3ygKOdbeivUCCHNagTY1hE6hG2Ou40ADfBFuXeAg==",
1191
- "signed_at": "2026-05-21T05:14:23.240Z"
1191
+ "signed_at": "2026-05-21T05:58:40.496Z"
1192
1192
  },
1193
1193
  {
1194
1194
  "name": "threat-modeling-methodology",
@@ -1238,7 +1238,7 @@
1238
1238
  "PASTA v2 updates incorporating AI/ML application threats"
1239
1239
  ],
1240
1240
  "signature": "rFBpOQEJUPpl+v88Lw/WqVJRhTl80vy0VbPAbzQj3Q0suJRRrJg368I9uKu5LXIBKFDvKxnGIcIzbGg9NUtaCA==",
1241
- "signed_at": "2026-05-21T05:14:23.240Z"
1241
+ "signed_at": "2026-05-21T05:58:40.496Z"
1242
1242
  },
1243
1243
  {
1244
1244
  "name": "webapp-security",
@@ -1312,7 +1312,7 @@
1312
1312
  "d3fend_refs": [],
1313
1313
  "last_threat_review": "2026-05-11",
1314
1314
  "signature": "ux85YI4t2mVHOyt744Yin1HHy+z11JIFygjKfFfQOBBl5QVV3A267jeIy7utix85irMcpZm/T3yx/ooqiK2tBA==",
1315
- "signed_at": "2026-05-21T05:14:23.240Z"
1315
+ "signed_at": "2026-05-21T05:58:40.496Z"
1316
1316
  },
1317
1317
  {
1318
1318
  "name": "ai-risk-management",
@@ -1362,7 +1362,7 @@
1362
1362
  "d3fend_refs": [],
1363
1363
  "last_threat_review": "2026-05-11",
1364
1364
  "signature": "IIXnkZ5ZNqFwOto5KfytADTLLZLoyXNZACD1ORZ40P1HUAQxe6u2uyXFzzsfuob4Uy06jNkRGr2FFgCphUH1Cw==",
1365
- "signed_at": "2026-05-21T05:14:23.241Z"
1365
+ "signed_at": "2026-05-21T05:58:40.497Z"
1366
1366
  },
1367
1367
  {
1368
1368
  "name": "sector-healthcare",
@@ -1422,7 +1422,7 @@
1422
1422
  "d3fend_refs": [],
1423
1423
  "last_threat_review": "2026-05-11",
1424
1424
  "signature": "AhF9KF8ZBlDteciV+F8IBSmFVYCvQOn44GmD4rZjgLoPxfIv/QE1/vSkK32zyqDKtHWkLSXExbkkPkxA/V6dDw==",
1425
- "signed_at": "2026-05-21T05:14:23.241Z"
1425
+ "signed_at": "2026-05-21T05:58:40.497Z"
1426
1426
  },
1427
1427
  {
1428
1428
  "name": "sector-financial",
@@ -1503,7 +1503,7 @@
1503
1503
  "TIBER-EU framework v2.0 alignment with DORA TLPT RTS (JC 2024/40); cross-recognition with CBEST and iCAST"
1504
1504
  ],
1505
1505
  "signature": "HQgZvb4ReziEz5rNFr8i/O8/rJEZR+iHRROT7m/D2QUqhrcNISPkYXENsUZlG8xapzy/Ik92ehkseyj4hdmhCQ==",
1506
- "signed_at": "2026-05-21T05:14:23.242Z"
1506
+ "signed_at": "2026-05-21T05:58:40.498Z"
1507
1507
  },
1508
1508
  {
1509
1509
  "name": "sector-federal-government",
@@ -1572,7 +1572,7 @@
1572
1572
  "Australia PSPF 2024 revision and ISM quarterly updates — track for Essential Eight Maturity Level requirements for federal entities"
1573
1573
  ],
1574
1574
  "signature": "linxmsXZiOYtcs71sSWgGCrvb8xQfmxmtTY5PRvZJ0/8FgJulo0tQtejzexYG775s7XhjAmGsDP238BQTQ8ADA==",
1575
- "signed_at": "2026-05-21T05:14:23.242Z"
1575
+ "signed_at": "2026-05-21T05:58:40.498Z"
1576
1576
  },
1577
1577
  {
1578
1578
  "name": "sector-energy",
@@ -1637,7 +1637,7 @@
1637
1637
  "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"
1638
1638
  ],
1639
1639
  "signature": "JjBfc0ovta560Clk0x3QGRM5osFJDwcvpy3rT7QEGdCIL827jzE8QCow1C8deXq+4JhY2sA/d7/8IsxikdlkCg==",
1640
- "signed_at": "2026-05-21T05:14:23.242Z"
1640
+ "signed_at": "2026-05-21T05:58:40.498Z"
1641
1641
  },
1642
1642
  {
1643
1643
  "name": "sector-telecom",
@@ -1723,7 +1723,7 @@
1723
1723
  "O-RAN SFG / WG11 security specifications"
1724
1724
  ],
1725
1725
  "signature": "JWVxKFoKrbX4d+Tko1d4OBdwyg25MfFFKn4CT6E/CzH+YwnU3T6Y76uBQIKg3+gIGTvPduqyvQwQQ5FxKDuPBw==",
1726
- "signed_at": "2026-05-21T05:14:23.243Z"
1726
+ "signed_at": "2026-05-21T05:58:40.498Z"
1727
1727
  },
1728
1728
  {
1729
1729
  "name": "api-security",
@@ -1792,7 +1792,7 @@
1792
1792
  "d3fend_refs": [],
1793
1793
  "last_threat_review": "2026-05-11",
1794
1794
  "signature": "BmCRCestWqr55+fCynEhtAl5NWLT+xLTkpwS0Icp3SaoZOw/ce3Y6TtqjHRSKn4CBJq7YDiLRWxmhO3MStvOAA==",
1795
- "signed_at": "2026-05-21T05:14:23.243Z"
1795
+ "signed_at": "2026-05-21T05:58:40.499Z"
1796
1796
  },
1797
1797
  {
1798
1798
  "name": "cloud-security",
@@ -1873,7 +1873,7 @@
1873
1873
  "CISA KEV additions for cloud-control-plane CVEs (IMDSv1 abuses, federation token mishandling, cross-tenant boundary failures); CISA Cybersecurity Advisories for cross-cloud advisories"
1874
1874
  ],
1875
1875
  "signature": "/DV3pmZwrRySrk1OCbyI+0BQESacjupJfUX3eC2NGtXuYOBro0vndIP+z27heFxumnjU3a9sfla7/U9X+pqnDw==",
1876
- "signed_at": "2026-05-21T05:14:23.243Z"
1876
+ "signed_at": "2026-05-21T05:58:40.499Z"
1877
1877
  },
1878
1878
  {
1879
1879
  "name": "container-runtime-security",
@@ -1935,7 +1935,7 @@
1935
1935
  "d3fend_refs": [],
1936
1936
  "last_threat_review": "2026-05-11",
1937
1937
  "signature": "E2UGSf9ATyYgzBr8uM/0ubOUmDqo1jVA7f9mVxv6LHfWGCNuQNXDyuNou9VAmUCeeXEeUYIi3AFjXkJqpOkxDA==",
1938
- "signed_at": "2026-05-21T05:14:23.244Z"
1938
+ "signed_at": "2026-05-21T05:58:40.499Z"
1939
1939
  },
1940
1940
  {
1941
1941
  "name": "mlops-security",
@@ -2006,7 +2006,7 @@
2006
2006
  "MITRE ATLAS v5.6.0 (released February 2026) shipped the AML.T0010 sub-technique expansion this forecast tracked plus new techniques (\"Publish Poisoned AI Agent Tool\", \"Escape to Host\"); inventory now 16 tactics, 84 techniques, 56 sub-techniques. Forward watch: ATLAS v5.5 / v6.0 — track next-cadence updates to agentic-AI TTPs and MLOps-pipeline-specific techniques"
2007
2007
  ],
2008
2008
  "signature": "BGNE6ZQWBA1LmsUFe8tU0L67iGDSrFqiuqaZD2f1KqfcyqqzQfMs9PWNHFzxxaJmXeKlm87eU8lgELF0bX+RBA==",
2009
- "signed_at": "2026-05-21T05:14:23.244Z"
2009
+ "signed_at": "2026-05-21T05:58:40.500Z"
2010
2010
  },
2011
2011
  {
2012
2012
  "name": "incident-response-playbook",
@@ -2068,7 +2068,7 @@
2068
2068
  "NYDFS 23 NYCRR 500.17 amendments tightening ransom-payment 24h disclosure operationalization"
2069
2069
  ],
2070
2070
  "signature": "FkZQerh3VHVJAwIcCktDyMRh5KE2+Em/i0ek8zEz7JG/PXtQx8ujHWTh3VjZbOLhPNtdB2qxgXOIAYIofaVOAQ==",
2071
- "signed_at": "2026-05-21T05:14:23.244Z"
2071
+ "signed_at": "2026-05-21T05:58:40.500Z"
2072
2072
  },
2073
2073
  {
2074
2074
  "name": "ransomware-response",
@@ -2148,7 +2148,7 @@
2148
2148
  ],
2149
2149
  "last_threat_review": "2026-05-15",
2150
2150
  "signature": "n3UToNuN3A1HgLvcuqmIx8vrZY71+r/79waK92jG+rSX4uYOzkmxMUpROrE5K9bDwMezNBHdjWv8Uul6zugyDQ==",
2151
- "signed_at": "2026-05-21T05:14:23.245Z"
2151
+ "signed_at": "2026-05-21T05:58:40.500Z"
2152
2152
  },
2153
2153
  {
2154
2154
  "name": "email-security-anti-phishing",
@@ -2201,7 +2201,7 @@
2201
2201
  "d3fend_refs": [],
2202
2202
  "last_threat_review": "2026-05-11",
2203
2203
  "signature": "rK+WnuS+9tqEABmwc0jO/PEmxcLjG1/tmUb897HsClQeKzf+TQOlwBE+OsbtuKxpjYNwur62Xxs3TxObkwm8Cw==",
2204
- "signed_at": "2026-05-21T05:14:23.245Z"
2204
+ "signed_at": "2026-05-21T05:58:40.501Z"
2205
2205
  },
2206
2206
  {
2207
2207
  "name": "age-gates-child-safety",
@@ -2269,7 +2269,7 @@
2269
2269
  "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"
2270
2270
  ],
2271
2271
  "signature": "+OO0RhQ303RJV7kaH38IuZpLeQbapep6Ds4Re/WEZu0FHBwKSlwvF7jbtP7KQ57xldJYn/xZm2jaszyOacMfDg==",
2272
- "signed_at": "2026-05-21T05:14:23.245Z"
2272
+ "signed_at": "2026-05-21T05:58:40.501Z"
2273
2273
  },
2274
2274
  {
2275
2275
  "name": "cloud-iam-incident",
@@ -2349,7 +2349,7 @@
2349
2349
  ],
2350
2350
  "last_threat_review": "2026-05-15",
2351
2351
  "signature": "e/kij7GtKaytROyIj7V5RH+FC9WtmVFzrmG2kIlNDNn29ep/CRNlIQKwXLpzo/81AIf634pmdr1qy/+vwIuUDA==",
2352
- "signed_at": "2026-05-21T05:14:23.246Z"
2352
+ "signed_at": "2026-05-21T05:58:40.501Z"
2353
2353
  },
2354
2354
  {
2355
2355
  "name": "idp-incident-response",
@@ -2430,11 +2430,11 @@
2430
2430
  ],
2431
2431
  "last_threat_review": "2026-05-15",
2432
2432
  "signature": "ew9Kglc9fAZzbn0ZIfGP7WSK/j4eV2VhSvpy+s5bEfNEVYIMa2kZjnGBapgUsyGDLes9H9K2ovjQyX17+GKiBw==",
2433
- "signed_at": "2026-05-21T05:14:23.246Z"
2433
+ "signed_at": "2026-05-21T05:58:40.502Z"
2434
2434
  }
2435
2435
  ],
2436
2436
  "manifest_signature": {
2437
2437
  "algorithm": "Ed25519",
2438
- "signature_base64": "U+/t7HEN6UYD1OiVmFk3gIG2ONice3AFoWmRhmS3blpwXOORBg4y5+/1Ds5fVorRqfXuEL5/E/vqqUFlZLxADg=="
2438
+ "signature_base64": "hR1NLS5mN1goInEizRpPOjO5xkg3wB4zsmciSo3/UIgmS10Qa0WJNTWX52o032ZLC4Dxn4snJ60zlx1vKuvhBQ=="
2439
2439
  }
2440
2440
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blamejs/exceptd-skills",
3
- "version": "0.13.39",
3
+ "version": "0.13.41",
4
4
  "description": "AI security skills grounded in mid-2026 threat reality, not stale framework documentation. 42 skills, 10 catalogs (312 CVEs / 171 CWEs / 805 ATT&CK + ICS / 170 ATLAS / 468 D3FEND / 7476 RFCs), 34 jurisdictions, 10-class catalog gap detector + budget gate, real XML parser + canonical-form diff + content-pattern regression detection, Ed25519-signed.",
5
5
  "keywords": [
6
6
  "ai-security",
package/sbom.cdx.json CHANGED
@@ -1,22 +1,22 @@
1
1
  {
2
2
  "bomFormat": "CycloneDX",
3
3
  "specVersion": "1.6",
4
- "serialNumber": "urn:uuid:fc61f805-6740-4746-9ace-c5646de5c30a",
4
+ "serialNumber": "urn:uuid:4fd52afb-0580-4176-b3f6-4f7c125d7e1e",
5
5
  "version": 1,
6
6
  "metadata": {
7
- "timestamp": "2160-03-06T20:35:17.000Z",
7
+ "timestamp": "2068-06-10T23:17:15.000Z",
8
8
  "tools": [
9
9
  {
10
10
  "vendor": "blamejs",
11
11
  "name": "scripts/refresh-sbom.js",
12
- "version": "0.13.39"
12
+ "version": "0.13.41"
13
13
  }
14
14
  ],
15
15
  "component": {
16
- "bom-ref": "pkg:npm/@blamejs/exceptd-skills@0.13.39",
16
+ "bom-ref": "pkg:npm/@blamejs/exceptd-skills@0.13.41",
17
17
  "type": "application",
18
18
  "name": "@blamejs/exceptd-skills",
19
- "version": "0.13.39",
19
+ "version": "0.13.41",
20
20
  "description": "AI security skills grounded in mid-2026 threat reality, not stale framework documentation. 42 skills, 10 catalogs (312 CVEs / 171 CWEs / 805 ATT&CK + ICS / 170 ATLAS / 468 D3FEND / 7476 RFCs), 34 jurisdictions, 10-class catalog gap detector + budget gate, real XML parser + canonical-form diff + content-pattern regression detection, Ed25519-signed.",
21
21
  "licenses": [
22
22
  {
@@ -25,17 +25,17 @@
25
25
  }
26
26
  }
27
27
  ],
28
- "purl": "pkg:npm/%40blamejs/exceptd-skills@0.13.39",
28
+ "purl": "pkg:npm/%40blamejs/exceptd-skills@0.13.41",
29
29
  "hashes": [
30
30
  {
31
31
  "alg": "SHA-256",
32
- "content": "74ddf4a0338a1e5b64531527ddc887ff95795ae9dfd1bd6bd5308129d9278f1d"
32
+ "content": "2170da0695dce4c96c204240cfce3133f147737709260c42e828be6778099cf9"
33
33
  }
34
34
  ],
35
35
  "externalReferences": [
36
36
  {
37
37
  "type": "distribution",
38
- "url": "https://www.npmjs.com/package/@blamejs/exceptd-skills/v/0.13.39"
38
+ "url": "https://www.npmjs.com/package/@blamejs/exceptd-skills/v/0.13.41"
39
39
  },
40
40
  {
41
41
  "type": "vcs",
@@ -86,11 +86,11 @@
86
86
  "hashes": [
87
87
  {
88
88
  "alg": "SHA-256",
89
- "content": "d6eeb79e1a53bdf399b48d79fc4cd30161be3b4202c1c45653329e1b80a4b2ad"
89
+ "content": "f11900411cb9b38926cd06bd0fc3a5f9a976992e7fd10fc256430c86a01c2ff4"
90
90
  },
91
91
  {
92
92
  "alg": "SHA3-512",
93
- "content": "861654229312f2c2d6b1f279038a771fcdb56f38aec9eda1ca4d5d66c4a475d8c3fa99468adddc883c61bfb092e4e245d1b4ea26c5fe745f981bfdb085864ab8"
93
+ "content": "7aacca7daeb4c211da11f0bc01844d39601fe2e6d4104653b9ef6ff6f0646261e4d9e1681c789154ed3ca454abf3bc8f255c9bfc741ef2498b2898f144fc5b4a"
94
94
  }
95
95
  ]
96
96
  },
@@ -116,11 +116,11 @@
116
116
  "hashes": [
117
117
  {
118
118
  "alg": "SHA-256",
119
- "content": "58bb67fe475a44a19e96b28ee97c286e2b5f6c69188c40a5392a5aca2bf188f1"
119
+ "content": "25679cb7c885f4c94779172be8505d09229eb9a09b279d95c75b710bc30b8e02"
120
120
  },
121
121
  {
122
122
  "alg": "SHA3-512",
123
- "content": "610996d04a43067e1109444fd87a4ff6334599d5cffe21d0c9ee80520fed1e1728d2be0da0758c7a2016ed6660bbf6188a190fba9bcb0fca9197560af3aed565"
123
+ "content": "7aebbb9fb903f3ec6892214943ce47b894f31800e6cfadcd16b748faa687e71146812c2181003aa9f437cd7b5f80943574319ec974d8a686232bbdeb76bb45ee"
124
124
  }
125
125
  ]
126
126
  },
@@ -874,6 +874,21 @@
874
874
  }
875
875
  ]
876
876
  },
877
+ {
878
+ "bom-ref": "file:lib/collectors/ai-api.js",
879
+ "type": "file",
880
+ "name": "lib/collectors/ai-api.js",
881
+ "hashes": [
882
+ {
883
+ "alg": "SHA-256",
884
+ "content": "f7f37f5567c4d6d31cbe076d9be0fcbefaac89e8f4db7b339fe4a9a441d25246"
885
+ },
886
+ {
887
+ "alg": "SHA3-512",
888
+ "content": "8a183e4d43cf51e8f45c0f2a630ee3004df83ded3e0d2879c1a38da927ff1ec9eb0c22321c98d1c0ee15979d49ec6fff6e37fd947b01e48e9c7a99ea3ee255b3"
889
+ }
890
+ ]
891
+ },
877
892
  {
878
893
  "bom-ref": "file:lib/collectors/containers.js",
879
894
  "type": "file",
@@ -964,6 +979,21 @@
964
979
  }
965
980
  ]
966
981
  },
982
+ {
983
+ "bom-ref": "file:lib/collectors/runtime.js",
984
+ "type": "file",
985
+ "name": "lib/collectors/runtime.js",
986
+ "hashes": [
987
+ {
988
+ "alg": "SHA-256",
989
+ "content": "9e289a5af6df7044750c39072ff2df9a4fa80c9594e5b84fdd490754939fabdb"
990
+ },
991
+ {
992
+ "alg": "SHA3-512",
993
+ "content": "e58b55d0d98313382bddfaea5e7c3d5e3e610aaafc744df0878778420df0ac97e8688c1f32067c69627d429fbaaaec7123dc9f4dcf4f4ebe7161b56eaa93424c"
994
+ }
995
+ ]
996
+ },
967
997
  {
968
998
  "bom-ref": "file:lib/collectors/sbom.js",
969
999
  "type": "file",
@@ -1586,11 +1616,11 @@
1586
1616
  "hashes": [
1587
1617
  {
1588
1618
  "alg": "SHA-256",
1589
- "content": "0785c4b4b99897d6846d7e324c8a093da8bfdeaa48ca9ab234cd82009d1e04d0"
1619
+ "content": "baf6b821336ba74ccafa21f09c510e7f581d3157a1aab19ed282f8d975ed8eec"
1590
1620
  },
1591
1621
  {
1592
1622
  "alg": "SHA3-512",
1593
- "content": "1391605f5361e83252247ffff0d85511abd4d3aed6308b89027ae4cd5df1aeb67ff3abfa71396421e9cdc31535e1783cb53b150aa0caf08000734171371ce480"
1623
+ "content": "e0a13900f9bd00255a766fa39d8ae79952c6c4c9cea0798bdacfe943f2b52350e5b0f32b261a850b54d67d2fbe50ed3e0608fd4669f95253bc93da7e1518c895"
1594
1624
  }
1595
1625
  ]
1596
1626
  },