@shieldaai/security-watch 0.1.0-alpha.0 → 1.0.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.
Files changed (92) hide show
  1. package/CHANGELOG.md +170 -0
  2. package/CONTRIBUTING.md +4 -2
  3. package/README.md +173 -48
  4. package/SECURITY.md +24 -9
  5. package/dist/assessment.d.ts +12 -1
  6. package/dist/assessment.js +223 -52
  7. package/dist/cli.js +340 -27
  8. package/dist/config.d.ts +62 -2
  9. package/dist/config.js +88 -5
  10. package/dist/coverage.d.ts +4 -0
  11. package/dist/coverage.js +11 -0
  12. package/dist/cve-now.d.ts +32 -2
  13. package/dist/cve-now.js +715 -126
  14. package/dist/cvss4.d.ts +3 -0
  15. package/dist/cvss4.js +39 -0
  16. package/dist/delivery.d.ts +34 -2
  17. package/dist/delivery.js +391 -98
  18. package/dist/ecosystems.d.ts +23 -0
  19. package/dist/ecosystems.js +88 -10
  20. package/dist/engine.d.ts +55 -1
  21. package/dist/engine.js +101 -20
  22. package/dist/everyday-words.d.ts +11 -0
  23. package/dist/everyday-words.js +256 -0
  24. package/dist/health.d.ts +7 -0
  25. package/dist/health.js +55 -3
  26. package/dist/http.d.ts +7 -0
  27. package/dist/http.js +31 -2
  28. package/dist/index.d.ts +22 -4
  29. package/dist/index.js +12 -4
  30. package/dist/inventory-evidence.d.ts +10 -0
  31. package/dist/inventory-evidence.js +206 -0
  32. package/dist/inventory.d.ts +273 -0
  33. package/dist/inventory.js +210 -17
  34. package/dist/maintenance.d.ts +5 -0
  35. package/dist/maintenance.js +73 -5
  36. package/dist/matching.d.ts +29 -0
  37. package/dist/matching.js +537 -0
  38. package/dist/models.d.ts +17 -4
  39. package/dist/models.js +359 -29
  40. package/dist/pilot-cases.d.ts +171 -0
  41. package/dist/pilot-cases.js +330 -0
  42. package/dist/pilot-input.d.ts +16 -0
  43. package/dist/pilot-input.js +125 -0
  44. package/dist/pilot-recall.d.ts +166 -0
  45. package/dist/pilot-recall.js +231 -0
  46. package/dist/pilot-report.d.ts +113 -0
  47. package/dist/pilot-report.js +279 -0
  48. package/dist/pilot-responses.d.ts +111 -0
  49. package/dist/pilot-responses.js +159 -0
  50. package/dist/python-version.d.ts +3 -0
  51. package/dist/python-version.js +30 -0
  52. package/dist/rehearsal.d.ts +440 -0
  53. package/dist/rehearsal.js +372 -0
  54. package/dist/sbom.d.ts +13 -0
  55. package/dist/sbom.js +193 -0
  56. package/dist/source-error.d.ts +17 -1
  57. package/dist/source-error.js +18 -3
  58. package/dist/sources.d.ts +2 -2
  59. package/dist/sources.js +699 -45
  60. package/dist/store.d.ts +38 -13
  61. package/dist/store.js +325 -23
  62. package/dist/types.d.ts +159 -2
  63. package/dist/util.d.ts +23 -0
  64. package/dist/util.js +81 -1
  65. package/dist/vendor/cvss4-reference.d.ts +2 -0
  66. package/dist/vendor/cvss4-reference.js +789 -0
  67. package/dist/word-filter.d.ts +3 -0
  68. package/dist/word-filter.js +3291 -0
  69. package/docs/alert-outcome-evaluation.md +150 -0
  70. package/docs/compatibility.md +35 -0
  71. package/docs/configuration.md +289 -29
  72. package/docs/cvss-v4-support.md +41 -0
  73. package/docs/offline-advisory-preview.md +114 -0
  74. package/docs/offline-rehearsal.md +44 -0
  75. package/docs/pilot-cases.md +58 -0
  76. package/docs/pilot-recall.md +124 -0
  77. package/docs/pilot-report.md +52 -0
  78. package/docs/validation/alert-outcome-evaluation-2026-11-05.json +2935 -0
  79. package/docs/validation/cvss-v4-reference-parity-2026-11-05.json +93 -0
  80. package/docs/validation/rehearsal-accepted-2026-11-05.json +175 -0
  81. package/docs/validation/rehearsal-unknown-2026-11-05.json +175 -0
  82. package/docs/vendor/cvss-v4-LICENSE.txt +22 -0
  83. package/docs/vendor/cvss-v4-provenance.json +38 -0
  84. package/examples/agent-advisories-2026.json +145 -0
  85. package/examples/agent-advisory-cases-2026.json +397 -0
  86. package/examples/libraries.example.txt +4 -2
  87. package/examples/libraries.example.yaml +2 -0
  88. package/examples/offline-advisory-preview.mjs +42 -0
  89. package/examples/rehearsal.json +75 -0
  90. package/examples/systems.example.yaml +4 -0
  91. package/package.json +23 -7
  92. package/docs/quality-review.md +0 -104
@@ -0,0 +1,397 @@
1
+ {
2
+ "version": 1,
3
+ "source_checked_at": "2026-10-28T16:44:48Z",
4
+ "note": "Synthetic deployment cases derived from the cited source snapshots. Supported final PyPI release ranges establish version applicability only; configuration-dependent remediation still requires review. Unsupported PEP 440 forms and product-only identity remain unknown.",
5
+ "cases": [
6
+ {
7
+ "id": "mcp-audience-vulnerable-1x",
8
+ "advisory_id": "GHSA-w4fh-qvv9-3v23",
9
+ "scenario": "vulnerable-1x",
10
+ "component": {
11
+ "id": "mcp",
12
+ "ecosystem": "PyPI",
13
+ "name": "mcp",
14
+ "version": "1.29.1"
15
+ },
16
+ "configuration": {
17
+ "validate_token_resource": false,
18
+ "token_verifier_checks_audience": false
19
+ },
20
+ "vendor_fixed_release": false,
21
+ "expected_applicability": "affected",
22
+ "expected_remediation": "review_required"
23
+ },
24
+ {
25
+ "id": "mcp-audience-vulnerable-2x",
26
+ "advisory_id": "GHSA-w4fh-qvv9-3v23",
27
+ "scenario": "vulnerable-2x",
28
+ "component": {
29
+ "id": "mcp",
30
+ "ecosystem": "PyPI",
31
+ "name": "mcp",
32
+ "version": "2.1.1"
33
+ },
34
+ "configuration": {
35
+ "validate_token_resource": false,
36
+ "token_verifier_checks_audience": false
37
+ },
38
+ "vendor_fixed_release": false,
39
+ "expected_applicability": "affected",
40
+ "expected_remediation": "review_required"
41
+ },
42
+ {
43
+ "id": "mcp-audience-fixed-release-misconfigured",
44
+ "advisory_id": "GHSA-w4fh-qvv9-3v23",
45
+ "scenario": "fixed-release-misconfigured",
46
+ "component": {
47
+ "id": "mcp",
48
+ "ecosystem": "PyPI",
49
+ "name": "mcp",
50
+ "version": "1.30.0"
51
+ },
52
+ "configuration": {
53
+ "validate_token_resource": false,
54
+ "token_verifier_checks_audience": false
55
+ },
56
+ "vendor_fixed_release": true,
57
+ "expected_applicability": "not_affected",
58
+ "expected_remediation": "review_required"
59
+ },
60
+ {
61
+ "id": "mcp-audience-fixed-release-configured",
62
+ "advisory_id": "GHSA-w4fh-qvv9-3v23",
63
+ "scenario": "fixed-release-configured",
64
+ "component": {
65
+ "id": "mcp",
66
+ "ecosystem": "PyPI",
67
+ "name": "mcp",
68
+ "version": "2.2.0"
69
+ },
70
+ "configuration": {
71
+ "validate_token_resource": true,
72
+ "resource_server_url_configured": true,
73
+ "access_token_resource_populated": true
74
+ },
75
+ "vendor_fixed_release": true,
76
+ "expected_applicability": "not_affected",
77
+ "expected_remediation": "review_required"
78
+ },
79
+ {
80
+ "id": "mcp-audience-unlisted-pep440",
81
+ "advisory_id": "GHSA-w4fh-qvv9-3v23",
82
+ "scenario": "unlisted-pep440",
83
+ "component": {
84
+ "id": "mcp",
85
+ "ecosystem": "PyPI",
86
+ "name": "mcp",
87
+ "version": "1.30.0rc1"
88
+ },
89
+ "configuration": {},
90
+ "vendor_fixed_release": false,
91
+ "expected_applicability": "unknown",
92
+ "expected_remediation": "review_required"
93
+ },
94
+ {
95
+ "id": "mcp-audience-missing-version",
96
+ "advisory_id": "GHSA-w4fh-qvv9-3v23",
97
+ "scenario": "missing-version",
98
+ "component": {
99
+ "id": "mcp",
100
+ "ecosystem": "PyPI",
101
+ "name": "mcp"
102
+ },
103
+ "configuration": {},
104
+ "vendor_fixed_release": false,
105
+ "expected_applicability": "unknown",
106
+ "expected_remediation": "review_required"
107
+ },
108
+ {
109
+ "id": "mcp-redirect-vulnerable-1x",
110
+ "advisory_id": "GHSA-5h93-6whr-6q8j",
111
+ "scenario": "vulnerable-1x",
112
+ "component": {
113
+ "id": "mcp",
114
+ "ecosystem": "PyPI",
115
+ "name": "mcp",
116
+ "version": "1.29.1"
117
+ },
118
+ "configuration": {
119
+ "mcp_transport": "http",
120
+ "custom_http_client_used": true,
121
+ "follow_redirects": true,
122
+ "cross_origin_redirect_override": true
123
+ },
124
+ "vendor_fixed_release": false,
125
+ "expected_applicability": "affected",
126
+ "expected_remediation": "review_required"
127
+ },
128
+ {
129
+ "id": "mcp-redirect-vulnerable-2x",
130
+ "advisory_id": "GHSA-5h93-6whr-6q8j",
131
+ "scenario": "vulnerable-2x",
132
+ "component": {
133
+ "id": "mcp",
134
+ "ecosystem": "PyPI",
135
+ "name": "mcp",
136
+ "version": "2.1.1"
137
+ },
138
+ "configuration": {
139
+ "mcp_transport": "http",
140
+ "custom_http_client_used": true,
141
+ "follow_redirects": true,
142
+ "cross_origin_redirect_override": true
143
+ },
144
+ "vendor_fixed_release": false,
145
+ "expected_applicability": "affected",
146
+ "expected_remediation": "review_required"
147
+ },
148
+ {
149
+ "id": "mcp-redirect-fixed-release-misconfigured",
150
+ "advisory_id": "GHSA-5h93-6whr-6q8j",
151
+ "scenario": "fixed-release-misconfigured",
152
+ "component": {
153
+ "id": "mcp",
154
+ "ecosystem": "PyPI",
155
+ "name": "mcp",
156
+ "version": "1.30.0"
157
+ },
158
+ "configuration": {
159
+ "mcp_transport": "http",
160
+ "custom_http_client_used": true,
161
+ "follow_redirects": true,
162
+ "cross_origin_redirect_override": true
163
+ },
164
+ "vendor_fixed_release": true,
165
+ "expected_applicability": "not_affected",
166
+ "expected_remediation": "review_required"
167
+ },
168
+ {
169
+ "id": "mcp-redirect-fixed-release-configured",
170
+ "advisory_id": "GHSA-5h93-6whr-6q8j",
171
+ "scenario": "fixed-release-configured",
172
+ "component": {
173
+ "id": "mcp",
174
+ "ecosystem": "PyPI",
175
+ "name": "mcp",
176
+ "version": "2.2.0"
177
+ },
178
+ "configuration": {
179
+ "mcp_transport": "http",
180
+ "cross_origin_redirect_override": false
181
+ },
182
+ "vendor_fixed_release": true,
183
+ "expected_applicability": "not_affected",
184
+ "expected_remediation": "review_required"
185
+ },
186
+ {
187
+ "id": "mcp-redirect-unlisted-pep440",
188
+ "advisory_id": "GHSA-5h93-6whr-6q8j",
189
+ "scenario": "unlisted-pep440",
190
+ "component": {
191
+ "id": "mcp",
192
+ "ecosystem": "PyPI",
193
+ "name": "mcp",
194
+ "version": "1.30.0rc1"
195
+ },
196
+ "configuration": {},
197
+ "vendor_fixed_release": false,
198
+ "expected_applicability": "unknown",
199
+ "expected_remediation": "review_required"
200
+ },
201
+ {
202
+ "id": "mcp-redirect-missing-version",
203
+ "advisory_id": "GHSA-5h93-6whr-6q8j",
204
+ "scenario": "missing-version",
205
+ "component": {
206
+ "id": "mcp",
207
+ "ecosystem": "PyPI",
208
+ "name": "mcp"
209
+ },
210
+ "configuration": {},
211
+ "vendor_fixed_release": false,
212
+ "expected_applicability": "unknown",
213
+ "expected_remediation": "review_required"
214
+ },
215
+ {
216
+ "id": "mcp-schema-vulnerable-1x",
217
+ "advisory_id": "GHSA-rwrf-2pqf-9j8j",
218
+ "scenario": "vulnerable-1x",
219
+ "component": {
220
+ "id": "mcp",
221
+ "ecosystem": "PyPI",
222
+ "name": "mcp",
223
+ "version": "1.29.1"
224
+ },
225
+ "configuration": {
226
+ "mcp_role": "client",
227
+ "calls_untrusted_mcp_tools": true,
228
+ "external_schema_refs_blocked": false,
229
+ "schema_validation_network_access": true
230
+ },
231
+ "vendor_fixed_release": false,
232
+ "expected_applicability": "affected",
233
+ "expected_remediation": "review_required"
234
+ },
235
+ {
236
+ "id": "mcp-schema-vulnerable-2x",
237
+ "advisory_id": "GHSA-rwrf-2pqf-9j8j",
238
+ "scenario": "vulnerable-2x",
239
+ "component": {
240
+ "id": "mcp",
241
+ "ecosystem": "PyPI",
242
+ "name": "mcp",
243
+ "version": "2.1.1"
244
+ },
245
+ "configuration": {
246
+ "mcp_role": "client",
247
+ "calls_untrusted_mcp_tools": true,
248
+ "external_schema_refs_blocked": false,
249
+ "schema_validation_network_access": true
250
+ },
251
+ "vendor_fixed_release": false,
252
+ "expected_applicability": "affected",
253
+ "expected_remediation": "review_required"
254
+ },
255
+ {
256
+ "id": "mcp-schema-fixed-release-misconfigured",
257
+ "advisory_id": "GHSA-rwrf-2pqf-9j8j",
258
+ "scenario": "fixed-release-misconfigured",
259
+ "component": {
260
+ "id": "mcp",
261
+ "ecosystem": "PyPI",
262
+ "name": "mcp",
263
+ "version": "1.30.0"
264
+ },
265
+ "configuration": {
266
+ "mcp_role": "client",
267
+ "calls_untrusted_mcp_tools": true,
268
+ "external_schema_refs_blocked": false,
269
+ "schema_validation_network_access": true
270
+ },
271
+ "vendor_fixed_release": true,
272
+ "expected_applicability": "not_affected",
273
+ "expected_remediation": "review_required"
274
+ },
275
+ {
276
+ "id": "mcp-schema-fixed-release-configured",
277
+ "advisory_id": "GHSA-rwrf-2pqf-9j8j",
278
+ "scenario": "fixed-release-configured",
279
+ "component": {
280
+ "id": "mcp",
281
+ "ecosystem": "PyPI",
282
+ "name": "mcp",
283
+ "version": "2.2.0"
284
+ },
285
+ "configuration": {
286
+ "mcp_role": "client",
287
+ "external_schema_refs_blocked": true,
288
+ "schema_validation_network_access": false
289
+ },
290
+ "vendor_fixed_release": true,
291
+ "expected_applicability": "not_affected",
292
+ "expected_remediation": "review_required"
293
+ },
294
+ {
295
+ "id": "mcp-schema-unlisted-pep440",
296
+ "advisory_id": "GHSA-rwrf-2pqf-9j8j",
297
+ "scenario": "unlisted-pep440",
298
+ "component": {
299
+ "id": "mcp",
300
+ "ecosystem": "PyPI",
301
+ "name": "mcp",
302
+ "version": "1.30.0rc1"
303
+ },
304
+ "configuration": {},
305
+ "vendor_fixed_release": false,
306
+ "expected_applicability": "unknown",
307
+ "expected_remediation": "review_required"
308
+ },
309
+ {
310
+ "id": "mcp-schema-missing-version",
311
+ "advisory_id": "GHSA-rwrf-2pqf-9j8j",
312
+ "scenario": "missing-version",
313
+ "component": {
314
+ "id": "mcp",
315
+ "ecosystem": "PyPI",
316
+ "name": "mcp"
317
+ },
318
+ "configuration": {},
319
+ "vendor_fixed_release": false,
320
+ "expected_applicability": "unknown",
321
+ "expected_remediation": "review_required"
322
+ },
323
+ {
324
+ "id": "openhands-vulnerable-release-exposed",
325
+ "advisory_id": "CVE-2026-112346",
326
+ "scenario": "vulnerable-release-exposed",
327
+ "product": {
328
+ "name": "OpenHands Software Agent SDK",
329
+ "keywords": [],
330
+ "version": "1.51.0"
331
+ },
332
+ "configuration": {
333
+ "sandbox_workspace_backend": "DockerWorkspace",
334
+ "sandbox_bind_address": "0.0.0.0",
335
+ "sandbox_authentication_required": false,
336
+ "sandbox_session_keys_configured": false,
337
+ "sandbox_port_reachable_from_untrusted_network": true
338
+ },
339
+ "vendor_fixed_release": false,
340
+ "expected_applicability": "unknown",
341
+ "expected_remediation": "review_required"
342
+ },
343
+ {
344
+ "id": "openhands-fixed-release-misconfigured",
345
+ "advisory_id": "CVE-2026-112346",
346
+ "scenario": "fixed-release-misconfigured",
347
+ "product": {
348
+ "name": "OpenHands Software Agent SDK",
349
+ "keywords": [],
350
+ "version": "1.52.0"
351
+ },
352
+ "configuration": {
353
+ "sandbox_workspace_backend": "DockerWorkspace",
354
+ "sandbox_bind_address": "0.0.0.0",
355
+ "sandbox_authentication_required": false,
356
+ "sandbox_session_keys_configured": false,
357
+ "sandbox_port_reachable_from_untrusted_network": true
358
+ },
359
+ "vendor_fixed_release": true,
360
+ "expected_applicability": "unknown",
361
+ "expected_remediation": "review_required"
362
+ },
363
+ {
364
+ "id": "openhands-fixed-release-configured",
365
+ "advisory_id": "CVE-2026-112346",
366
+ "scenario": "fixed-release-configured",
367
+ "product": {
368
+ "name": "OpenHands Software Agent SDK",
369
+ "keywords": [],
370
+ "version": "1.52.0"
371
+ },
372
+ "configuration": {
373
+ "sandbox_workspace_backend": "DockerWorkspace",
374
+ "sandbox_bind_address": "127.0.0.1",
375
+ "sandbox_authentication_required": true,
376
+ "sandbox_session_keys_configured": true,
377
+ "sandbox_port_reachable_from_untrusted_network": false
378
+ },
379
+ "vendor_fixed_release": true,
380
+ "expected_applicability": "unknown",
381
+ "expected_remediation": "review_required"
382
+ },
383
+ {
384
+ "id": "openhands-missing-version",
385
+ "advisory_id": "CVE-2026-112346",
386
+ "scenario": "missing-version",
387
+ "product": {
388
+ "name": "OpenHands Software Agent SDK",
389
+ "keywords": []
390
+ },
391
+ "configuration": {},
392
+ "vendor_fixed_release": false,
393
+ "expected_applicability": "unknown",
394
+ "expected_remediation": "review_required"
395
+ }
396
+ ]
397
+ }
@@ -1,9 +1,11 @@
1
1
  # Example package identities, not a claim about what is installed.
2
2
  # Versions are optional. Replace the illustrated versions with deployed values.
3
- npm:express
3
+ # Text after # at the end of a line is a note: it says where the library is used
4
+ # and is repeated in every alert about it.
5
+ npm:express # web front end, repository example/shop, file package.json
4
6
  npm:@types/node
5
7
  python:requests
6
- python:urllib3==2.2.3
8
+ python:urllib3==2.2.3 # billing worker, services/billing/requirements.txt
7
9
  php:symfony/http-foundation@6.4.0
8
10
  go:golang.org/x/net
9
11
  maven:org.apache.logging.log4j:log4j-core
@@ -15,6 +15,8 @@ systems:
15
15
  - requests
16
16
  - name: urllib3
17
17
  version: '2.2.3'
18
+ # Optional: where this library is used. Repeated in every alert about it.
19
+ note: billing worker, services/billing/requirements.txt
18
20
  php:
19
21
  - name: symfony/http-foundation
20
22
  version: '6.4.0'
@@ -0,0 +1,42 @@
1
+ import assert from 'node:assert/strict';
2
+ import { dirname, join } from 'node:path';
3
+ import { fileURLToPath } from 'node:url';
4
+ import { parseConfig, loadInventory, readFixture, Store, runScan } from '@shieldaai/security-watch';
5
+
6
+ // Use fictional data distributed in the installed package, not private inventory.
7
+ const packageRoot = dirname(dirname(fileURLToPath(import.meta.resolve('@shieldaai/security-watch'))));
8
+ const inventory = loadInventory(join(packageRoot, 'examples/systems.example.yaml'));
9
+ const now = new Date().toISOString();
10
+ for (const system of inventory.systems) system.updated_at = now;
11
+ // Simulated fresh capture times for fictional evidence; nothing was fetched.
12
+ const fixture = readFixture(join(packageRoot, 'examples/advisories.json')).map((event) => ({
13
+ ...event,
14
+ modified_at: now,
15
+ fetched_at: now,
16
+ }));
17
+ const config = parseConfig({ version: 1 });
18
+ const store = new Store(':memory:');
19
+ const previousFetch = globalThis.fetch;
20
+ globalThis.fetch = async () => {
21
+ throw new Error('This fixture example must not use the network');
22
+ };
23
+ try {
24
+ const report = await runScan({
25
+ config,
26
+ inventory,
27
+ store,
28
+ fixture,
29
+ });
30
+ assert(report.findings.some((f) => f.applicability === 'affected'));
31
+ assert(report.findings.some((f) => f.applicability === 'not_affected'));
32
+ for (const finding of report.findings) {
33
+ console.log(
34
+ `${finding.system_id}: ${finding.applicability}; source severity: ${finding.source_severity}`,
35
+ );
36
+ }
37
+ console.log('All assertions passed. Fictional advisory and inventory; in-memory storage.');
38
+ console.log('No network, model requests, credentials or notifications.');
39
+ } finally {
40
+ store.close();
41
+ globalThis.fetch = previousFetch;
42
+ }
@@ -0,0 +1,75 @@
1
+ {
2
+ "version": 1,
3
+ "frames": [
4
+ {
5
+ "at": "2026-11-05T12:00:00.000Z",
6
+ "inventory": {
7
+ "systems": [
8
+ {
9
+ "id": "synthetic-rehearsal",
10
+ "name": "Synthetic rehearsal",
11
+ "environment": "test",
12
+ "exposure": "unknown",
13
+ "criticality": "low",
14
+ "updated_at": "2026-11-05T12:00:00.000Z",
15
+ "components": [
16
+ {
17
+ "id": "example-parser",
18
+ "ecosystem": "npm",
19
+ "name": "example-parser",
20
+ "version": "1.0.0"
21
+ }
22
+ ],
23
+ "products": [],
24
+ "keywords": []
25
+ }
26
+ ]
27
+ },
28
+ "evidence": [
29
+ {
30
+ "id": "synthetic:rehearsal-parser",
31
+ "source": "synthetic",
32
+ "kind": "advisory",
33
+ "title": "Synthetic parser advisory",
34
+ "description": "Fictional deterministic staging input.",
35
+ "url": "https://example.invalid/rehearsal",
36
+ "aliases": ["CVE-2099-99901"],
37
+ "severity": "critical",
38
+ "modified_at": "2026-11-05T12:00:00.000Z",
39
+ "fetched_at": "2026-11-05T12:00:00.000Z",
40
+ "packages": [
41
+ {
42
+ "ecosystem": "npm",
43
+ "name": "example-parser",
44
+ "range": "<2.0.0"
45
+ }
46
+ ]
47
+ }
48
+ ]
49
+ },
50
+ {
51
+ "at": "2026-11-05T12:01:00.000Z",
52
+ "evidence": [
53
+ {
54
+ "id": "synthetic:rehearsal-parser",
55
+ "source": "synthetic",
56
+ "kind": "advisory",
57
+ "title": "Synthetic parser advisory",
58
+ "description": "Fictional deterministic staging input.",
59
+ "url": "https://example.invalid/rehearsal",
60
+ "aliases": ["CVE-2099-99901"],
61
+ "severity": "critical",
62
+ "modified_at": "2026-11-05T12:00:00.000Z",
63
+ "fetched_at": "2026-11-05T12:00:00.000Z",
64
+ "packages": [
65
+ {
66
+ "ecosystem": "npm",
67
+ "name": "example-parser",
68
+ "range": "<2.0.0"
69
+ }
70
+ ]
71
+ }
72
+ ]
73
+ }
74
+ ]
75
+ }
@@ -4,6 +4,8 @@ systems:
4
4
  name: Payments API
5
5
  environment: production
6
6
  owner: payments-team
7
+ # A note says where to look. It is repeated in every alert about this system.
8
+ note: runs on cluster eu-1, namespace payments; on-call rota "payments"
7
9
  exposure: internet
8
10
  criticality: critical
9
11
  updated_at: '2026-10-23T00:00:00Z'
@@ -12,11 +14,13 @@ systems:
12
14
  ecosystem: npm
13
15
  name: example-parser
14
16
  version: 1.2.0
17
+ note: request parsing in services/payments-api, file package.json
15
18
  # lockfile: ../application/package-lock.json
16
19
  products:
17
20
  - name: Example Database
18
21
  version: '4.2'
19
22
  keywords: [Example Database Server]
23
+ note: managed instance "payments-prod", owned by the data team
20
24
  keywords: [Example Cloud]
21
25
  - id: payments-staging
22
26
  name: Payments staging
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@shieldaai/security-watch",
3
- "version": "0.1.0-alpha.0",
4
- "description": "Evidence-led security advisory and news monitoring for your systems",
3
+ "version": "1.0.0",
4
+ "description": "Know quickly which new vulnerabilities and security news affect your stack. Self-hosted advisory monitoring with Slack or email alerts.",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
7
7
  "engines": {
8
- "node": ">=24.0.0"
8
+ "node": ">=24.10.0"
9
9
  },
10
10
  "bin": {
11
11
  "security-watch": "dist/cli.js"
@@ -21,6 +21,7 @@
21
21
  "examples",
22
22
  "docs",
23
23
  "README.md",
24
+ "CHANGELOG.md",
24
25
  "LICENSE",
25
26
  "SECURITY.md",
26
27
  "CONTRIBUTING.md"
@@ -28,20 +29,24 @@
28
29
  "scripts": {
29
30
  "build": "node scripts/build.mjs",
30
31
  "test": "npm run build && node --test test/*.test.mjs",
32
+ "test:coverage": "npm run build && node --test --experimental-test-coverage --test-coverage-lines=95 --test-coverage-branches=88 --test-coverage-functions=95 --test-coverage-exclude=test/** test/*.test.mjs",
31
33
  "check": "npm run format:check && npm test && node scripts/check-package.mjs",
32
34
  "check:package": "node scripts/check-package.mjs",
33
35
  "check:models": "npm run build && node scripts/check-models.mjs",
34
36
  "evaluate:models": "npm run build && node scripts/evaluate-models.mjs",
35
37
  "start": "node dist/cli.js start",
36
38
  "prepublishOnly": "node scripts/release-check.mjs",
39
+ "release": "node scripts/release.mjs",
37
40
  "demo": "npm run build && node scripts/demo.mjs",
38
41
  "check:docker": "node scripts/check-docker.mjs",
39
42
  "format": "prettier --write .",
40
43
  "format:check": "prettier --check .",
41
- "prepack": "npm run build"
44
+ "prepack": "npm run build",
45
+ "evaluate:outcomes": "npm run build && node scripts/evaluate-alerts.mjs"
42
46
  },
43
47
  "dependencies": {
44
- "fast-xml-parser": "5.11.2",
48
+ "@renovatebot/pep440": "6.0.0",
49
+ "fast-xml-parser": "5.12.1",
45
50
  "ipaddr.js": "2.5.0",
46
51
  "nodemailer": "10.2.1",
47
52
  "parse5": "8.0.1",
@@ -58,7 +63,7 @@
58
63
  },
59
64
  "publishConfig": {
60
65
  "access": "public",
61
- "tag": "alpha"
66
+ "tag": "latest"
62
67
  },
63
68
  "repository": {
64
69
  "type": "git",
@@ -67,5 +72,16 @@
67
72
  "bugs": {
68
73
  "url": "https://github.com/ShieldaAI/security-watch/issues"
69
74
  },
70
- "homepage": "https://github.com/ShieldaAI/security-watch#readme"
75
+ "homepage": "https://github.com/ShieldaAI/security-watch#readme",
76
+ "keywords": [
77
+ "security-advisories",
78
+ "dependency-monitoring",
79
+ "vulnerability-monitoring",
80
+ "cve",
81
+ "osv",
82
+ "npm",
83
+ "slack",
84
+ "self-hosted",
85
+ "typescript"
86
+ ]
71
87
  }