blitzstrike 2.4.115 → 2.4.117
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/CHANGELOG.md +57 -57
- package/dist/index.js +178 -88
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,29 +5,29 @@ All notable changes to Blitz Strike are documented here.
|
|
|
5
5
|
The format follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/).
|
|
7
7
|
|
|
8
|
-
## [2.4.
|
|
8
|
+
## [2.4.117] — 2026-09-29
|
|
9
9
|
|
|
10
|
-
###
|
|
10
|
+
### Added — `cve_verify` (fingerprint-first → live nuclei confirmation)
|
|
11
11
|
|
|
12
|
-
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
- New `cve_verify(cve, target)` tool closes the fingerprint-first loop: when
|
|
13
|
+
`live_recon` / the nuclei corpus SUGGESTS a CVE, `cve_verify` locates the
|
|
14
|
+
matching nuclei template, runs it against the target, and returns VERIFIED /
|
|
15
|
+
UNVERIFIED / no_template / error from nuclei's own JSONL output. A suggested
|
|
16
|
+
CVE is only report-ready after `cve_verify` confirms it — never from the
|
|
17
|
+
fingerprint alone. (149 MCP tools.)
|
|
17
18
|
|
|
18
|
-
## [2.4.
|
|
19
|
+
## [2.4.116] — 2026-09-29
|
|
19
20
|
|
|
20
|
-
###
|
|
21
|
+
### Changed — system prompt tells the LLM about the new tooling
|
|
21
22
|
|
|
22
|
-
- The
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
functional filter (like `waf_signatures.json`), not competitor framing.
|
|
23
|
+
- The LLM-facing system prompt now documents the new tools/features added this
|
|
24
|
+
cycle: `review_harness` (full-coverage 5-signal per-file rubric — run it FIRST
|
|
25
|
+
on any source repo), `broken_link_scan` (expired-domain takeover via DNS/RDAP),
|
|
26
|
+
`surface_map` (surface-first targeting), `sync_cve_corpus` (refresh the 4,000+
|
|
27
|
+
CVE fingerprint corpus), and the nuclei-derived CVE corpus behind
|
|
28
|
+
`live_recon`'s `suggested_cves`.
|
|
29
29
|
|
|
30
|
-
## [2.4.113] — 2026-09-
|
|
30
|
+
## [2.4.113] — 2026-09-29
|
|
31
31
|
|
|
32
32
|
### Added — auto-updating nuclei CVE corpus (live-read + sync tool)
|
|
33
33
|
|
|
@@ -41,7 +41,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
|
|
|
41
41
|
or the bundled snapshot — call it before a large recon pass to pick up
|
|
42
42
|
newly-disclosed CVEs.
|
|
43
43
|
|
|
44
|
-
## [2.4.112] — 2026-09-
|
|
44
|
+
## [2.4.112] — 2026-09-29
|
|
45
45
|
|
|
46
46
|
### Added — nuclei-templates CVE corpus (watchlist 35 → 4,100+ fingerprints)
|
|
47
47
|
|
|
@@ -58,7 +58,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
|
|
|
58
58
|
so a plain PHP/HTML target yields ZERO false matches — regression-tested
|
|
59
59
|
(plain php → 0; vite/gradio/ollama/n8n → their specific CVEs).
|
|
60
60
|
|
|
61
|
-
## [2.4.111] — 2026-09-
|
|
61
|
+
## [2.4.111] — 2026-09-29
|
|
62
62
|
|
|
63
63
|
### Added — CVE watchlist expanded 18 → 35 (2025-2026 fingerprints)
|
|
64
64
|
|
|
@@ -77,7 +77,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
|
|
|
77
77
|
"workflow" keyword that false-positived n8n↔Kibana); regression-tested
|
|
78
78
|
fingerprint precision (n8n ≠ kibana).
|
|
79
79
|
|
|
80
|
-
## [2.4.110] — 2026-09-
|
|
80
|
+
## [2.4.110] — 2026-09-29
|
|
81
81
|
|
|
82
82
|
### Added — hash length extension + concrete payload enrichment
|
|
83
83
|
|
|
@@ -93,7 +93,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
|
|
|
93
93
|
`sql_injection` (Kona-style WAF bypass: MID/LIKE//**//double-quote),
|
|
94
94
|
`command_injection` (i'''d, brace expansion, Shellshock, Werkzeug debugger PIN).
|
|
95
95
|
|
|
96
|
-
## [2.4.109] — 2026-09-
|
|
96
|
+
## [2.4.109] — 2026-09-29
|
|
97
97
|
|
|
98
98
|
### Changed — follow-the-money doctrine rule with concrete proven patterns
|
|
99
99
|
|
|
@@ -104,7 +104,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
|
|
|
104
104
|
Reinforces "if the client can add credits, apply a discount, or reset a
|
|
105
105
|
credential client-side, that is the highest-value test in the program."
|
|
106
106
|
|
|
107
|
-
## [2.4.108] — 2026-09-
|
|
107
|
+
## [2.4.108] — 2026-09-29
|
|
108
108
|
|
|
109
109
|
### Added — surface-first map (attack surface → high-value tests)
|
|
110
110
|
|
|
@@ -120,7 +120,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
|
|
|
120
120
|
step. Added doctrine rule `surface_first` ("map surfaces before spraying
|
|
121
121
|
payloads").
|
|
122
122
|
|
|
123
|
-
## [2.4.107] — 2026-09-
|
|
123
|
+
## [2.4.107] — 2026-09-29
|
|
124
124
|
|
|
125
125
|
### Added — `review_harness` (per-file review, full-coverage deterministic rubric)
|
|
126
126
|
|
|
@@ -141,7 +141,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
|
|
|
141
141
|
hooks against it; sinks still use the string-blanking strip. Regression-tested:
|
|
142
142
|
`wp_ajax_nopriv_` now detected.
|
|
143
143
|
|
|
144
|
-
## [2.4.106] — 2026-09-
|
|
144
|
+
## [2.4.106] — 2026-09-29
|
|
145
145
|
|
|
146
146
|
### Added — report assembly (metadata + vulnerability-location block)
|
|
147
147
|
|
|
@@ -155,7 +155,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
|
|
|
155
155
|
matching the report-template structure (Executive Summary → Location →
|
|
156
156
|
Description → numbered Steps → Impact → Remediation → References).
|
|
157
157
|
|
|
158
|
-
## [2.4.105] — 2026-09-
|
|
158
|
+
## [2.4.105] — 2026-09-29
|
|
159
159
|
|
|
160
160
|
### Added — technique depth (concrete tools + payloads in the technique base)
|
|
161
161
|
|
|
@@ -172,7 +172,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
|
|
|
172
172
|
(alg:none / key confusion / jku-x5u / kid traversal / CVE-2022-21449).
|
|
173
173
|
- `nosql_injection` — $ne/$gt/$regex/$where payloads (form + JSON) + $where RCE.
|
|
174
174
|
|
|
175
|
-
## [2.4.104] — 2026-09-
|
|
175
|
+
## [2.4.104] — 2026-09-29
|
|
176
176
|
|
|
177
177
|
### Added — two client-side detectors (postMessage + client-trusted flag)
|
|
178
178
|
|
|
@@ -187,7 +187,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
|
|
|
187
187
|
permission). Both grounded (pattern + CWE + severity + synonym + chain) and
|
|
188
188
|
covered by fire-vs-clean regression checks.
|
|
189
189
|
|
|
190
|
-
## [2.4.103] — 2026-09-
|
|
190
|
+
## [2.4.103] — 2026-09-29
|
|
191
191
|
|
|
192
192
|
### Added — version-precise fingerprint-first (semver narrowing)
|
|
193
193
|
|
|
@@ -199,7 +199,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
|
|
|
199
199
|
CVE-2025-29927 (affected) but not CVE-2024-34351 (patched 14.1.1); Next.js
|
|
200
200
|
15.3.0 → both excluded; unknown version → full product list (fallback).
|
|
201
201
|
|
|
202
|
-
## [2.4.102] — 2026-09-
|
|
202
|
+
## [2.4.102] — 2026-09-29
|
|
203
203
|
|
|
204
204
|
### Added — `broken_link_scan` (broken-link hijacking live detector)
|
|
205
205
|
|
|
@@ -213,7 +213,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
|
|
|
213
213
|
domain. Verified live: example.com → registered (not claimable), a
|
|
214
214
|
nonexistent domain → RDAP 404 → claimable.
|
|
215
215
|
|
|
216
|
-
## [2.4.101] — 2026-09-
|
|
216
|
+
## [2.4.101] — 2026-09-29
|
|
217
217
|
|
|
218
218
|
### Added — three new hunting classes (techniques + attack vectors)
|
|
219
219
|
|
|
@@ -224,7 +224,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
|
|
|
224
224
|
how-to-test steps, concrete techniques, and verify (marker + negative
|
|
225
225
|
control) — matching the existing per-class methodology shape.
|
|
226
226
|
|
|
227
|
-
## [2.4.100] — 2026-09-
|
|
227
|
+
## [2.4.100] — 2026-09-29
|
|
228
228
|
|
|
229
229
|
### Fixed — data-file resolution was `process.cwd()`-dependent (broke under npx)
|
|
230
230
|
|
|
@@ -236,7 +236,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
|
|
|
236
236
|
every other data loader (`patterns.ts`, `chains.json`, `tools-catalog.json`).
|
|
237
237
|
Verified: `watchlist()` and the enterprise fixtures load from an arbitrary cwd.
|
|
238
238
|
|
|
239
|
-
## [2.4.99] — 2026-09-
|
|
239
|
+
## [2.4.99] — 2026-09-29
|
|
240
240
|
|
|
241
241
|
### Fixed — grounding completeness for the CVE watchlist class tags
|
|
242
242
|
|
|
@@ -246,7 +246,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
|
|
|
246
246
|
`hardcoded_secret`). Every one of the 18 CVE class tags now resolves to a
|
|
247
247
|
grounded pattern (locked by a regression check).
|
|
248
248
|
|
|
249
|
-
## [2.4.98] — 2026-09-
|
|
249
|
+
## [2.4.98] — 2026-09-29
|
|
250
250
|
|
|
251
251
|
### Added — fingerprint-first CVE matching wired into live_recon
|
|
252
252
|
|
|
@@ -257,7 +257,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
|
|
|
257
257
|
Grafana, Keycloak, …) it names the specific CVEs to test first (with EPSS)
|
|
258
258
|
instead of relying on generic scanning.
|
|
259
259
|
|
|
260
|
-
## [2.4.97] — 2026-09-
|
|
260
|
+
## [2.4.97] — 2026-09-29
|
|
261
261
|
|
|
262
262
|
### Added — hunting-intel upgrade (Hacktivity-ranked CVE watchlist + dedup doctrine)
|
|
263
263
|
|
|
@@ -272,7 +272,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
|
|
|
272
272
|
public reports) for the same endpoint/tech/vuln class before writing the
|
|
273
273
|
report; the #1 cause of "Duplicate"/"N/A" rejections is not searching first.
|
|
274
274
|
|
|
275
|
-
## [2.4.96] — 2026-09-
|
|
275
|
+
## [2.4.96] — 2026-09-29
|
|
276
276
|
|
|
277
277
|
### Security — self-audit (command injection + path traversal fixed)
|
|
278
278
|
|
|
@@ -287,7 +287,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
|
|
|
287
287
|
- Added regression checks: `isValidHostname` rejects shell metacharacters
|
|
288
288
|
(`;`, backticks, `$()`, `|`, `../`, newlines); the identifier regex is shared.
|
|
289
289
|
|
|
290
|
-
## [2.4.95] — 2026-09-
|
|
290
|
+
## [2.4.95] — 2026-09-29
|
|
291
291
|
|
|
292
292
|
### Fixed — full interconnection audit (unreachable template + 2 ungrounded classes)
|
|
293
293
|
|
|
@@ -304,7 +304,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
|
|
|
304
304
|
- `SINK_TO_VECTOR` mapped the `code_execution` sink to a non-pattern vector name;
|
|
305
305
|
now maps to `command_injection` (consistent with the "code execution" synonym).
|
|
306
306
|
|
|
307
|
-
## [2.4.94] — 2026-09-
|
|
307
|
+
## [2.4.94] — 2026-09-29
|
|
308
308
|
|
|
309
309
|
### Added — Hunting intel (DNS sinkhole detection + CWE/CVE watchlist)
|
|
310
310
|
|
|
@@ -321,7 +321,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
|
|
|
321
321
|
deserialization) and flags saturated low-value ones (XSS/CSRF/open-redirect).
|
|
322
322
|
Data: intelligence/watchlist.json.
|
|
323
323
|
|
|
324
|
-
## [2.4.93] — 2026-09-
|
|
324
|
+
## [2.4.93] — 2026-09-29
|
|
325
325
|
|
|
326
326
|
### Fixed — reproducible verify harness (flaky wordlist test)
|
|
327
327
|
|
|
@@ -330,7 +330,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
|
|
|
330
330
|
verify` was not reproducible. Now uses a bundled `test/fixtures/wordlist.txt` via
|
|
331
331
|
the `opts.wordlist` argument — deterministic, no external wordlist required.
|
|
332
332
|
|
|
333
|
-
## [2.4.92] — 2026-09-
|
|
333
|
+
## [2.4.92] — 2026-09-29
|
|
334
334
|
|
|
335
335
|
### Fixed — interconnection audit (grounding gaps + reversed PoC semantics)
|
|
336
336
|
|
|
@@ -350,7 +350,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
|
|
|
350
350
|
detector types) to a subset invariant (every detector type grounded), so extra
|
|
351
351
|
classes like command_injection don't fail it.
|
|
352
352
|
|
|
353
|
-
## [2.4.91] — 2026-09-
|
|
353
|
+
## [2.4.91] — 2026-09-29
|
|
354
354
|
|
|
355
355
|
### Added — Foundry runner (execute Web3 PoC to PROVE a finding)
|
|
356
356
|
|
|
@@ -362,7 +362,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
|
|
|
362
362
|
Deterministic differential (passes on the vulnerable contract, fails on the fixed
|
|
363
363
|
one). Requires forge installed.
|
|
364
364
|
|
|
365
|
-
## [2.4.90] — 2026-09-
|
|
365
|
+
## [2.4.90] — 2026-09-29
|
|
366
366
|
|
|
367
367
|
### Added — Auto-PoC (reproduction recipe generator)
|
|
368
368
|
|
|
@@ -375,7 +375,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
|
|
|
375
375
|
open_redirect, xxe, prototype_pollution, deserialization, hardcoded_secret,
|
|
376
376
|
cache_deception, cors_misconfiguration, subdomain_takeover.
|
|
377
377
|
|
|
378
|
-
## [2.4.89] — 2026-09-
|
|
378
|
+
## [2.4.89] — 2026-09-29
|
|
379
379
|
|
|
380
380
|
### Added — Sibling Rule Engine (deterministic live logic-bug prober)
|
|
381
381
|
|
|
@@ -388,7 +388,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
|
|
|
388
388
|
(4) mass assignment — role/admin field injection on POST/PUT, (5) rate limit —
|
|
389
389
|
15 rapid requests. Hits-only, differential (status + body), real-time append.
|
|
390
390
|
|
|
391
|
-
## [2.4.88] — 2026-09-
|
|
391
|
+
## [2.4.88] — 2026-09-29
|
|
392
392
|
|
|
393
393
|
### Changed — XSS detector precision (local taint flow)
|
|
394
394
|
|
|
@@ -398,7 +398,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
|
|
|
398
398
|
is a direct source expression. Removes the "source + sink co-occurrence" false
|
|
399
399
|
positives (4 FPs on the 30-lab benchmark) with zero recall loss.
|
|
400
400
|
|
|
401
|
-
## [2.4.87] — 2026-09-
|
|
401
|
+
## [2.4.87] — 2026-09-29
|
|
402
402
|
|
|
403
403
|
### Fixed — web3 class naming consistency + jwt grounding
|
|
404
404
|
|
|
@@ -407,7 +407,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
|
|
|
407
407
|
- Added the `jwt` → `jwt_alg_confusion` synonym so the `jwt` attack-vector resolves
|
|
408
408
|
to its pattern grounding + payout (previously returned no bounty signal).
|
|
409
409
|
|
|
410
|
-
## [2.4.86] — 2026-09-
|
|
410
|
+
## [2.4.86] — 2026-09-29
|
|
411
411
|
|
|
412
412
|
### Added — Web3 audit extended to 13 bug classes
|
|
413
413
|
|
|
@@ -422,7 +422,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
|
|
|
422
422
|
`initialize` assigning an address param without `!= address(0)` (CWE-20).
|
|
423
423
|
- Foundry PoC templates added for both new classes; web3 severity now supports `low`.
|
|
424
424
|
|
|
425
|
-
## [2.4.85] — 2026-09-
|
|
425
|
+
## [2.4.85] — 2026-09-29
|
|
426
426
|
|
|
427
427
|
### Added — CORS, XSS (DOM sinks), and subdomain-takeover detectors
|
|
428
428
|
|
|
@@ -441,7 +441,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
|
|
|
441
441
|
updated.
|
|
442
442
|
|
|
443
443
|
|
|
444
|
-
## [2.4.84] — 2026-09-
|
|
444
|
+
## [2.4.84] — 2026-09-29
|
|
445
445
|
|
|
446
446
|
### Added — hunting doctrine + always-rejected kill-list (LLM-facing methodology)
|
|
447
447
|
|
|
@@ -460,7 +460,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
|
|
|
460
460
|
|
|
461
461
|
reporting.md).
|
|
462
462
|
|
|
463
|
-
## [2.4.83] — 2026-09-
|
|
463
|
+
## [2.4.83] — 2026-09-29
|
|
464
464
|
|
|
465
465
|
### Added — Web3 / Solidity audit (10 bug classes + Foundry PoC)
|
|
466
466
|
|
|
@@ -476,7 +476,7 @@ reporting.md).
|
|
|
476
476
|
- `.sol` added to the scan extensions.
|
|
477
477
|
|
|
478
478
|
|
|
479
|
-
## [2.4.82] — 2026-09-
|
|
479
|
+
## [2.4.82] — 2026-09-29
|
|
480
480
|
|
|
481
481
|
### Added — out-of-band (OOB) listener for blind vuln proof
|
|
482
482
|
|
|
@@ -489,7 +489,7 @@ reporting.md).
|
|
|
489
489
|
interactsh's ANSI-colored `[INF]` banner + JSONL interaction parsing.
|
|
490
490
|
|
|
491
491
|
|
|
492
|
-
## [2.4.81] — 2026-09-
|
|
492
|
+
## [2.4.81] — 2026-09-29
|
|
493
493
|
|
|
494
494
|
### Added — impact-first prioritization via typical bounty payout
|
|
495
495
|
|
|
@@ -504,7 +504,7 @@ reporting.md).
|
|
|
504
504
|
curated PAYOUT_FALLBACK table.
|
|
505
505
|
|
|
506
506
|
|
|
507
|
-
## [2.4.80] — 2026-09-
|
|
507
|
+
## [2.4.80] — 2026-09-29
|
|
508
508
|
|
|
509
509
|
### Changed — LLM-facing wiring for the two new web-class detectors
|
|
510
510
|
|
|
@@ -520,7 +520,7 @@ reporting.md).
|
|
|
520
520
|
Full end-to-end ground: synonym_lookup → pattern_lookup (CWE + chains + bypass)
|
|
521
521
|
→ severity_calibrate (P1/P2) → list_chains → coverage_matrix.
|
|
522
522
|
|
|
523
|
-
## [2.4.79] — 2026-09-
|
|
523
|
+
## [2.4.79] — 2026-09-29
|
|
524
524
|
|
|
525
525
|
### Changed — precision pass (FP reduction, benchmark-driven)
|
|
526
526
|
|
|
@@ -539,7 +539,7 @@ Full end-to-end ground: synonym_lookup → pattern_lookup (CWE + chains + bypass
|
|
|
539
539
|
|
|
540
540
|
FP labs on the 30-lab benchmark dropped 16 → 8 (TP 12 unchanged).
|
|
541
541
|
|
|
542
|
-
## [2.4.78] — 2026-09-
|
|
542
|
+
## [2.4.78] — 2026-09-29
|
|
543
543
|
|
|
544
544
|
### Fixed — taint-engine sanitizer name collision (whole-class FN)
|
|
545
545
|
|
|
@@ -552,7 +552,7 @@ FP labs on the 30-lab benchmark dropped 16 → 8 (TP 12 unchanged).
|
|
|
552
552
|
string literals. Python f-string SQLi (`request.args.get -> f"{var}" -> execute`)
|
|
553
553
|
is now caught.
|
|
554
554
|
|
|
555
|
-
## [2.4.77] — 2026-09-
|
|
555
|
+
## [2.4.77] — 2026-09-29
|
|
556
556
|
|
|
557
557
|
### Changed — SQLi Node/Python coverage + missing_authz root-path precision
|
|
558
558
|
|
|
@@ -564,7 +564,7 @@ FP labs on the 30-lab benchmark dropped 16 → 8 (TP 12 unchanged).
|
|
|
564
564
|
- `detectRouteAuthz` now skips root/empty paths (`@app.get("/")`) as public-by-design
|
|
565
565
|
(was flagging the index route), plus `home`/`index`/`root` route segments.
|
|
566
566
|
|
|
567
|
-
## [2.4.76] — 2026-09-
|
|
567
|
+
## [2.4.76] — 2026-09-29
|
|
568
568
|
|
|
569
569
|
### Fixed — config/manifest files were not scanned (whole-class FN)
|
|
570
570
|
|
|
@@ -575,7 +575,7 @@ FP labs on the 30-lab benchmark dropped 16 → 8 (TP 12 unchanged).
|
|
|
575
575
|
`cache_deception` (nginx.conf — caught labs01) and `dependency_confusion` /
|
|
576
576
|
`oauth_misconfig` / `grpc_reflection` (package.json / requirements.txt / yaml).
|
|
577
577
|
|
|
578
|
-
## [2.4.75] — 2026-09-
|
|
578
|
+
## [2.4.75] — 2026-09-29
|
|
579
579
|
|
|
580
580
|
### Fixed — detection FP/FN remediation (Hackbot Arena benchmark-driven)
|
|
581
581
|
|
|
@@ -603,7 +603,7 @@ Four fixes driven by the 30-lab detection benchmark (TP/FP/FN):
|
|
|
603
603
|
bare `FLAG` env marker, and quoted-prefix concatenations (`'usr_' + random`) so
|
|
604
604
|
seeded CTF flags and runtime-built values aren't reported as CWE-798.
|
|
605
605
|
|
|
606
|
-
## [2.4.74] — 2026-09-
|
|
606
|
+
## [2.4.74] — 2026-09-29
|
|
607
607
|
|
|
608
608
|
### Fixed — live_recon tech fingerprint false-positive (benchmark-driven)
|
|
609
609
|
|
|
@@ -618,7 +618,7 @@ Four fixes driven by the 30-lab detection benchmark (TP/FP/FN):
|
|
|
618
618
|
- `gunicorn` no longer implies "flask" (it's a generic WSGI server shared by
|
|
619
619
|
Flask/Django/FastAPI); only `werkzeug` maps to flask.
|
|
620
620
|
|
|
621
|
-
## [2.4.73] — 2026-09-
|
|
621
|
+
## [2.4.73] — 2026-09-29
|
|
622
622
|
|
|
623
623
|
### Changed — crack_hash wordlist support (benchmark-driven fix)
|
|
624
624
|
|
package/dist/index.js
CHANGED
|
@@ -17452,14 +17452,14 @@ var init_variants = __esm(() => {
|
|
|
17452
17452
|
});
|
|
17453
17453
|
|
|
17454
17454
|
// src/sync.ts
|
|
17455
|
-
import { mkdirSync as mkdirSync10, writeFileSync as writeFileSync9, readFileSync as readFileSync30, readdirSync as
|
|
17456
|
-
import { join as
|
|
17455
|
+
import { mkdirSync as mkdirSync10, writeFileSync as writeFileSync9, readFileSync as readFileSync30, readdirSync as readdirSync9, statSync as statSync6, rmSync as rmSync5 } from "node:fs";
|
|
17456
|
+
import { join as join29 } from "node:path";
|
|
17457
17457
|
import { homedir as homedir11 } from "node:os";
|
|
17458
17458
|
import { fileURLToPath as fileURLToPath17 } from "node:url";
|
|
17459
17459
|
import { spawnSync as spawnSync4 } from "node:child_process";
|
|
17460
17460
|
function dirExists(p) {
|
|
17461
17461
|
try {
|
|
17462
|
-
return
|
|
17462
|
+
return statSync6(p).isDirectory();
|
|
17463
17463
|
} catch {
|
|
17464
17464
|
return false;
|
|
17465
17465
|
}
|
|
@@ -17468,9 +17468,9 @@ function countFiles(dir) {
|
|
|
17468
17468
|
try {
|
|
17469
17469
|
let n = 0;
|
|
17470
17470
|
const walk = (d) => {
|
|
17471
|
-
for (const e of
|
|
17471
|
+
for (const e of readdirSync9(d, { withFileTypes: true })) {
|
|
17472
17472
|
if (e.isDirectory())
|
|
17473
|
-
walk(
|
|
17473
|
+
walk(join29(d, e.name));
|
|
17474
17474
|
else
|
|
17475
17475
|
n++;
|
|
17476
17476
|
}
|
|
@@ -17484,8 +17484,8 @@ function countFiles(dir) {
|
|
|
17484
17484
|
function syncData() {
|
|
17485
17485
|
if (!dirExists(DATA_ROOT2))
|
|
17486
17486
|
mkdirSync10(DATA_ROOT2, { recursive: true });
|
|
17487
|
-
const payloadsPath =
|
|
17488
|
-
const templatesPath =
|
|
17487
|
+
const payloadsPath = join29(DATA_ROOT2, "payloads");
|
|
17488
|
+
const templatesPath = join29(DATA_ROOT2, "templates");
|
|
17489
17489
|
const hasPayloads = dirExists(payloadsPath) && countFiles(payloadsPath) > 0;
|
|
17490
17490
|
const hasTemplates = dirExists(templatesPath) && countFiles(templatesPath) > 0;
|
|
17491
17491
|
if (hasPayloads && hasTemplates) {
|
|
@@ -17495,8 +17495,8 @@ function syncData() {
|
|
|
17495
17495
|
data_root: DATA_ROOT2
|
|
17496
17496
|
};
|
|
17497
17497
|
}
|
|
17498
|
-
const localPayloads =
|
|
17499
|
-
const localTemplates =
|
|
17498
|
+
const localPayloads = join29(ROOT10, "payloads");
|
|
17499
|
+
const localTemplates = join29(ROOT10, "templates");
|
|
17500
17500
|
let payloadsSynced = false;
|
|
17501
17501
|
let templatesSynced = false;
|
|
17502
17502
|
if (!hasPayloads && dirExists(localPayloads)) {
|
|
@@ -17509,7 +17509,7 @@ function syncData() {
|
|
|
17509
17509
|
}
|
|
17510
17510
|
const gitOk = spawnSync4("git", ["--version"]).status === 0;
|
|
17511
17511
|
if (gitOk && (!dirExists(payloadsPath) || countFiles(payloadsPath) === 0 || !dirExists(templatesPath) || countFiles(templatesPath) === 0)) {
|
|
17512
|
-
const tmp =
|
|
17512
|
+
const tmp = join29(DATA_ROOT2, ".tmp-clone");
|
|
17513
17513
|
if (dirExists(tmp))
|
|
17514
17514
|
rmSync5(tmp, { recursive: true, force: true });
|
|
17515
17515
|
const r = spawnSync4("git", ["clone", "--depth", "1", "--filter=blob:none", "--sparse", GITHUB_REPO, tmp], { timeout: 120000 });
|
|
@@ -17517,11 +17517,11 @@ function syncData() {
|
|
|
17517
17517
|
const sparse = spawnSync4("git", ["-C", tmp, "sparse-checkout", "set", "payloads", "templates"], { timeout: 120000 });
|
|
17518
17518
|
if (sparse.status === 0) {
|
|
17519
17519
|
if (!dirExists(payloadsPath) || countFiles(payloadsPath) === 0) {
|
|
17520
|
-
copyDir(
|
|
17520
|
+
copyDir(join29(tmp, "payloads"), payloadsPath);
|
|
17521
17521
|
payloadsSynced = true;
|
|
17522
17522
|
}
|
|
17523
17523
|
if (!dirExists(templatesPath) || countFiles(templatesPath) === 0) {
|
|
17524
|
-
copyDir(
|
|
17524
|
+
copyDir(join29(tmp, "templates"), templatesPath);
|
|
17525
17525
|
templatesSynced = true;
|
|
17526
17526
|
}
|
|
17527
17527
|
}
|
|
@@ -17542,9 +17542,9 @@ function copyDir(src, dst) {
|
|
|
17542
17542
|
}
|
|
17543
17543
|
function manualCopy(src, dst) {
|
|
17544
17544
|
mkdirSync10(dst, { recursive: true });
|
|
17545
|
-
for (const e of
|
|
17546
|
-
const s =
|
|
17547
|
-
const d =
|
|
17545
|
+
for (const e of readdirSync9(src, { withFileTypes: true })) {
|
|
17546
|
+
const s = join29(src, e.name);
|
|
17547
|
+
const d = join29(dst, e.name);
|
|
17548
17548
|
if (e.isDirectory())
|
|
17549
17549
|
manualCopy(s, d);
|
|
17550
17550
|
else
|
|
@@ -17553,8 +17553,8 @@ function manualCopy(src, dst) {
|
|
|
17553
17553
|
}
|
|
17554
17554
|
var ROOT10, DATA_ROOT2, GITHUB_REPO = "https://github.com/shinthink/blitzstrike.git";
|
|
17555
17555
|
var init_sync = __esm(() => {
|
|
17556
|
-
ROOT10 =
|
|
17557
|
-
DATA_ROOT2 = process.env.BLITZSTRIKE_DATA ??
|
|
17556
|
+
ROOT10 = join29(fileURLToPath17(new URL(".", import.meta.url)), "..");
|
|
17557
|
+
DATA_ROOT2 = process.env.BLITZSTRIKE_DATA ?? join29(homedir11(), ".blitzstrike", "data");
|
|
17558
17558
|
});
|
|
17559
17559
|
|
|
17560
17560
|
// src/update.ts
|
|
@@ -17600,14 +17600,14 @@ var init_update = __esm(() => {
|
|
|
17600
17600
|
|
|
17601
17601
|
// src/release.ts
|
|
17602
17602
|
import { readFileSync as readFileSync32, existsSync as existsSync17 } from "node:fs";
|
|
17603
|
-
import { join as
|
|
17603
|
+
import { join as join30 } from "node:path";
|
|
17604
17604
|
import { fileURLToPath as fileURLToPath18 } from "node:url";
|
|
17605
17605
|
import { execSync as execSync4 } from "node:child_process";
|
|
17606
17606
|
function validateRelease() {
|
|
17607
17607
|
const checks = [];
|
|
17608
17608
|
checks.push({ name: "package.json version", ok: true, detail: VERSION });
|
|
17609
17609
|
try {
|
|
17610
|
-
const changelog = readFileSync32(
|
|
17610
|
+
const changelog = readFileSync32(join30(ROOT11, "CHANGELOG.md"), "utf8");
|
|
17611
17611
|
const m = changelog.match(/^##\s+\[([0-9]+\.[0-9]+\.[0-9]+)\]/m);
|
|
17612
17612
|
const changelogVersion = m?.[1] ?? null;
|
|
17613
17613
|
checks.push({
|
|
@@ -17639,22 +17639,22 @@ function validateRelease() {
|
|
|
17639
17639
|
return { version: VERSION, checks, consistent: checks.filter((c) => !c.soft).every((c) => c.ok) };
|
|
17640
17640
|
}
|
|
17641
17641
|
function lockfilePresent() {
|
|
17642
|
-
return existsSync17(
|
|
17642
|
+
return existsSync17(join30(ROOT11, "package-lock.json")) || existsSync17(join30(ROOT11, "bun.lock")) || existsSync17(join30(ROOT11, "bun.lockb"));
|
|
17643
17643
|
}
|
|
17644
17644
|
var ROOT11;
|
|
17645
17645
|
var init_release = __esm(() => {
|
|
17646
17646
|
init_version();
|
|
17647
|
-
ROOT11 =
|
|
17647
|
+
ROOT11 = join30(fileURLToPath18(new URL(".", import.meta.url)), "..");
|
|
17648
17648
|
});
|
|
17649
17649
|
|
|
17650
17650
|
// src/dependency.ts
|
|
17651
17651
|
import { readFileSync as readFileSync33 } from "node:fs";
|
|
17652
|
-
import { join as
|
|
17652
|
+
import { join as join31 } from "node:path";
|
|
17653
17653
|
import { fileURLToPath as fileURLToPath19 } from "node:url";
|
|
17654
17654
|
function checkDependencies() {
|
|
17655
17655
|
let pkg = {};
|
|
17656
17656
|
try {
|
|
17657
|
-
pkg = JSON.parse(readFileSync33(
|
|
17657
|
+
pkg = JSON.parse(readFileSync33(join31(ROOT12, "package.json"), "utf8"));
|
|
17658
17658
|
} catch {
|
|
17659
17659
|
return { install_scripts: [], git_dependencies: [], total_dependencies: 0, safe: false };
|
|
17660
17660
|
}
|
|
@@ -17677,12 +17677,12 @@ function checkDependencies() {
|
|
|
17677
17677
|
}
|
|
17678
17678
|
var ROOT12;
|
|
17679
17679
|
var init_dependency = __esm(() => {
|
|
17680
|
-
ROOT12 =
|
|
17680
|
+
ROOT12 = join31(fileURLToPath19(new URL(".", import.meta.url)), "..");
|
|
17681
17681
|
});
|
|
17682
17682
|
|
|
17683
17683
|
// src/cli.ts
|
|
17684
17684
|
import { readFileSync as readFileSync34, existsSync as existsSync18, writeFileSync as writeFileSync10, mkdirSync as mkdirSync11 } from "node:fs";
|
|
17685
|
-
import { join as
|
|
17685
|
+
import { join as join32, dirname as dirname6 } from "node:path";
|
|
17686
17686
|
import { homedir as homedir12 } from "node:os";
|
|
17687
17687
|
import { fileURLToPath as fileURLToPath20 } from "node:url";
|
|
17688
17688
|
import { spawnSync as spawnSync5 } from "node:child_process";
|
|
@@ -17727,7 +17727,7 @@ async function runDoctor() {
|
|
|
17727
17727
|
detail: h1 ? `X-HackerOne-Research: ${h1}` : "H1_USERNAME not set",
|
|
17728
17728
|
fix: h1 ? undefined : "export H1_USERNAME=<your-hackerone-username> (adds X-HackerOne-Research to outbound requests)"
|
|
17729
17729
|
});
|
|
17730
|
-
const dataOk = existsSync18(
|
|
17730
|
+
const dataOk = existsSync18(join32(ROOT13, "chains.json")) && existsSync18(join32(ROOT13, "tools-catalog.json"));
|
|
17731
17731
|
issues.push({
|
|
17732
17732
|
name: "Data layers (chains + tools-catalog)",
|
|
17733
17733
|
status: dataOk ? "ok" : "fail",
|
|
@@ -17778,14 +17778,14 @@ BlitzStrike — ${verdict}`);
|
|
|
17778
17778
|
function resolveCommand() {
|
|
17779
17779
|
if (which("blitzstrike"))
|
|
17780
17780
|
return { command: "blitzstrike", args: ["serve", "--mcp"] };
|
|
17781
|
-
const src =
|
|
17781
|
+
const src = join32(ROOT13, "src", "index.ts");
|
|
17782
17782
|
if (which("bun") && existsSync18(src))
|
|
17783
17783
|
return { command: "bun", args: ["run", src, "serve", "--mcp"] };
|
|
17784
17784
|
if (which("npx"))
|
|
17785
17785
|
return { command: "npx", args: ["-y", "blitzstrike", "serve", "--mcp"] };
|
|
17786
17786
|
if (which("bunx"))
|
|
17787
17787
|
return { command: "bunx", args: ["blitzstrike", "serve", "--mcp"] };
|
|
17788
|
-
const dist =
|
|
17788
|
+
const dist = join32(ROOT13, "dist", "index.js");
|
|
17789
17789
|
if (existsSync18(dist))
|
|
17790
17790
|
return { command: "bun", args: [dist, "serve", "--mcp"] };
|
|
17791
17791
|
return { command: "npx", args: ["-y", "blitzstrike", "serve", "--mcp"] };
|
|
@@ -17825,15 +17825,15 @@ function opencodeWrite(p) {
|
|
|
17825
17825
|
};
|
|
17826
17826
|
}
|
|
17827
17827
|
function copyOpenCodeAgents() {
|
|
17828
|
-
const srcDir =
|
|
17829
|
-
const dstDir =
|
|
17828
|
+
const srcDir = join32(ROOT13, "opencode-agents");
|
|
17829
|
+
const dstDir = join32(homedir12(), ".config", "opencode", "agents");
|
|
17830
17830
|
if (!existsSync18(srcDir))
|
|
17831
17831
|
return;
|
|
17832
17832
|
if (!existsSync18(dstDir))
|
|
17833
17833
|
mkdirSync11(dstDir, { recursive: true });
|
|
17834
17834
|
for (const f of ["Blitz Strike.md", "Blitz.md", "Eagle Eye.md", "Strike.md"]) {
|
|
17835
|
-
const src =
|
|
17836
|
-
const dst =
|
|
17835
|
+
const src = join32(srcDir, f);
|
|
17836
|
+
const dst = join32(dstDir, f);
|
|
17837
17837
|
if (existsSync18(src)) {
|
|
17838
17838
|
writeFileSync10(dst, readFileSync34(src, "utf8"));
|
|
17839
17839
|
}
|
|
@@ -17890,74 +17890,74 @@ mcp_servers:
|
|
|
17890
17890
|
function detectAgents() {
|
|
17891
17891
|
const home = homedir12();
|
|
17892
17892
|
const agents = [];
|
|
17893
|
-
const claudeJson =
|
|
17893
|
+
const claudeJson = join32(home, ".claude.json");
|
|
17894
17894
|
agents.push({
|
|
17895
17895
|
name: "Claude Code",
|
|
17896
17896
|
detectPath: claudeJson,
|
|
17897
17897
|
installed: () => existsSync18(claudeJson) || which("claude"),
|
|
17898
17898
|
write: jsonMcpServersWrite(claudeJson)
|
|
17899
17899
|
});
|
|
17900
|
-
const claudeDesktop =
|
|
17900
|
+
const claudeDesktop = join32(home, ".config", "Claude", "claude_desktop_config.json");
|
|
17901
17901
|
agents.push({
|
|
17902
17902
|
name: "Claude Desktop",
|
|
17903
17903
|
detectPath: claudeDesktop,
|
|
17904
17904
|
installed: () => existsSync18(claudeDesktop),
|
|
17905
17905
|
write: jsonMcpServersWrite(claudeDesktop)
|
|
17906
17906
|
});
|
|
17907
|
-
const cursor =
|
|
17907
|
+
const cursor = join32(home, ".cursor", "mcp.json");
|
|
17908
17908
|
agents.push({
|
|
17909
17909
|
name: "Cursor",
|
|
17910
17910
|
detectPath: cursor,
|
|
17911
|
-
installed: () => existsSync18(
|
|
17911
|
+
installed: () => existsSync18(join32(home, ".cursor")) || which("cursor"),
|
|
17912
17912
|
write: jsonMcpServersWrite(cursor)
|
|
17913
17913
|
});
|
|
17914
|
-
const opencode =
|
|
17914
|
+
const opencode = join32(home, ".config", "opencode", "opencode.jsonc");
|
|
17915
17915
|
agents.push({
|
|
17916
17916
|
name: "OpenCode",
|
|
17917
17917
|
detectPath: opencode,
|
|
17918
|
-
installed: () => existsSync18(
|
|
17918
|
+
installed: () => existsSync18(join32(home, ".config", "opencode")) || which("opencode"),
|
|
17919
17919
|
write: opencodeWrite(opencode)
|
|
17920
17920
|
});
|
|
17921
|
-
const codex =
|
|
17921
|
+
const codex = join32(home, ".codex", "config.toml");
|
|
17922
17922
|
agents.push({
|
|
17923
17923
|
name: "Codex",
|
|
17924
17924
|
detectPath: codex,
|
|
17925
|
-
installed: () => existsSync18(
|
|
17925
|
+
installed: () => existsSync18(join32(home, ".codex")) || which("codex"),
|
|
17926
17926
|
write: codexWrite(codex)
|
|
17927
17927
|
});
|
|
17928
|
-
const hermes =
|
|
17928
|
+
const hermes = join32(home, ".hermes", "config.yaml");
|
|
17929
17929
|
agents.push({
|
|
17930
17930
|
name: "Hermes",
|
|
17931
17931
|
detectPath: hermes,
|
|
17932
|
-
installed: () => existsSync18(
|
|
17932
|
+
installed: () => existsSync18(join32(home, ".hermes")) || which("hermes"),
|
|
17933
17933
|
write: hermesWrite(hermes)
|
|
17934
17934
|
});
|
|
17935
|
-
const gemini =
|
|
17935
|
+
const gemini = join32(home, ".gemini", "settings.json");
|
|
17936
17936
|
agents.push({
|
|
17937
17937
|
name: "Gemini CLI",
|
|
17938
17938
|
detectPath: gemini,
|
|
17939
|
-
installed: () => existsSync18(
|
|
17939
|
+
installed: () => existsSync18(join32(home, ".gemini")) || which("gemini"),
|
|
17940
17940
|
write: jsonMcpServersWrite(gemini)
|
|
17941
17941
|
});
|
|
17942
|
-
const windsurf =
|
|
17942
|
+
const windsurf = join32(home, ".codeium", "windsurf", "mcp_config.json");
|
|
17943
17943
|
agents.push({
|
|
17944
17944
|
name: "Windsurf",
|
|
17945
17945
|
detectPath: windsurf,
|
|
17946
|
-
installed: () => existsSync18(
|
|
17946
|
+
installed: () => existsSync18(join32(home, ".codeium")) || which("windsurf"),
|
|
17947
17947
|
write: jsonMcpServersWrite(windsurf)
|
|
17948
17948
|
});
|
|
17949
|
-
const copilot =
|
|
17949
|
+
const copilot = join32(home, ".copilot", "mcp.json");
|
|
17950
17950
|
agents.push({
|
|
17951
17951
|
name: "Copilot",
|
|
17952
17952
|
detectPath: copilot,
|
|
17953
|
-
installed: () => existsSync18(
|
|
17953
|
+
installed: () => existsSync18(join32(home, ".copilot")),
|
|
17954
17954
|
write: jsonMcpServersWrite(copilot)
|
|
17955
17955
|
});
|
|
17956
|
-
const cline =
|
|
17956
|
+
const cline = join32(home, ".cline", "mcp_settings.json");
|
|
17957
17957
|
agents.push({
|
|
17958
17958
|
name: "Cline",
|
|
17959
17959
|
detectPath: cline,
|
|
17960
|
-
installed: () => existsSync18(
|
|
17960
|
+
installed: () => existsSync18(join32(home, ".cline")),
|
|
17961
17961
|
write: jsonMcpServersWrite(cline)
|
|
17962
17962
|
});
|
|
17963
17963
|
return agents;
|
|
@@ -18075,7 +18075,7 @@ var init_cli = __esm(() => {
|
|
|
18075
18075
|
init_release();
|
|
18076
18076
|
init_dependency();
|
|
18077
18077
|
init_mcp_status();
|
|
18078
|
-
ROOT13 =
|
|
18078
|
+
ROOT13 = join32(fileURLToPath20(new URL(".", import.meta.url)), "..");
|
|
18079
18079
|
});
|
|
18080
18080
|
|
|
18081
18081
|
// node_modules/zod/v3/helpers/util.js
|
|
@@ -32714,7 +32714,7 @@ class StdioServerTransport {
|
|
|
32714
32714
|
// src/server.ts
|
|
32715
32715
|
init_scanner();
|
|
32716
32716
|
import { readFileSync as readFileSync31 } from "node:fs";
|
|
32717
|
-
import { execFileSync as
|
|
32717
|
+
import { execFileSync as execFileSync7 } from "node:child_process";
|
|
32718
32718
|
|
|
32719
32719
|
// src/review-harness.ts
|
|
32720
32720
|
init_scanner();
|
|
@@ -60066,15 +60066,95 @@ async function brokenLinkScan(url, maxHosts = 30) {
|
|
|
60066
60066
|
};
|
|
60067
60067
|
}
|
|
60068
60068
|
|
|
60069
|
-
// src/
|
|
60070
|
-
import {
|
|
60069
|
+
// src/cve-verify.ts
|
|
60070
|
+
import { execFileSync as execFileSync6 } from "node:child_process";
|
|
60071
|
+
import { readdirSync as readdirSync6, statSync as statSync4 } from "node:fs";
|
|
60071
60072
|
import { join as join24 } from "node:path";
|
|
60073
|
+
var CVE_RE = /^CVE-\d{4}-\d{4,7}$/i;
|
|
60074
|
+
function findCveTemplate(cve) {
|
|
60075
|
+
const dir = findTemplatesDir();
|
|
60076
|
+
if (!dir)
|
|
60077
|
+
return null;
|
|
60078
|
+
const id = cve.toUpperCase();
|
|
60079
|
+
const found = [];
|
|
60080
|
+
const walk = (d, depth) => {
|
|
60081
|
+
if (depth > 5)
|
|
60082
|
+
return;
|
|
60083
|
+
let entries;
|
|
60084
|
+
try {
|
|
60085
|
+
entries = readdirSync6(d);
|
|
60086
|
+
} catch {
|
|
60087
|
+
return;
|
|
60088
|
+
}
|
|
60089
|
+
for (const name of entries) {
|
|
60090
|
+
const full = join24(d, name);
|
|
60091
|
+
let st;
|
|
60092
|
+
try {
|
|
60093
|
+
st = statSync4(full);
|
|
60094
|
+
} catch {
|
|
60095
|
+
continue;
|
|
60096
|
+
}
|
|
60097
|
+
if (st.isDirectory())
|
|
60098
|
+
walk(full, depth + 1);
|
|
60099
|
+
else if (name === `${id}.yaml`)
|
|
60100
|
+
found.push(full);
|
|
60101
|
+
}
|
|
60102
|
+
};
|
|
60103
|
+
walk(dir, 0);
|
|
60104
|
+
return found.find((f) => f.includes("/http/")) ?? found[0] ?? null;
|
|
60105
|
+
}
|
|
60106
|
+
function cveVerify(cve, target) {
|
|
60107
|
+
if (!CVE_RE.test(cve)) {
|
|
60108
|
+
return { cve, target, template: null, status: "error", matched: [], message: `invalid CVE id: ${cve}` };
|
|
60109
|
+
}
|
|
60110
|
+
if (!/^https?:\/\//i.test(target)) {
|
|
60111
|
+
return { cve, target, template: null, status: "error", matched: [], message: `target must be an http(s) URL` };
|
|
60112
|
+
}
|
|
60113
|
+
const template = findCveTemplate(cve);
|
|
60114
|
+
if (!template) {
|
|
60115
|
+
return { cve, target, template: null, status: "no_template", matched: [], message: "no nuclei template for this CVE (run nuclei -update-templates)" };
|
|
60116
|
+
}
|
|
60117
|
+
try {
|
|
60118
|
+
const out = execFileSync6("nuclei", ["-u", target, "-t", template, "-jsonl", "-silent", "-no-color", "-timeout", "10", "-or"], { timeout: 90000, stdio: ["ignore", "pipe", "pipe"], encoding: "utf8" });
|
|
60119
|
+
const lines = out.trim().split(`
|
|
60120
|
+
`).filter(Boolean);
|
|
60121
|
+
const parsed = [];
|
|
60122
|
+
for (const l of lines) {
|
|
60123
|
+
try {
|
|
60124
|
+
parsed.push(JSON.parse(l));
|
|
60125
|
+
} catch {}
|
|
60126
|
+
}
|
|
60127
|
+
if (parsed.length > 0) {
|
|
60128
|
+
return {
|
|
60129
|
+
cve,
|
|
60130
|
+
target,
|
|
60131
|
+
template,
|
|
60132
|
+
status: "verified",
|
|
60133
|
+
matched: parsed.map((m) => ({
|
|
60134
|
+
name: String(m.info?.name ?? cve),
|
|
60135
|
+
severity: String(m.info?.severity ?? "unknown"),
|
|
60136
|
+
matched_at: String(m["matched-at"] ?? ""),
|
|
60137
|
+
template_id: String(m["template-id"] ?? cve)
|
|
60138
|
+
}))
|
|
60139
|
+
};
|
|
60140
|
+
}
|
|
60141
|
+
return { cve, target, template, status: "unverified", matched: [], message: "template ran clean — no match (target not vulnerable to this CVE)" };
|
|
60142
|
+
} catch (e) {
|
|
60143
|
+
const err = e;
|
|
60144
|
+
const msg = err.code === "ENOENT" ? "nuclei not installed (install it or run blitzstrike install-tools)" : String(err.stderr ?? err.message ?? e);
|
|
60145
|
+
return { cve, target, template, status: "error", matched: [], message: msg };
|
|
60146
|
+
}
|
|
60147
|
+
}
|
|
60148
|
+
|
|
60149
|
+
// src/benchmark.ts
|
|
60150
|
+
import { readFileSync as readFileSync25, readdirSync as readdirSync7, writeFileSync as writeFileSync6, rmSync as rmSync3, mkdirSync as mkdirSync7 } from "node:fs";
|
|
60151
|
+
import { join as join25 } from "node:path";
|
|
60072
60152
|
import { fileURLToPath as fileURLToPath15 } from "node:url";
|
|
60073
60153
|
import { tmpdir as tmpdir3, homedir as homedir9 } from "node:os";
|
|
60074
60154
|
init_complex_bugs();
|
|
60075
|
-
var ROOT8 =
|
|
60076
|
-
var CORPUS =
|
|
60077
|
-
var CAPTURED_CORPUS_DIR = process.env.BLITZSTRIKE_CORPUS_DIR ??
|
|
60155
|
+
var ROOT8 = join25(fileURLToPath15(new URL(".", import.meta.url)), "..");
|
|
60156
|
+
var CORPUS = join25(ROOT8, "bench", "corpus");
|
|
60157
|
+
var CAPTURED_CORPUS_DIR = process.env.BLITZSTRIKE_CORPUS_DIR ?? join25(homedir9(), ".blitzstrike", "corpus");
|
|
60078
60158
|
function parseCorpusFile(path) {
|
|
60079
60159
|
let text;
|
|
60080
60160
|
try {
|
|
@@ -60131,10 +60211,10 @@ function parseCorpusFile(path) {
|
|
|
60131
60211
|
function loadDir(dir) {
|
|
60132
60212
|
const entries = [];
|
|
60133
60213
|
try {
|
|
60134
|
-
for (const f of
|
|
60214
|
+
for (const f of readdirSync7(dir)) {
|
|
60135
60215
|
if (!f.endsWith(".md"))
|
|
60136
60216
|
continue;
|
|
60137
|
-
const e = parseCorpusFile(
|
|
60217
|
+
const e = parseCorpusFile(join25(dir, f));
|
|
60138
60218
|
if (e)
|
|
60139
60219
|
entries.push(e);
|
|
60140
60220
|
}
|
|
@@ -60161,7 +60241,7 @@ function captureFalsePositive(input) {
|
|
|
60161
60241
|
input.code,
|
|
60162
60242
|
"```"
|
|
60163
60243
|
].filter((l) => l !== null);
|
|
60164
|
-
const path =
|
|
60244
|
+
const path = join25(CAPTURED_CORPUS_DIR, `${id}.md`);
|
|
60165
60245
|
writeFileSync6(path, lines.join(`
|
|
60166
60246
|
`) + `
|
|
60167
60247
|
`, "utf8");
|
|
@@ -60183,7 +60263,7 @@ function detect(entry) {
|
|
|
60183
60263
|
}
|
|
60184
60264
|
const lang = entry.language;
|
|
60185
60265
|
if (lang === "php") {
|
|
60186
|
-
const tmp =
|
|
60266
|
+
const tmp = join25(tmpdir3(), `blitzstrike-bench-${entry.id}-${process.pid}.php`);
|
|
60187
60267
|
writeFileSync6(tmp, entry.code);
|
|
60188
60268
|
const r = analyzeDataFlow2(tmp);
|
|
60189
60269
|
rmSync3(tmp, { force: true });
|
|
@@ -60253,11 +60333,11 @@ function runBenchmark() {
|
|
|
60253
60333
|
|
|
60254
60334
|
// src/obligations.ts
|
|
60255
60335
|
import { readFileSync as readFileSync26, appendFileSync as appendFileSync4, mkdirSync as mkdirSync8, existsSync as existsSync13, writeFileSync as writeFileSync7 } from "node:fs";
|
|
60256
|
-
import { join as
|
|
60336
|
+
import { join as join26 } from "node:path";
|
|
60257
60337
|
import { createHash as createHash6 } from "node:crypto";
|
|
60258
60338
|
import { homedir as homedir10 } from "node:os";
|
|
60259
|
-
var HOME_DIR4 = process.env.BLITZSTRIKE_HOME ??
|
|
60260
|
-
var OBLIGATION_PATH =
|
|
60339
|
+
var HOME_DIR4 = process.env.BLITZSTRIKE_HOME ?? join26(homedir10(), ".blitzstrike");
|
|
60340
|
+
var OBLIGATION_PATH = join26(HOME_DIR4, "obligations.jsonl");
|
|
60261
60341
|
function ensureDir3() {
|
|
60262
60342
|
if (!existsSync13(HOME_DIR4))
|
|
60263
60343
|
mkdirSync8(HOME_DIR4, { recursive: true });
|
|
@@ -62294,7 +62374,7 @@ function listPocTypes() {
|
|
|
62294
62374
|
import { execSync as execSync3 } from "node:child_process";
|
|
62295
62375
|
import { mkdtempSync as mkdtempSync3, mkdirSync as mkdirSync9, writeFileSync as writeFileSync8, rmSync as rmSync4, existsSync as existsSync15 } from "node:fs";
|
|
62296
62376
|
import { tmpdir as tmpdir4 } from "node:os";
|
|
62297
|
-
import { join as
|
|
62377
|
+
import { join as join27 } from "node:path";
|
|
62298
62378
|
function findForge() {
|
|
62299
62379
|
try {
|
|
62300
62380
|
const p = execSync3("which forge 2>/dev/null", { encoding: "utf8", timeout: 3000 }).trim();
|
|
@@ -62343,14 +62423,14 @@ async function foundryRun(input) {
|
|
|
62343
62423
|
};
|
|
62344
62424
|
}
|
|
62345
62425
|
const poc = input.poc_code ?? foundryPoc(input.class_ ?? "missing_access_control", name);
|
|
62346
|
-
const dir = mkdtempSync3(
|
|
62426
|
+
const dir = mkdtempSync3(join27(tmpdir4(), "blitzstrike-foundry-"));
|
|
62347
62427
|
try {
|
|
62348
62428
|
try {
|
|
62349
62429
|
execSync3(`${forge} init --force --no-git ${dir}`, { stdio: "ignore", timeout: 60000 });
|
|
62350
62430
|
} catch {
|
|
62351
|
-
mkdirSync9(
|
|
62352
|
-
mkdirSync9(
|
|
62353
|
-
writeFileSync8(
|
|
62431
|
+
mkdirSync9(join27(dir, "src"), { recursive: true });
|
|
62432
|
+
mkdirSync9(join27(dir, "test"), { recursive: true });
|
|
62433
|
+
writeFileSync8(join27(dir, "foundry.toml"), `[profile.default]
|
|
62354
62434
|
src = "src"
|
|
62355
62435
|
out = "out"
|
|
62356
62436
|
libs = ["lib"]
|
|
@@ -62360,12 +62440,12 @@ solc = "0.8.20"
|
|
|
62360
62440
|
for (const f of ["Counter.sol", "Counter.t.sol", "Counter.s.sol"]) {
|
|
62361
62441
|
for (const sub of ["src", "test", "script"]) {
|
|
62362
62442
|
try {
|
|
62363
|
-
rmSync4(
|
|
62443
|
+
rmSync4(join27(dir, sub, f), { force: true });
|
|
62364
62444
|
} catch {}
|
|
62365
62445
|
}
|
|
62366
62446
|
}
|
|
62367
|
-
writeFileSync8(
|
|
62368
|
-
writeFileSync8(
|
|
62447
|
+
writeFileSync8(join27(dir, "src", `${name}.sol`), input.contract_code);
|
|
62448
|
+
writeFileSync8(join27(dir, "test", `${name}.t.sol`), poc);
|
|
62369
62449
|
const { out } = runForge(forge, dir, input.timeout_ms ?? 60000);
|
|
62370
62450
|
const tests = parseTestResults(out);
|
|
62371
62451
|
const anyFail = tests.some((t) => t.status === "fail");
|
|
@@ -62383,33 +62463,33 @@ solc = "0.8.20"
|
|
|
62383
62463
|
}
|
|
62384
62464
|
|
|
62385
62465
|
// src/enterprise-benchmark.ts
|
|
62386
|
-
import { existsSync as existsSync16, readFileSync as readFileSync29, readdirSync as
|
|
62387
|
-
import { join as
|
|
62466
|
+
import { existsSync as existsSync16, readFileSync as readFileSync29, readdirSync as readdirSync8, statSync as statSync5 } from "node:fs";
|
|
62467
|
+
import { join as join28, resolve } from "node:path";
|
|
62388
62468
|
import { fileURLToPath as fileURLToPath16 } from "node:url";
|
|
62389
62469
|
init_complex_bugs();
|
|
62390
62470
|
var ROOT9 = resolve(fileURLToPath16(new URL(".", import.meta.url)), "..", "bench", "enterprise");
|
|
62391
62471
|
var ENTERPRISE_FIXTURES = [
|
|
62392
|
-
{ id: "php-laravel", dir:
|
|
62393
|
-
{ id: "js-express", dir:
|
|
62394
|
-
{ id: "py-django", dir:
|
|
62395
|
-
{ id: "java-spring", dir:
|
|
62396
|
-
{ id: "wp-batch-route", dir:
|
|
62397
|
-
{ id: "php-complex", dir:
|
|
62472
|
+
{ id: "php-laravel", dir: join28(ROOT9, "php-laravel"), expected_vulns: 4 },
|
|
62473
|
+
{ id: "js-express", dir: join28(ROOT9, "js-express"), expected_vulns: 2 },
|
|
62474
|
+
{ id: "py-django", dir: join28(ROOT9, "py-django"), expected_vulns: 2 },
|
|
62475
|
+
{ id: "java-spring", dir: join28(ROOT9, "java-spring"), expected_vulns: 2 },
|
|
62476
|
+
{ id: "wp-batch-route", dir: join28(ROOT9, "wp-batch-route"), expected_vulns: 3 },
|
|
62477
|
+
{ id: "php-complex", dir: join28(ROOT9, "php-complex"), expected_vulns: 4 }
|
|
62398
62478
|
];
|
|
62399
62479
|
function sourceFiles(root) {
|
|
62400
62480
|
const out = [];
|
|
62401
62481
|
const walk = (dir) => {
|
|
62402
62482
|
let entries;
|
|
62403
62483
|
try {
|
|
62404
|
-
entries =
|
|
62484
|
+
entries = readdirSync8(dir);
|
|
62405
62485
|
} catch {
|
|
62406
62486
|
return;
|
|
62407
62487
|
}
|
|
62408
62488
|
for (const e of entries) {
|
|
62409
|
-
const p =
|
|
62489
|
+
const p = join28(dir, e);
|
|
62410
62490
|
let st;
|
|
62411
62491
|
try {
|
|
62412
|
-
st =
|
|
62492
|
+
st = statSync5(p);
|
|
62413
62493
|
} catch {
|
|
62414
62494
|
continue;
|
|
62415
62495
|
}
|
|
@@ -62640,7 +62720,7 @@ function createServer2() {
|
|
|
62640
62720
|
` + `- A hard block (Cloudflare/WAF/IP-block/captcha) is NOT the end: mark the finding blocked + note the required vantage (residential / authorized / correct-SNI / --resolve direct-to-origin), then CONTINUE to the next lead (origin bypass, non-prod cluster, mobile APK, subdomain).
|
|
62641
62721
|
` + `- Keep trying every lead AND every chain step until each is verified/executed or blocked, THEN generate_report. Never deliver a bare surface map, and never stop at 'found X' when X enables more.
|
|
62642
62722
|
|
|
62643
|
-
` + "TWO PATHS:\\n" + "- Source path on disk -> blitz_scan / taint_file / eagle_eye2 (static).\\n" + "- Live URL -> live_recon / active_scan / strike_verify (web-hunting).\\n\\n" + "DEEPEN A FINDING: attack_plan(target, tech, params) to get the prioritized vector plan (decide what to test next with data); list_chains (escalation), chain_links (compose), technique_lookup(cls), payload_lookup, bypass_lookup (blocked). Ground any detector hit empirically with pattern_lookup(id) — it returns the class's CWE, real-world signature, escalation chains, citable references, per-class bypass techniques, and the high-value assets (crown jewels) that class hits, so a raw hit becomes a class-aware finding. Resolve free-form terminology first with synonym_lookup(term) (IDOR/BOLA/SQLi/prompt-injection → canonical id). For an llm_injection hit, its pattern carries a validation discipline — the RUN-TWICE RULE (reproduce token-for-token across two fresh sessions), NON-GUESSABLE ANCHOR (must leak a real key/URL, not a plausible guess), and OOB PROOF (a verifiable callback log) — apply all three before reporting. BEFORE generating a report, run submission_gate(...) and only ship a finding that passes all 7 questions (reproducible, in-scope, real-impact, no-privileged-assumption, verified-live, evidence-redacted, severity-derived); one false = kill it. Generate the concrete reproduction recipe with auto_poc(type, base_url, endpoint, param) — it emits the exact marker request + negative control + expected differential + Patchstack-style title, so 'reproducible' is executable, not abstract. Calibrate severity with severity_calibrate(type, cvss) to get a P1–P5 tier + VRT-style category. Start each engagement with engagement_scaffold(target, scope) for the folder + scope.md structure, and check data_refresh() to confirm the data layers are consistent. Phase doctrine: read_skill(bs-orchestrate-engagement | bs-web-hunting | bs-source-audit | bs-verify-finding). Campaign plan: read_playbook(target-type). On any failure call retry_guidance(signal) / model_fallback(signal) before giving up. HUNTING DOCTRINE (maximize payout rate): (1) SIBLING RULE — if one endpoint requires auth, check every sibling (/export /delete /share); ~30% of paid IDOR/auth bugs come from siblings — AUTOMATE it with sibling_scan(base_url, endpoint, token_a, token_b), the deterministic live logic-bug prober (sibling enumeration + differential IDOR + auth matrix + mass assignment + rate limit, evidence-first). (2) A→B SIGNAL — a confirmed bug signals a class of developer mistake; hunt B and C (20-min box) before reporting. (3) TWO-ACCOUNT IDOR — always test with attacker account A reading victim account B, and state it in the report. (4) PoC ESCALATION — IDOR shows victim data (not 200), XSS shows cookie exfil (not alert), SSRF shows internal response (not DNS), SQLi shows DB content (not error). (5) FOLLOW THE MONEY — billing/credits/refunds/wallet flows. (6) Kill weak findings with kill_list(type) BEFORE the gate — missing headers, self-XSS, open-redirect-alone, SSRF-DNS-only, GraphQL-introspection-alone are always N/A standalone. (7) CI/CD + SAML/SSO are critical attack surfaces (pull_request_target, expression injection, XML signature wrapping, comment injection). Full doctrine: hunting_doctrine(). WHAT TO HUNT NEXT: watchlist() returns the ranked CWE frequency + high-value CVEs with payout + a saturated flag (prioritize high-freq/high-payout/not-saturated: missing-authz, SQLi, SSRF, deserialization; skip saturated XSS/CSRF/open-redirect unless they chain into takeover). PRECISION GUARD: resolve_check(host) detects when an ISP/country redirects the domain to a blocking/sinkhole page (gambling/adult/streaming niches) — audit the PUBLIC IP, never the sinkhole.\n" + "KNOWLEDGE BASE (discover, don't guess): skillLookup(topic) / listSkills for the 40 attack-path + hunting skills (ap-*, hp-*, bs-*); list_attack_vectors / attack_vectors(cat) for the 34-category vector taxonomy; taxonomy(kind) for OWASP/CWE/ASVS/API-top-10; read_playbook(type) for the 17 campaign playbooks; list_manuals / read_tool_manual for 317 tool references; list_tools / run_catalog_tool for the 141-tool catalog. Every tool, skill, and data layer is reachable from these. CROSS-TARGET INTELLIGENCE: strike_resolve auto-records confirmed/false_positive verdicts into the empirical ledger; query it with intelligence(action=hit_rates/top_vectors/recall) so a new target on a known tech inherits historical hit-rates (attack_plan already blends them into success_probability). intelligence(action=recall, tech, target) is the per-engagement pattern recall — it returns which patterns historically CONFIRMED on that tech (prioritize them) versus which only ever produced false positives (avoid them), so a new engagement starts from the empirical playbook of past ones. LIVE PENTEST + TARGETING (black-box, WAF-safe): cache_gap(base_url, endpoint) fuzzes path-normalization + static-extension variants for cache deception/poisoning; blind_oracle(base_url, param, value) detects which SINK a param reaches (sql/ssti/xss) via benign arithmetic (id=1+0, test${7*7}) WITHOUT a malicious payload; param_precedence(base_url, param, A, B) maps duplicate-parameter precedence (first/last-wins) for WAF-bypass. OOB (out-of-band) PROOF for BLIND vulns: oob_start() spins an interactsh listener (unique *.oast.* domain, streams DNS/HTTP interactions — the standard for public targets) or a local HTTP listener for local labs; inject the canary, then oob_poll(id) until the hit arrives; oob_stop(id) to clean up. A blind SSRF/XXE/SQLi/command-injection is CONFIRMED only when the canary actually arrives — never from a guess. SOURCE TARGETING: action_surface(code) maps every wp_ajax_* action to its vuln class + DERIVED priority (what to look for WHERE); security_state(sanitizers, sink) gives a wrong-context sanitization verdict; framework_knowledge(framework) returns auth/nonce primitives for 9 frameworks; variant_scan(root, signature) mass-sweeps an install base for ONE bug family; patch_analyze(old, new) REVERSES a security patch into the 0-day, and its mine_signature feeds variant_scan to sweep unpatched copies. All of these are DETECTION HINTS — verify each live (strike_verify / browser_validate) before it enters the report. NEWEST DETECTORS — understand AND try them: variant_scan also emits priv_esc (privilege escalation — a role/capability/user change fed by request input, traced cross-file via reverse call-graph, e.g. set_role($id, sanitize_key($_POST['um-role'])) or update_user_meta(...,'wp_capabilities', $_POST[...])) and flags uploadAllow=>array('all') unrestricted-upload configs as file_upload (the file-manager/connector shape). TO TRY a priv_esc hit: submit the role field with 'administrator' (or send wp_capabilities meta) and confirm the account actually gains admin. TO TRY an unrestricted-upload hit: POST a .php/.phtml and confirm it lands web-reachable + executes. variant_scan also emits hardcoded_secret (CWE-798) in three tiers: a secret field (api_key/db_password/access_token/aws_*) assigned a literal (HIGH), a known secret FORMAT (JWT eyJ…/AWS AKIA…/GitHub ghp_…/Slack xoxb-…/…) regardless of name (HIGH), or a high-entropy suspect token (MEDIUM — verify before reporting). Verify a frontend/JS secret live via drive_devtools (inspect the JS bundle / network response and confirm the key is actually exposed), and for a backend secret confirm it is reachable/valid. A static hit is a HYPOTHESIS until verified live — never report unverified. For a repo, also scan_git_history(root) — secrets DELETED from HEAD still live in .git history (the removed-later-is-not-fixed trap), and it feeds every recovered pre-deletion blob through the same secret detector. Once you recover a credential, prove it is still ACTIVE with validate_leaked_key(apiBase, endpoints, key|blobUrl) — a READ-ONLY differential test (401-without-key vs 200-with-key = auth bypass PROVEN). Two supply-chain detectors: dependency_confusion (a manifest/build file resolving a package from a public registry — pypi.org/npmjs.org --extra-index-url, or a scoped @company/pkg with no private registry) and ml_supply_chain (torch.load without weights_only=True / joblib.load / np.load(allow_pickle=True) / keras load_model on an untrusted model → pickle RCE). Rust is supported end-to-end: the taint engine (blitz_scan / taint_file) maps Rust sinks (std::process::Command, sqlx/diesel, reqwest/hyper, std::fs, serde/bincode) to the classic classes, plus two Rust-specific detectors — rust_unsafe (transmute / assume_init / from_raw_parts / ptr::* — memory-unsafety surface, CWE-119) and rust_format_string (println!/format! with a variable as the format string — CWE-134). The sqlx query! compile-time macro is treated as safe (suppressed). Two more web-class detectors: jwt_alg_confusion (a JWT verifier that dispatches on the token's alg header and accepts BOTH RS256 and HS256, with the HS256 HMAC secret derived from public/shared key material — CWE-347; the attacker sets alg=HS256 and signs with the public key to forge admin tokens) and cache_deception (a reverse proxy caching static-extension URLs with a cache key that omits the session cookie, over a session-authenticated backend — CWE-525; the victim's cached private response is re-fetched anonymously). TO TRY a jwt_alg_confusion hit: fetch the public key (/.well-known/jwks.json), forge an HS256 token signed with that public key, and confirm admin access. TO TRY a cache_deception hit: request an authenticated path with a static extension appended (.css/.js) and re-fetch it anonymously. Three more detectors: cors_misconfiguration (Access-Control-Allow-Origin reflects the request Origin or is '*' while credentials are true — CWE-942; any site reads the victim's authenticated responses), xss (user input into a DOM sink — innerHTML / dangerouslySetInnerHTML / document.write / .html() / eval — CWE-79), and subdomain_takeover (a dangling CNAME/AliasTarget to a claimable service like *.github.io/*.herokuapp.com/*.amazonaws.com — CWE-404). TO TRY a cors hit: send an evil Origin + confirm the response echoes it with Allow-Credentials:true. TO TRY an xss hit: confirm the sink executes (drive_devtools). TO TRY a takeover hit: verify the CNAME target resolves to an unclaimed/not-found page. Two more client-side detectors: postmessage_no_origin_check (a window message listener that reads event.data but never validates event.origin — CWE-345; any site can drive the handler) and client_trusted_flag (a privilege/entitlement flag like isAdmin/withVip/premium read from request input and used in a security decision — CWE-807/639; derive the flag from server state, never the client). TO TRY a postMessage hit: send a crafted message from an attacker origin and confirm the handler acts on it. TO TRY a client-trusted-flag hit: flip the flag param to true and confirm the privilege is actually granted. WEB3: for Solidity/EVM, call web3_audit(code|path) — a deterministic 13-class smart-contract audit (reentrancy incl. ERC721/ERC1155 callback reentrancy, unchecked return, unchecked arithmetic, tx.origin auth, signature replay, unprotected selfdestruct, delegatecall-to-user-input, missing access control, timestamp dependence, spot-price oracle manipulation incl. slot0/latestRoundData, unbounded loop, abi.encodePacked hash collision, missing address(0) validation) returning ranked findings (class/CWE/severity/line), then foundry_poc(class, contract) to generate an executable Foundry test, and foundry_run(contract_code, poc_code|class_) to actually EXECUTE it — a PASSING PoC test is the proof that the exploit reproduces (deterministic: forge's own test verdict). A web3 hit is a HYPOTHESIS until the Foundry PoC reproduces it.\n" + `PRECISION ANALYSIS — chrome-devtools MCP is MANDATORY, not optional:
|
|
62723
|
+
` + "TWO PATHS:\\n" + "- Source path on disk -> blitz_scan / taint_file / eagle_eye2 (static).\\n" + "- Live URL -> live_recon / active_scan / strike_verify (web-hunting).\\n\\n" + "DEEPEN A FINDING: attack_plan(target, tech, params) to get the prioritized vector plan (decide what to test next with data); list_chains (escalation), chain_links (compose), technique_lookup(cls), payload_lookup, bypass_lookup (blocked). Ground any detector hit empirically with pattern_lookup(id) — it returns the class's CWE, real-world signature, escalation chains, citable references, per-class bypass techniques, and the high-value assets (crown jewels) that class hits, so a raw hit becomes a class-aware finding. Resolve free-form terminology first with synonym_lookup(term) (IDOR/BOLA/SQLi/prompt-injection → canonical id). For an llm_injection hit, its pattern carries a validation discipline — the RUN-TWICE RULE (reproduce token-for-token across two fresh sessions), NON-GUESSABLE ANCHOR (must leak a real key/URL, not a plausible guess), and OOB PROOF (a verifiable callback log) — apply all three before reporting. BEFORE generating a report, run submission_gate(...) and only ship a finding that passes all 7 questions (reproducible, in-scope, real-impact, no-privileged-assumption, verified-live, evidence-redacted, severity-derived); one false = kill it. Generate the concrete reproduction recipe with auto_poc(type, base_url, endpoint, param) — it emits the exact marker request + negative control + expected differential + Patchstack-style title, so 'reproducible' is executable, not abstract. Calibrate severity with severity_calibrate(type, cvss) to get a P1–P5 tier + VRT-style category. Start each engagement with engagement_scaffold(target, scope) for the folder + scope.md structure, and check data_refresh() to confirm the data layers are consistent. Phase doctrine: read_skill(bs-orchestrate-engagement | bs-web-hunting | bs-source-audit | bs-verify-finding). Campaign plan: read_playbook(target-type). On any failure call retry_guidance(signal) / model_fallback(signal) before giving up. HUNTING DOCTRINE (maximize payout rate): (1) SIBLING RULE — if one endpoint requires auth, check every sibling (/export /delete /share); ~30% of paid IDOR/auth bugs come from siblings — AUTOMATE it with sibling_scan(base_url, endpoint, token_a, token_b), the deterministic live logic-bug prober (sibling enumeration + differential IDOR + auth matrix + mass assignment + rate limit, evidence-first). (2) A→B SIGNAL — a confirmed bug signals a class of developer mistake; hunt B and C (20-min box) before reporting. (3) TWO-ACCOUNT IDOR — always test with attacker account A reading victim account B, and state it in the report. (4) PoC ESCALATION — IDOR shows victim data (not 200), XSS shows cookie exfil (not alert), SSRF shows internal response (not DNS), SQLi shows DB content (not error). (5) FOLLOW THE MONEY — billing/credits/refunds/wallet flows. (6) Kill weak findings with kill_list(type) BEFORE the gate — missing headers, self-XSS, open-redirect-alone, SSRF-DNS-only, GraphQL-introspection-alone are always N/A standalone. (7) CI/CD + SAML/SSO are critical attack surfaces (pull_request_target, expression injection, XML signature wrapping, comment injection). Full doctrine: hunting_doctrine(). WHAT TO HUNT NEXT: watchlist() returns the ranked CWE frequency + high-value CVEs with payout + a saturated flag (prioritize high-freq/high-payout/not-saturated: missing-authz, SQLi, SSRF, deserialization; skip saturated XSS/CSRF/open-redirect unless they chain into takeover). The CVE watchlist now spans 4,000+ product fingerprints (live from nuclei-templates when installed — refresh with sync_cve_corpus() before a big recon pass); live_recon's suggested_cves names the SPECIFIC CVE for the detected product/version — then cve_verify(cve, target) CONFIRMS it live by running the matching nuclei template (VERIFIED only when nuclei actually matches; a CVE is report-ready only after cve_verify, never from the fingerprint alone). SURFACE-FIRST: surface_map(surface) maps an attack surface (image/redirect proxy, edge cache, payment portal, AI agent, file service, Electron, SSO) to its highest-value tests — map surfaces then test, don't spray payloads. PRECISION GUARD: resolve_check(host) detects when an ISP/country redirects the domain to a blocking/sinkhole page (gambling/adult/streaming niches) — audit the PUBLIC IP, never the sinkhole.\n" + "KNOWLEDGE BASE (discover, don't guess): skillLookup(topic) / listSkills for the 40 attack-path + hunting skills (ap-*, hp-*, bs-*); list_attack_vectors / attack_vectors(cat) for the 34-category vector taxonomy; taxonomy(kind) for OWASP/CWE/ASVS/API-top-10; read_playbook(type) for the 17 campaign playbooks; list_manuals / read_tool_manual for 317 tool references; list_tools / run_catalog_tool for the 141-tool catalog. Every tool, skill, and data layer is reachable from these. CROSS-TARGET INTELLIGENCE: strike_resolve auto-records confirmed/false_positive verdicts into the empirical ledger; query it with intelligence(action=hit_rates/top_vectors/recall) so a new target on a known tech inherits historical hit-rates (attack_plan already blends them into success_probability). intelligence(action=recall, tech, target) is the per-engagement pattern recall — it returns which patterns historically CONFIRMED on that tech (prioritize them) versus which only ever produced false positives (avoid them), so a new engagement starts from the empirical playbook of past ones. LIVE PENTEST + TARGETING (black-box, WAF-safe): cache_gap(base_url, endpoint) fuzzes path-normalization + static-extension variants for cache deception/poisoning; blind_oracle(base_url, param, value) detects which SINK a param reaches (sql/ssti/xss) via benign arithmetic (id=1+0, test${7*7}) WITHOUT a malicious payload; param_precedence(base_url, param, A, B) maps duplicate-parameter precedence (first/last-wins) for WAF-bypass; broken_link_scan(url) detects expired-domain takeover (crawls outbound refs → DNS/RDAP → flags claimable domains). OOB (out-of-band) PROOF for BLIND vulns: oob_start() spins an interactsh listener (unique *.oast.* domain, streams DNS/HTTP interactions — the standard for public targets) or a local HTTP listener for local labs; inject the canary, then oob_poll(id) until the hit arrives; oob_stop(id) to clean up. A blind SSRF/XXE/SQLi/command-injection is CONFIRMED only when the canary actually arrives — never from a guess. SOURCE TARGETING: review_harness(path) FIRST for full coverage — it applies a fixed 5-signal rubric (entry_points/auth_gates/sinks/secrets/logic_bugs) to EVERY source file and sorts the signal-dense ones first (a complete map, not a partial scan); then action_surface(code) maps every wp_ajax_* action to its vuln class + DERIVED priority (what to look for WHERE); security_state(sanitizers, sink) gives a wrong-context sanitization verdict; framework_knowledge(framework) returns auth/nonce primitives for 9 frameworks; variant_scan(root, signature) mass-sweeps an install base for ONE bug family; patch_analyze(old, new) REVERSES a security patch into the 0-day, and its mine_signature feeds variant_scan to sweep unpatched copies. All of these are DETECTION HINTS — verify each live (strike_verify / browser_validate) before it enters the report. NEWEST DETECTORS — understand AND try them: variant_scan also emits priv_esc (privilege escalation — a role/capability/user change fed by request input, traced cross-file via reverse call-graph, e.g. set_role($id, sanitize_key($_POST['um-role'])) or update_user_meta(...,'wp_capabilities', $_POST[...])) and flags uploadAllow=>array('all') unrestricted-upload configs as file_upload (the file-manager/connector shape). TO TRY a priv_esc hit: submit the role field with 'administrator' (or send wp_capabilities meta) and confirm the account actually gains admin. TO TRY an unrestricted-upload hit: POST a .php/.phtml and confirm it lands web-reachable + executes. variant_scan also emits hardcoded_secret (CWE-798) in three tiers: a secret field (api_key/db_password/access_token/aws_*) assigned a literal (HIGH), a known secret FORMAT (JWT eyJ…/AWS AKIA…/GitHub ghp_…/Slack xoxb-…/…) regardless of name (HIGH), or a high-entropy suspect token (MEDIUM — verify before reporting). Verify a frontend/JS secret live via drive_devtools (inspect the JS bundle / network response and confirm the key is actually exposed), and for a backend secret confirm it is reachable/valid. A static hit is a HYPOTHESIS until verified live — never report unverified. For a repo, also scan_git_history(root) — secrets DELETED from HEAD still live in .git history (the removed-later-is-not-fixed trap), and it feeds every recovered pre-deletion blob through the same secret detector. Once you recover a credential, prove it is still ACTIVE with validate_leaked_key(apiBase, endpoints, key|blobUrl) — a READ-ONLY differential test (401-without-key vs 200-with-key = auth bypass PROVEN). Two supply-chain detectors: dependency_confusion (a manifest/build file resolving a package from a public registry — pypi.org/npmjs.org --extra-index-url, or a scoped @company/pkg with no private registry) and ml_supply_chain (torch.load without weights_only=True / joblib.load / np.load(allow_pickle=True) / keras load_model on an untrusted model → pickle RCE). Rust is supported end-to-end: the taint engine (blitz_scan / taint_file) maps Rust sinks (std::process::Command, sqlx/diesel, reqwest/hyper, std::fs, serde/bincode) to the classic classes, plus two Rust-specific detectors — rust_unsafe (transmute / assume_init / from_raw_parts / ptr::* — memory-unsafety surface, CWE-119) and rust_format_string (println!/format! with a variable as the format string — CWE-134). The sqlx query! compile-time macro is treated as safe (suppressed). Two more web-class detectors: jwt_alg_confusion (a JWT verifier that dispatches on the token's alg header and accepts BOTH RS256 and HS256, with the HS256 HMAC secret derived from public/shared key material — CWE-347; the attacker sets alg=HS256 and signs with the public key to forge admin tokens) and cache_deception (a reverse proxy caching static-extension URLs with a cache key that omits the session cookie, over a session-authenticated backend — CWE-525; the victim's cached private response is re-fetched anonymously). TO TRY a jwt_alg_confusion hit: fetch the public key (/.well-known/jwks.json), forge an HS256 token signed with that public key, and confirm admin access. TO TRY a cache_deception hit: request an authenticated path with a static extension appended (.css/.js) and re-fetch it anonymously. Three more detectors: cors_misconfiguration (Access-Control-Allow-Origin reflects the request Origin or is '*' while credentials are true — CWE-942; any site reads the victim's authenticated responses), xss (user input into a DOM sink — innerHTML / dangerouslySetInnerHTML / document.write / .html() / eval — CWE-79), and subdomain_takeover (a dangling CNAME/AliasTarget to a claimable service like *.github.io/*.herokuapp.com/*.amazonaws.com — CWE-404). TO TRY a cors hit: send an evil Origin + confirm the response echoes it with Allow-Credentials:true. TO TRY an xss hit: confirm the sink executes (drive_devtools). TO TRY a takeover hit: verify the CNAME target resolves to an unclaimed/not-found page. Two more client-side detectors: postmessage_no_origin_check (a window message listener that reads event.data but never validates event.origin — CWE-345; any site can drive the handler) and client_trusted_flag (a privilege/entitlement flag like isAdmin/withVip/premium read from request input and used in a security decision — CWE-807/639; derive the flag from server state, never the client). TO TRY a postMessage hit: send a crafted message from an attacker origin and confirm the handler acts on it. TO TRY a client-trusted-flag hit: flip the flag param to true and confirm the privilege is actually granted. WEB3: for Solidity/EVM, call web3_audit(code|path) — a deterministic 13-class smart-contract audit (reentrancy incl. ERC721/ERC1155 callback reentrancy, unchecked return, unchecked arithmetic, tx.origin auth, signature replay, unprotected selfdestruct, delegatecall-to-user-input, missing access control, timestamp dependence, spot-price oracle manipulation incl. slot0/latestRoundData, unbounded loop, abi.encodePacked hash collision, missing address(0) validation) returning ranked findings (class/CWE/severity/line), then foundry_poc(class, contract) to generate an executable Foundry test, and foundry_run(contract_code, poc_code|class_) to actually EXECUTE it — a PASSING PoC test is the proof that the exploit reproduces (deterministic: forge's own test verdict). A web3 hit is a HYPOTHESIS until the Foundry PoC reproduces it.\n" + `PRECISION ANALYSIS — chrome-devtools MCP is MANDATORY, not optional:
|
|
62644
62724
|
` + `- When a lead needs DOM/JS precision — DOM-XSS sink execution, AJAX endpoint + payload interception, JS runtime errors, redirect chains, SSO/token flow, or anything a static HTML glance cannot prove — call drive_devtools(target). It spawns chrome-devtools-mcp and drives a REAL headless browser (navigate -> list_network_requests -> list_console_messages -> evaluate_script), giving reproducible evidence instead of a guess.
|
|
62645
62725
|
` + `- Before calling it, check_mcp() to confirm the browser MCP is available; if not, blitzstrike install-tools or npm i -g chrome-devtools-mcp. Never substitute eyeballing minified JS or a static sink guess when a live browser can PROVE it. This is the precision + consistency layer.
|
|
62646
62726
|
` + "EXTERNAL MCP SERVERS (verified, connect them — NOT one-shot CLIs): chrome-devtools-mcp (29 tools: list_network_requests/get_network_request for raw HTTP interception, list_console_messages for JS errors + DOM-XSS, evaluate_script to run JS, take_screenshot) -> stdio chrome-devtools-mcp --headless --chromeArg=--no-sandbox --chromeArg=--disable-gpu (as root/container this is MANDATORY or the browser crashes; add --proxyServer http://127.0.0.1:8080 to route through Burp, --acceptInsecureCerts for bad TLS). burp-suite-mcp (proxy history + active scan + repeater) -> NOT npm: build the JAR (git clone https://github.com/PortSwigger/mcp-server.git && cd mcp-server && ./gradlew embedProxyJar), load it in Burp Extensions, then connect the client to http://127.0.0.1:9876 (SSE) or the stdio proxy java -jar mcp-proxy-all.jar --sse-url http://127.0.0.1:9876."
|
|
@@ -63701,7 +63781,7 @@ ${statusLine}` : statusLine },
|
|
|
63701
63781
|
}, async () => {
|
|
63702
63782
|
let update = "skipped (nuclei not found)";
|
|
63703
63783
|
try {
|
|
63704
|
-
|
|
63784
|
+
execFileSync7("nuclei", ["-update-templates"], { timeout: 120000, stdio: "pipe" });
|
|
63705
63785
|
update = "ok";
|
|
63706
63786
|
} catch {}
|
|
63707
63787
|
invalidateCorpusCache();
|
|
@@ -63715,6 +63795,16 @@ ${statusLine}` : statusLine },
|
|
|
63715
63795
|
]
|
|
63716
63796
|
};
|
|
63717
63797
|
});
|
|
63798
|
+
server.registerTool("cve_verify", {
|
|
63799
|
+
title: "Verify a suggested CVE against the target by running its nuclei template",
|
|
63800
|
+
description: "Bridge the fingerprint-first gap: take a CVE (from live_recon suggested_cves / watchlist / the nuclei corpus) and CONFIRM it live by running the matching nuclei template against the target. Returns VERIFIED (nuclei matched — with name/severity/matched-at), UNVERIFIED (template ran clean), no_template (no template for that CVE — run nuclei -update-templates), or error (invalid CVE/target or nuclei unavailable). Deterministic + evidence-first: a CVE is only VERIFIED when nuclei actually matches it.",
|
|
63801
|
+
inputSchema: {
|
|
63802
|
+
cve: string2().describe("CVE id, e.g. CVE-2024-4577"),
|
|
63803
|
+
target: string2().describe("Target URL, e.g. https://target.com")
|
|
63804
|
+
}
|
|
63805
|
+
}, async ({ cve, target }) => {
|
|
63806
|
+
return { content: [{ type: "text", text: JSON.stringify(cveVerify(cve, target)) }] };
|
|
63807
|
+
});
|
|
63718
63808
|
server.registerTool("auto_poc", {
|
|
63719
63809
|
title: "Auto-PoC — generate a copy-paste-ready reproduction recipe",
|
|
63720
63810
|
description: "Turn a finding into a concrete reproduction recipe (the 'reproducible' gate question made executable). Given a vuln class + target + endpoint + param, emit the exact request (with a MARKER), a NEGATIVE CONTROL, and the expected differential that PROVES the bug — plus a Patchstack-style title, derived severity, and the fix. Covers sql_injection, missing_authz/idor, ssrf, xss, ssti, command_injection, file_upload, mass_assignment, jwt_alg_confusion, crlf, open_redirect, xxe, prototype_pollution, deserialization, hardcoded_secret, cache_deception, cors_misconfiguration, subdomain_takeover. Pass type='list' to enumerate supported classes.",
|
|
@@ -64684,12 +64774,12 @@ async function serve() {
|
|
|
64684
64774
|
// src/index.ts
|
|
64685
64775
|
init_cli();
|
|
64686
64776
|
import { readFileSync as readFileSync35, existsSync as existsSync19 } from "node:fs";
|
|
64687
|
-
import { join as
|
|
64777
|
+
import { join as join33 } from "node:path";
|
|
64688
64778
|
import { fileURLToPath as fileURLToPath21 } from "node:url";
|
|
64689
|
-
var ROOT14 =
|
|
64779
|
+
var ROOT14 = join33(fileURLToPath21(new URL(".", import.meta.url)), "..");
|
|
64690
64780
|
function readVersion() {
|
|
64691
64781
|
try {
|
|
64692
|
-
const p =
|
|
64782
|
+
const p = join33(ROOT14, "package.json");
|
|
64693
64783
|
if (existsSync19(p))
|
|
64694
64784
|
return JSON.parse(readFileSync35(p, "utf8")).version ?? "1.0.0";
|
|
64695
64785
|
} catch {}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "blitzstrike",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.117",
|
|
4
4
|
"description": "Blitz Strike — a universal MCP security-audit toolbelt. BLITZ sweeps the attack surface, EAGLE-EYE traces source-to-sink, STRIKE verifies live. 57 attack chains, 130-tool catalog, intelligence data layer. One server, every agent.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|