blitzstrike 2.4.90 → 2.4.92

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 CHANGED
@@ -5,6 +5,38 @@ 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.92] — 2026-09-17
9
+
10
+ ### Fixed — interconnection audit (grounding gaps + reversed PoC semantics)
11
+
12
+ - `command_injection` was UNGROUNDED: emitted by the taint engine + used in auto-poc
13
+ and attack_plan, but had no pattern/CWE/severity/alias. Added the full pattern
14
+ (CWE-78, chain `command_injection_os_cmd`, payout $1K–$15K, bypass + crown-jewels),
15
+ a severity VRT entry (P1/critical), and synonyms (command injection / os command
16
+ injection / command execution / cmd injection / rce / code execution / code
17
+ injection / eval injection).
18
+ - Foundry PoC templates now use consistent POSITIVE semantics (a passing PoC = the
19
+ bug is PRESENT): `missing_access_control` asserted the secure outcome (backwards) —
20
+ now `assertGt(balanceOf(attacker), 0)`; `address_zero_check` now asserts the zero
21
+ address IS accepted; `signature_replay` / `delegatecall_user_input` /
22
+ `unchecked_arithmetic` / `timestamp_dependence` flipped from `vm.expectRevert()`
23
+ (secure-behavior) to asserting the exploit outcome.
24
+ - verify.ts: pattern-grounding check changed from exact count equality (patterns ==
25
+ detector types) to a subset invariant (every detector type grounded), so extra
26
+ classes like command_injection don't fail it.
27
+
28
+ ## [2.4.91] — 2026-09-17
29
+
30
+ ### Added — Foundry runner (execute Web3 PoC to PROVE a finding)
31
+
32
+ - New `foundry_run(contract_code, poc_code|class_, contract_name)` tool — actually
33
+ executes a Foundry PoC test against a vulnerable contract: scaffolds a temp
34
+ Foundry project (forge init → forge-std), runs `forge test`, and reports the
35
+ verdict from forge's own test result. A PASSING PoC test = the exploit reproduced
36
+ = the finding PROVEN; a failing PoC = not reproduced; a compile error = error.
37
+ Deterministic differential (passes on the vulnerable contract, fails on the fixed
38
+ one). Requires forge installed.
39
+
8
40
  ## [2.4.90] — 2026-09-17
9
41
 
10
42
  ### Added — Auto-PoC (reproduction recipe generator)
package/dist/index.js CHANGED
@@ -17349,8 +17349,8 @@ var init_variants = __esm(() => {
17349
17349
  });
17350
17350
 
17351
17351
  // src/sync.ts
17352
- import { mkdirSync as mkdirSync9, writeFileSync as writeFileSync8, readFileSync as readFileSync26, readdirSync as readdirSync7, statSync as statSync4, rmSync as rmSync4 } from "node:fs";
17353
- import { join as join24 } from "node:path";
17352
+ import { mkdirSync as mkdirSync10, writeFileSync as writeFileSync9, readFileSync as readFileSync26, readdirSync as readdirSync7, statSync as statSync4, rmSync as rmSync5 } from "node:fs";
17353
+ import { join as join25 } from "node:path";
17354
17354
  import { homedir as homedir10 } from "node:os";
17355
17355
  import { fileURLToPath as fileURLToPath13 } from "node:url";
17356
17356
  import { spawnSync as spawnSync4 } from "node:child_process";
@@ -17367,7 +17367,7 @@ function countFiles(dir) {
17367
17367
  const walk = (d) => {
17368
17368
  for (const e of readdirSync7(d, { withFileTypes: true })) {
17369
17369
  if (e.isDirectory())
17370
- walk(join24(d, e.name));
17370
+ walk(join25(d, e.name));
17371
17371
  else
17372
17372
  n++;
17373
17373
  }
@@ -17380,9 +17380,9 @@ function countFiles(dir) {
17380
17380
  }
17381
17381
  function syncData() {
17382
17382
  if (!dirExists(DATA_ROOT2))
17383
- mkdirSync9(DATA_ROOT2, { recursive: true });
17384
- const payloadsPath = join24(DATA_ROOT2, "payloads");
17385
- const templatesPath = join24(DATA_ROOT2, "templates");
17383
+ mkdirSync10(DATA_ROOT2, { recursive: true });
17384
+ const payloadsPath = join25(DATA_ROOT2, "payloads");
17385
+ const templatesPath = join25(DATA_ROOT2, "templates");
17386
17386
  const hasPayloads = dirExists(payloadsPath) && countFiles(payloadsPath) > 0;
17387
17387
  const hasTemplates = dirExists(templatesPath) && countFiles(templatesPath) > 0;
17388
17388
  if (hasPayloads && hasTemplates) {
@@ -17392,8 +17392,8 @@ function syncData() {
17392
17392
  data_root: DATA_ROOT2
17393
17393
  };
17394
17394
  }
17395
- const localPayloads = join24(ROOT7, "payloads");
17396
- const localTemplates = join24(ROOT7, "templates");
17395
+ const localPayloads = join25(ROOT7, "payloads");
17396
+ const localTemplates = join25(ROOT7, "templates");
17397
17397
  let payloadsSynced = false;
17398
17398
  let templatesSynced = false;
17399
17399
  if (!hasPayloads && dirExists(localPayloads)) {
@@ -17406,23 +17406,23 @@ function syncData() {
17406
17406
  }
17407
17407
  const gitOk = spawnSync4("git", ["--version"]).status === 0;
17408
17408
  if (gitOk && (!dirExists(payloadsPath) || countFiles(payloadsPath) === 0 || !dirExists(templatesPath) || countFiles(templatesPath) === 0)) {
17409
- const tmp = join24(DATA_ROOT2, ".tmp-clone");
17409
+ const tmp = join25(DATA_ROOT2, ".tmp-clone");
17410
17410
  if (dirExists(tmp))
17411
- rmSync4(tmp, { recursive: true, force: true });
17411
+ rmSync5(tmp, { recursive: true, force: true });
17412
17412
  const r = spawnSync4("git", ["clone", "--depth", "1", "--filter=blob:none", "--sparse", GITHUB_REPO, tmp], { timeout: 120000 });
17413
17413
  if (r.status === 0) {
17414
17414
  const sparse = spawnSync4("git", ["-C", tmp, "sparse-checkout", "set", "payloads", "templates"], { timeout: 120000 });
17415
17415
  if (sparse.status === 0) {
17416
17416
  if (!dirExists(payloadsPath) || countFiles(payloadsPath) === 0) {
17417
- copyDir(join24(tmp, "payloads"), payloadsPath);
17417
+ copyDir(join25(tmp, "payloads"), payloadsPath);
17418
17418
  payloadsSynced = true;
17419
17419
  }
17420
17420
  if (!dirExists(templatesPath) || countFiles(templatesPath) === 0) {
17421
- copyDir(join24(tmp, "templates"), templatesPath);
17421
+ copyDir(join25(tmp, "templates"), templatesPath);
17422
17422
  templatesSynced = true;
17423
17423
  }
17424
17424
  }
17425
- rmSync4(tmp, { recursive: true, force: true });
17425
+ rmSync5(tmp, { recursive: true, force: true });
17426
17426
  }
17427
17427
  }
17428
17428
  return {
@@ -17438,20 +17438,20 @@ function copyDir(src, dst) {
17438
17438
  }
17439
17439
  }
17440
17440
  function manualCopy(src, dst) {
17441
- mkdirSync9(dst, { recursive: true });
17441
+ mkdirSync10(dst, { recursive: true });
17442
17442
  for (const e of readdirSync7(src, { withFileTypes: true })) {
17443
- const s = join24(src, e.name);
17444
- const d = join24(dst, e.name);
17443
+ const s = join25(src, e.name);
17444
+ const d = join25(dst, e.name);
17445
17445
  if (e.isDirectory())
17446
17446
  manualCopy(s, d);
17447
17447
  else
17448
- writeFileSync8(d, readFileSync26(s));
17448
+ writeFileSync9(d, readFileSync26(s));
17449
17449
  }
17450
17450
  }
17451
17451
  var ROOT7, DATA_ROOT2, GITHUB_REPO = "https://github.com/shinthink/blitzstrike.git";
17452
17452
  var init_sync = __esm(() => {
17453
- ROOT7 = join24(fileURLToPath13(new URL(".", import.meta.url)), "..");
17454
- DATA_ROOT2 = process.env.BLITZSTRIKE_DATA ?? join24(homedir10(), ".blitzstrike", "data");
17453
+ ROOT7 = join25(fileURLToPath13(new URL(".", import.meta.url)), "..");
17454
+ DATA_ROOT2 = process.env.BLITZSTRIKE_DATA ?? join25(homedir10(), ".blitzstrike", "data");
17455
17455
  });
17456
17456
 
17457
17457
  // src/update.ts
@@ -17496,15 +17496,15 @@ var init_update = __esm(() => {
17496
17496
  });
17497
17497
 
17498
17498
  // src/release.ts
17499
- import { readFileSync as readFileSync28, existsSync as existsSync15 } from "node:fs";
17500
- import { join as join25 } from "node:path";
17499
+ import { readFileSync as readFileSync28, existsSync as existsSync16 } from "node:fs";
17500
+ import { join as join26 } from "node:path";
17501
17501
  import { fileURLToPath as fileURLToPath14 } from "node:url";
17502
- import { execSync as execSync3 } from "node:child_process";
17502
+ import { execSync as execSync4 } from "node:child_process";
17503
17503
  function validateRelease() {
17504
17504
  const checks = [];
17505
17505
  checks.push({ name: "package.json version", ok: true, detail: VERSION });
17506
17506
  try {
17507
- const changelog = readFileSync28(join25(ROOT8, "CHANGELOG.md"), "utf8");
17507
+ const changelog = readFileSync28(join26(ROOT8, "CHANGELOG.md"), "utf8");
17508
17508
  const m = changelog.match(/^##\s+\[([0-9]+\.[0-9]+\.[0-9]+)\]/m);
17509
17509
  const changelogVersion = m?.[1] ?? null;
17510
17510
  checks.push({
@@ -17516,13 +17516,13 @@ function validateRelease() {
17516
17516
  checks.push({ name: "CHANGELOG version", ok: false, detail: "CHANGELOG.md not found" });
17517
17517
  }
17518
17518
  try {
17519
- const tag = execSync3("git describe --tags --abbrev=0", { cwd: ROOT8, encoding: "utf8", stdio: ["ignore", "pipe", "ignore"] }).trim();
17519
+ const tag = execSync4("git describe --tags --abbrev=0", { cwd: ROOT8, encoding: "utf8", stdio: ["ignore", "pipe", "ignore"] }).trim();
17520
17520
  checks.push({ name: "Git tag", ok: tag === `v${VERSION}`, detail: tag, soft: true });
17521
17521
  } catch {
17522
17522
  checks.push({ name: "Git tag", ok: true, detail: "unavailable (no git/tags)", soft: true });
17523
17523
  }
17524
17524
  try {
17525
- const published = execSync3("npm view blitzstrike version", { encoding: "utf8", timeout: 8000, stdio: ["ignore", "pipe", "ignore"] }).trim();
17525
+ const published = execSync4("npm view blitzstrike version", { encoding: "utf8", timeout: 8000, stdio: ["ignore", "pipe", "ignore"] }).trim();
17526
17526
  checks.push({ name: "npm registry version", ok: published === VERSION, detail: published, soft: true });
17527
17527
  } catch {
17528
17528
  checks.push({ name: "npm registry version", ok: true, detail: "unavailable (offline)", soft: true });
@@ -17536,22 +17536,22 @@ function validateRelease() {
17536
17536
  return { version: VERSION, checks, consistent: checks.filter((c) => !c.soft).every((c) => c.ok) };
17537
17537
  }
17538
17538
  function lockfilePresent() {
17539
- return existsSync15(join25(ROOT8, "package-lock.json")) || existsSync15(join25(ROOT8, "bun.lock")) || existsSync15(join25(ROOT8, "bun.lockb"));
17539
+ return existsSync16(join26(ROOT8, "package-lock.json")) || existsSync16(join26(ROOT8, "bun.lock")) || existsSync16(join26(ROOT8, "bun.lockb"));
17540
17540
  }
17541
17541
  var ROOT8;
17542
17542
  var init_release = __esm(() => {
17543
17543
  init_version();
17544
- ROOT8 = join25(fileURLToPath14(new URL(".", import.meta.url)), "..");
17544
+ ROOT8 = join26(fileURLToPath14(new URL(".", import.meta.url)), "..");
17545
17545
  });
17546
17546
 
17547
17547
  // src/dependency.ts
17548
17548
  import { readFileSync as readFileSync29 } from "node:fs";
17549
- import { join as join26 } from "node:path";
17549
+ import { join as join27 } from "node:path";
17550
17550
  import { fileURLToPath as fileURLToPath15 } from "node:url";
17551
17551
  function checkDependencies() {
17552
17552
  let pkg = {};
17553
17553
  try {
17554
- pkg = JSON.parse(readFileSync29(join26(ROOT9, "package.json"), "utf8"));
17554
+ pkg = JSON.parse(readFileSync29(join27(ROOT9, "package.json"), "utf8"));
17555
17555
  } catch {
17556
17556
  return { install_scripts: [], git_dependencies: [], total_dependencies: 0, safe: false };
17557
17557
  }
@@ -17574,12 +17574,12 @@ function checkDependencies() {
17574
17574
  }
17575
17575
  var ROOT9;
17576
17576
  var init_dependency = __esm(() => {
17577
- ROOT9 = join26(fileURLToPath15(new URL(".", import.meta.url)), "..");
17577
+ ROOT9 = join27(fileURLToPath15(new URL(".", import.meta.url)), "..");
17578
17578
  });
17579
17579
 
17580
17580
  // src/cli.ts
17581
- import { readFileSync as readFileSync30, existsSync as existsSync16, writeFileSync as writeFileSync9, mkdirSync as mkdirSync10 } from "node:fs";
17582
- import { join as join27, dirname as dirname6 } from "node:path";
17581
+ import { readFileSync as readFileSync30, existsSync as existsSync17, writeFileSync as writeFileSync10, mkdirSync as mkdirSync11 } from "node:fs";
17582
+ import { join as join28, dirname as dirname6 } from "node:path";
17583
17583
  import { homedir as homedir11 } from "node:os";
17584
17584
  import { fileURLToPath as fileURLToPath16 } from "node:url";
17585
17585
  import { spawnSync as spawnSync5 } from "node:child_process";
@@ -17624,7 +17624,7 @@ async function runDoctor() {
17624
17624
  detail: h1 ? `X-HackerOne-Research: ${h1}` : "H1_USERNAME not set",
17625
17625
  fix: h1 ? undefined : "export H1_USERNAME=<your-hackerone-username> (adds X-HackerOne-Research to outbound requests)"
17626
17626
  });
17627
- const dataOk = existsSync16(join27(ROOT10, "chains.json")) && existsSync16(join27(ROOT10, "tools-catalog.json"));
17627
+ const dataOk = existsSync17(join28(ROOT10, "chains.json")) && existsSync17(join28(ROOT10, "tools-catalog.json"));
17628
17628
  issues.push({
17629
17629
  name: "Data layers (chains + tools-catalog)",
17630
17630
  status: dataOk ? "ok" : "fail",
@@ -17675,15 +17675,15 @@ BlitzStrike — ${verdict}`);
17675
17675
  function resolveCommand() {
17676
17676
  if (which("blitzstrike"))
17677
17677
  return { command: "blitzstrike", args: ["serve", "--mcp"] };
17678
- const src = join27(ROOT10, "src", "index.ts");
17679
- if (which("bun") && existsSync16(src))
17678
+ const src = join28(ROOT10, "src", "index.ts");
17679
+ if (which("bun") && existsSync17(src))
17680
17680
  return { command: "bun", args: ["run", src, "serve", "--mcp"] };
17681
17681
  if (which("npx"))
17682
17682
  return { command: "npx", args: ["-y", "blitzstrike", "serve", "--mcp"] };
17683
17683
  if (which("bunx"))
17684
17684
  return { command: "bunx", args: ["blitzstrike", "serve", "--mcp"] };
17685
- const dist = join27(ROOT10, "dist", "index.js");
17686
- if (existsSync16(dist))
17685
+ const dist = join28(ROOT10, "dist", "index.js");
17686
+ if (existsSync17(dist))
17687
17687
  return { command: "bun", args: [dist, "serve", "--mcp"] };
17688
17688
  return { command: "npx", args: ["-y", "blitzstrike", "serve", "--mcp"] };
17689
17689
  }
@@ -17697,51 +17697,51 @@ function readJson(p) {
17697
17697
  function jsonMcpServersWrite(p) {
17698
17698
  return (command, args) => {
17699
17699
  const dir = dirname6(p);
17700
- if (!existsSync16(dir))
17701
- mkdirSync10(dir, { recursive: true });
17700
+ if (!existsSync17(dir))
17701
+ mkdirSync11(dir, { recursive: true });
17702
17702
  const existing = readJson(p) ?? {};
17703
17703
  existing.mcpServers = {
17704
17704
  ...existing.mcpServers ?? {},
17705
17705
  blitzstrike: { command, args }
17706
17706
  };
17707
- writeFileSync9(p, JSON.stringify(existing, null, 2));
17707
+ writeFileSync10(p, JSON.stringify(existing, null, 2));
17708
17708
  };
17709
17709
  }
17710
17710
  function opencodeWrite(p) {
17711
17711
  return (command, args) => {
17712
17712
  const dir = dirname6(p);
17713
- if (!existsSync16(dir))
17714
- mkdirSync10(dir, { recursive: true });
17713
+ if (!existsSync17(dir))
17714
+ mkdirSync11(dir, { recursive: true });
17715
17715
  const existing = readJson(p) ?? {};
17716
17716
  existing.mcp = {
17717
17717
  ...existing.mcp ?? {},
17718
17718
  blitzstrike: { type: "local", command: [command, ...args], enabled: true }
17719
17719
  };
17720
- writeFileSync9(p, JSON.stringify(existing, null, 2));
17720
+ writeFileSync10(p, JSON.stringify(existing, null, 2));
17721
17721
  copyOpenCodeAgents();
17722
17722
  };
17723
17723
  }
17724
17724
  function copyOpenCodeAgents() {
17725
- const srcDir = join27(ROOT10, "opencode-agents");
17726
- const dstDir = join27(homedir11(), ".config", "opencode", "agents");
17727
- if (!existsSync16(srcDir))
17725
+ const srcDir = join28(ROOT10, "opencode-agents");
17726
+ const dstDir = join28(homedir11(), ".config", "opencode", "agents");
17727
+ if (!existsSync17(srcDir))
17728
17728
  return;
17729
- if (!existsSync16(dstDir))
17730
- mkdirSync10(dstDir, { recursive: true });
17729
+ if (!existsSync17(dstDir))
17730
+ mkdirSync11(dstDir, { recursive: true });
17731
17731
  for (const f of ["Blitz Strike.md", "Blitz.md", "Eagle Eye.md", "Strike.md"]) {
17732
- const src = join27(srcDir, f);
17733
- const dst = join27(dstDir, f);
17734
- if (existsSync16(src)) {
17735
- writeFileSync9(dst, readFileSync30(src, "utf8"));
17732
+ const src = join28(srcDir, f);
17733
+ const dst = join28(dstDir, f);
17734
+ if (existsSync17(src)) {
17735
+ writeFileSync10(dst, readFileSync30(src, "utf8"));
17736
17736
  }
17737
17737
  }
17738
17738
  }
17739
17739
  function codexWrite(p) {
17740
17740
  return (command, args) => {
17741
17741
  const dir = dirname6(p);
17742
- if (!existsSync16(dir))
17743
- mkdirSync10(dir, { recursive: true });
17744
- let existing = existsSync16(p) ? readFileSync30(p, "utf8") : "";
17742
+ if (!existsSync17(dir))
17743
+ mkdirSync11(dir, { recursive: true });
17744
+ let existing = existsSync17(p) ? readFileSync30(p, "utf8") : "";
17745
17745
  if (!existing.trimEnd().endsWith(`
17746
17746
  `))
17747
17747
  existing += `
@@ -17752,15 +17752,15 @@ function codexWrite(p) {
17752
17752
  command = "${command}"
17753
17753
  args = ${JSON.stringify(args)}
17754
17754
  `;
17755
- writeFileSync9(p, existing);
17755
+ writeFileSync10(p, existing);
17756
17756
  };
17757
17757
  }
17758
17758
  function hermesWrite(p) {
17759
17759
  return (command, args) => {
17760
17760
  const dir = dirname6(p);
17761
- if (!existsSync16(dir))
17762
- mkdirSync10(dir, { recursive: true });
17763
- let existing = existsSync16(p) ? readFileSync30(p, "utf8") : "";
17761
+ if (!existsSync17(dir))
17762
+ mkdirSync11(dir, { recursive: true });
17763
+ let existing = existsSync17(p) ? readFileSync30(p, "utf8") : "";
17764
17764
  existing = existing.replace(/^ blitzstrike:\n(?: .*\n?)*/m, "");
17765
17765
  if (!existing.trimEnd().endsWith(`
17766
17766
  `))
@@ -17781,80 +17781,80 @@ mcp_servers:
17781
17781
  args: ${JSON.stringify(args)}
17782
17782
  `;
17783
17783
  }
17784
- writeFileSync9(p, existing);
17784
+ writeFileSync10(p, existing);
17785
17785
  };
17786
17786
  }
17787
17787
  function detectAgents() {
17788
17788
  const home = homedir11();
17789
17789
  const agents = [];
17790
- const claudeJson = join27(home, ".claude.json");
17790
+ const claudeJson = join28(home, ".claude.json");
17791
17791
  agents.push({
17792
17792
  name: "Claude Code",
17793
17793
  detectPath: claudeJson,
17794
- installed: () => existsSync16(claudeJson) || which("claude"),
17794
+ installed: () => existsSync17(claudeJson) || which("claude"),
17795
17795
  write: jsonMcpServersWrite(claudeJson)
17796
17796
  });
17797
- const claudeDesktop = join27(home, ".config", "Claude", "claude_desktop_config.json");
17797
+ const claudeDesktop = join28(home, ".config", "Claude", "claude_desktop_config.json");
17798
17798
  agents.push({
17799
17799
  name: "Claude Desktop",
17800
17800
  detectPath: claudeDesktop,
17801
- installed: () => existsSync16(claudeDesktop),
17801
+ installed: () => existsSync17(claudeDesktop),
17802
17802
  write: jsonMcpServersWrite(claudeDesktop)
17803
17803
  });
17804
- const cursor = join27(home, ".cursor", "mcp.json");
17804
+ const cursor = join28(home, ".cursor", "mcp.json");
17805
17805
  agents.push({
17806
17806
  name: "Cursor",
17807
17807
  detectPath: cursor,
17808
- installed: () => existsSync16(join27(home, ".cursor")) || which("cursor"),
17808
+ installed: () => existsSync17(join28(home, ".cursor")) || which("cursor"),
17809
17809
  write: jsonMcpServersWrite(cursor)
17810
17810
  });
17811
- const opencode = join27(home, ".config", "opencode", "opencode.jsonc");
17811
+ const opencode = join28(home, ".config", "opencode", "opencode.jsonc");
17812
17812
  agents.push({
17813
17813
  name: "OpenCode",
17814
17814
  detectPath: opencode,
17815
- installed: () => existsSync16(join27(home, ".config", "opencode")) || which("opencode"),
17815
+ installed: () => existsSync17(join28(home, ".config", "opencode")) || which("opencode"),
17816
17816
  write: opencodeWrite(opencode)
17817
17817
  });
17818
- const codex = join27(home, ".codex", "config.toml");
17818
+ const codex = join28(home, ".codex", "config.toml");
17819
17819
  agents.push({
17820
17820
  name: "Codex",
17821
17821
  detectPath: codex,
17822
- installed: () => existsSync16(join27(home, ".codex")) || which("codex"),
17822
+ installed: () => existsSync17(join28(home, ".codex")) || which("codex"),
17823
17823
  write: codexWrite(codex)
17824
17824
  });
17825
- const hermes = join27(home, ".hermes", "config.yaml");
17825
+ const hermes = join28(home, ".hermes", "config.yaml");
17826
17826
  agents.push({
17827
17827
  name: "Hermes",
17828
17828
  detectPath: hermes,
17829
- installed: () => existsSync16(join27(home, ".hermes")) || which("hermes"),
17829
+ installed: () => existsSync17(join28(home, ".hermes")) || which("hermes"),
17830
17830
  write: hermesWrite(hermes)
17831
17831
  });
17832
- const gemini = join27(home, ".gemini", "settings.json");
17832
+ const gemini = join28(home, ".gemini", "settings.json");
17833
17833
  agents.push({
17834
17834
  name: "Gemini CLI",
17835
17835
  detectPath: gemini,
17836
- installed: () => existsSync16(join27(home, ".gemini")) || which("gemini"),
17836
+ installed: () => existsSync17(join28(home, ".gemini")) || which("gemini"),
17837
17837
  write: jsonMcpServersWrite(gemini)
17838
17838
  });
17839
- const windsurf = join27(home, ".codeium", "windsurf", "mcp_config.json");
17839
+ const windsurf = join28(home, ".codeium", "windsurf", "mcp_config.json");
17840
17840
  agents.push({
17841
17841
  name: "Windsurf",
17842
17842
  detectPath: windsurf,
17843
- installed: () => existsSync16(join27(home, ".codeium")) || which("windsurf"),
17843
+ installed: () => existsSync17(join28(home, ".codeium")) || which("windsurf"),
17844
17844
  write: jsonMcpServersWrite(windsurf)
17845
17845
  });
17846
- const copilot = join27(home, ".copilot", "mcp.json");
17846
+ const copilot = join28(home, ".copilot", "mcp.json");
17847
17847
  agents.push({
17848
17848
  name: "Copilot",
17849
17849
  detectPath: copilot,
17850
- installed: () => existsSync16(join27(home, ".copilot")),
17850
+ installed: () => existsSync17(join28(home, ".copilot")),
17851
17851
  write: jsonMcpServersWrite(copilot)
17852
17852
  });
17853
- const cline = join27(home, ".cline", "mcp_settings.json");
17853
+ const cline = join28(home, ".cline", "mcp_settings.json");
17854
17854
  agents.push({
17855
17855
  name: "Cline",
17856
17856
  detectPath: cline,
17857
- installed: () => existsSync16(join27(home, ".cline")),
17857
+ installed: () => existsSync17(join28(home, ".cline")),
17858
17858
  write: jsonMcpServersWrite(cline)
17859
17859
  });
17860
17860
  return agents;
@@ -17972,7 +17972,7 @@ var init_cli = __esm(() => {
17972
17972
  init_release();
17973
17973
  init_dependency();
17974
17974
  init_mcp_status();
17975
- ROOT10 = join27(fileURLToPath16(new URL(".", import.meta.url)), "..");
17975
+ ROOT10 = join28(fileURLToPath16(new URL(".", import.meta.url)), "..");
17976
17976
  });
17977
17977
 
17978
17978
  // node_modules/zod/v3/helpers/util.js
@@ -34453,6 +34453,16 @@ var ALIASES = {
34453
34453
  ssti: "ssti",
34454
34454
  "template injection": "ssti",
34455
34455
  "server side template injection": "ssti",
34456
+ "command injection": "command_injection",
34457
+ "os command injection": "command_injection",
34458
+ "command execution": "command_injection",
34459
+ "cmd injection": "command_injection",
34460
+ rce: "command_injection",
34461
+ "remote code execution": "command_injection",
34462
+ "code execution": "command_injection",
34463
+ "code injection": "command_injection",
34464
+ "eval injection": "command_injection",
34465
+ "arbitrary code execution": "command_injection",
34456
34466
  xxe: "xxe",
34457
34467
  "xml external entity": "xxe",
34458
34468
  "xxe injection": "xxe",
@@ -59026,6 +59036,7 @@ function hackbotArenaCoverage() {
59026
59036
  var VRT_MAP = {
59027
59037
  sql_injection: { vrt: "injection > sql_injection", priority: "P1", severity: "critical", rationale: "SQL injection reaches sensitive data or enables admin takeover." },
59028
59038
  ssti: { vrt: "injection > server_side_template_injection", priority: "P1", severity: "critical", rationale: "SSTI evaluates expressions server-side → code execution." },
59039
+ command_injection: { vrt: "injection > os_command_injection", priority: "P1", severity: "critical", rationale: "User input reaches a shell (system/exec/popen) → arbitrary command execution, full host takeover." },
59029
59040
  deserialization: { vrt: "injection > insecure_deserialization", priority: "P1", severity: "critical", rationale: "Deserialization escalated via a gadget chain → code execution." },
59030
59041
  xxe: { vrt: "injection > xml_external_entity", priority: "P1", severity: "critical", rationale: "XXE reads local files or reaches internal services." },
59031
59042
  file_upload: { vrt: "insecure_design > unrestricted_file_upload", priority: "P1", severity: "critical", rationale: "A web-reachable uploaded file of an executable type → code execution." },
@@ -60748,9 +60759,11 @@ contract ReentrantAttacker {
60748
60759
  assertFalse(ok, "call should fail");
60749
60760
  }`,
60750
60761
  unchecked_arithmetic: ` function testUncheckedArithmetic() public {
60762
+ uint256 before = target.counter();
60751
60763
  // trigger the wrap that the unchecked block allowed
60752
- vm.expectRevert(); // replace with a concrete overflow/underflow assertion
60753
60764
  target.triggerOverflow();
60765
+ // the bug is PRESENT when the value wrapped (became smaller):
60766
+ assertLt(target.counter(), before, "unchecked arithmetic wrapped");
60754
60767
  }`,
60755
60768
  tx_origin_auth: ` function testTxOriginAuth() public {
60756
60769
  // a malicious intermediary makes the victim (tx.origin) call the target
@@ -60769,13 +60782,13 @@ contract Phisher {
60769
60782
  // replay the same signature on a second chain / a second time
60770
60783
  (uint8 v, bytes32 r, bytes32 s) = vm.sign(attackerPk, digest);
60771
60784
  target.claim(attacker, 1 ether, deadline, v, r, s);
60772
- // replay it — should revert if nonce/chainId bound
60773
- vm.expectRevert();
60785
+ // the bug is PRESENT when the SAME signature replays (no nonce/chainId binding):
60774
60786
  target.claim(attacker, 1 ether, deadline, v, r, s);
60787
+ assertGt(target.balanceOf(attacker), 1 ether, "signature replayed");
60775
60788
  }`,
60776
60789
  unprotected_selfdestruct: ` function testUnprotectedSelfdestruct() public {
60777
60790
  vm.prank(attacker);
60778
- target.kill(); // should revert — only owner may selfdestruct
60791
+ target.kill(); // the bug is PRESENT when a non-owner can destroy it
60779
60792
  assertEq(address(target).code.length, 0, "contract destroyed by non-owner");
60780
60793
  }`,
60781
60794
  delegatecall_user_input: ` function testDelegatecallUserInput() public {
@@ -60783,8 +60796,9 @@ contract Phisher {
60783
60796
  Evil impl = new Evil();
60784
60797
  vm.prank(attacker);
60785
60798
  target.setImplementation(address(impl));
60786
- vm.expectRevert();
60799
+ // the bug is PRESENT when the attacker-supplied implementation actually ran:
60787
60800
  target.exec();
60801
+ assertEq(address(target).code.length, 0, "attacker implementation executed");
60788
60802
  }
60789
60803
  }
60790
60804
 
@@ -60793,13 +60807,16 @@ contract Evil {
60793
60807
  }`,
60794
60808
  missing_access_control: ` function testMissingAccessControl() public {
60795
60809
  vm.prank(attacker);
60796
- target.mint(attacker, 1_000_000 ether); // should require owner
60797
- assertEq(target.balanceOf(attacker), 0, "attacker minted without auth");
60810
+ target.mint(attacker, 1_000_000 ether); // no owner check
60811
+ // the bug is PRESENT when the attacker's mint actually lands:
60812
+ assertGt(target.balanceOf(attacker), 0, "attacker minted without auth");
60798
60813
  }`,
60799
60814
  timestamp_dependence: ` function testTimestampDependence() public {
60800
60815
  // warp the timestamp to a favorable value and observe the payout/randomness
60801
60816
  vm.warp(block.timestamp + 1000);
60802
60817
  target.resolve();
60818
+ // the bug is PRESENT when the timestamp change altered the outcome:
60819
+ assertTrue(/* favorable outcome observed */, "timestamp dependence exploited");
60803
60820
  }`,
60804
60821
  oracle_manipulation: ` function testOracleManipulation() public {
60805
60822
  // swap a large amount to move the spot price, then exploit the target
@@ -60820,10 +60837,9 @@ contract Evil {
60820
60837
  assertEq(a, b, "abi.encodePacked collision");
60821
60838
  }`,
60822
60839
  address_zero_check: ` function testAddressZeroCheck() public {
60823
- // assign the zero address as owner — should revert
60824
- vm.expectRevert();
60840
+ // the bug is PRESENT when the zero address is accepted as owner:
60825
60841
  target.setOwner(address(0));
60826
- assertTrue(target.owner() != address(0), "zero address became owner");
60842
+ assertEq(target.owner(), address(0), "zero address became owner");
60827
60843
  }`
60828
60844
  };
60829
60845
  return base + (exploit[cls] ?? exploit.missing_access_control) + `
@@ -61340,18 +61356,109 @@ function listPocTypes() {
61340
61356
  return Object.keys(POC_TEMPLATES).sort();
61341
61357
  }
61342
61358
 
61359
+ // src/foundry-run.ts
61360
+ import { execSync as execSync3 } from "node:child_process";
61361
+ import { mkdtempSync as mkdtempSync3, mkdirSync as mkdirSync9, writeFileSync as writeFileSync8, rmSync as rmSync4, existsSync as existsSync14 } from "node:fs";
61362
+ import { tmpdir as tmpdir4 } from "node:os";
61363
+ import { join as join23 } from "node:path";
61364
+ function findForge() {
61365
+ try {
61366
+ const p = execSync3("which forge 2>/dev/null", { encoding: "utf8", timeout: 3000 }).trim();
61367
+ if (p)
61368
+ return p;
61369
+ } catch {}
61370
+ const home = process.env.HOME ?? "/root";
61371
+ const candidates = [`${home}/.foundry/bin/forge`, "/usr/local/bin/forge", "/usr/bin/forge"];
61372
+ for (const c of candidates)
61373
+ if (existsSync14(c))
61374
+ return c;
61375
+ return null;
61376
+ }
61377
+ function runForge(forge, dir, timeoutMs) {
61378
+ try {
61379
+ const out = execSync3(`${forge} test -vv`, { cwd: dir, encoding: "utf8", timeout: timeoutMs, env: { ...process.env } });
61380
+ return { exit: 0, out };
61381
+ } catch (e) {
61382
+ return { exit: e.status ?? 1, out: (e.stdout ?? "") + (e.stderr ?? "") };
61383
+ }
61384
+ }
61385
+ function parseTestResults(out) {
61386
+ const results = [];
61387
+ for (const line of out.split(`
61388
+ `)) {
61389
+ const pass = line.match(/\[PASS\]\s+(\S+)/);
61390
+ const fail = line.match(/\[FAIL[^\]]*\]\s+(\S+)/);
61391
+ if (pass)
61392
+ results.push({ name: pass[1], status: "pass" });
61393
+ else if (fail)
61394
+ results.push({ name: fail[1], status: "fail" });
61395
+ }
61396
+ return results;
61397
+ }
61398
+ async function foundryRun(input) {
61399
+ const forge = findForge();
61400
+ const name = input.contract_name ?? "Vulnerable";
61401
+ if (!forge) {
61402
+ return {
61403
+ forge: null,
61404
+ result: "error",
61405
+ verdict: "forge not installed — run: curl -L https://foundry.paradigm.xyz | bash && foundryup",
61406
+ test_results: [],
61407
+ output: "forge binary not found on PATH or ~/.foundry/bin"
61408
+ };
61409
+ }
61410
+ const poc = input.poc_code ?? foundryPoc(input.class_ ?? "missing_access_control", name);
61411
+ const dir = mkdtempSync3(join23(tmpdir4(), "blitzstrike-foundry-"));
61412
+ try {
61413
+ try {
61414
+ execSync3(`${forge} init --force --no-git ${dir}`, { stdio: "ignore", timeout: 60000 });
61415
+ } catch {
61416
+ mkdirSync9(join23(dir, "src"), { recursive: true });
61417
+ mkdirSync9(join23(dir, "test"), { recursive: true });
61418
+ writeFileSync8(join23(dir, "foundry.toml"), `[profile.default]
61419
+ src = "src"
61420
+ out = "out"
61421
+ libs = ["lib"]
61422
+ solc = "0.8.20"
61423
+ `);
61424
+ }
61425
+ for (const f of ["Counter.sol", "Counter.t.sol", "Counter.s.sol"]) {
61426
+ for (const sub of ["src", "test", "script"]) {
61427
+ try {
61428
+ rmSync4(join23(dir, sub, f), { force: true });
61429
+ } catch {}
61430
+ }
61431
+ }
61432
+ writeFileSync8(join23(dir, "src", `${name}.sol`), input.contract_code);
61433
+ writeFileSync8(join23(dir, "test", `${name}.t.sol`), poc);
61434
+ const { out } = runForge(forge, dir, input.timeout_ms ?? 60000);
61435
+ const tests = parseTestResults(out);
61436
+ const anyFail = tests.some((t) => t.status === "fail");
61437
+ const result = tests.length === 0 ? "error" : !anyFail ? "pass" : "fail";
61438
+ return {
61439
+ forge,
61440
+ result,
61441
+ verdict: result === "pass" ? "PoC test PASSED — the exploit reproduced, the finding is PROVEN" : result === "fail" ? "PoC test did not fully pass — the exploit did NOT reproduce cleanly (review the test/fixture)" : "forge test errored — the project did not compile/run (see output)",
61442
+ test_results: tests,
61443
+ output: out.slice(-3000)
61444
+ };
61445
+ } finally {
61446
+ rmSync4(dir, { recursive: true, force: true });
61447
+ }
61448
+ }
61449
+
61343
61450
  // src/enterprise-benchmark.ts
61344
- import { existsSync as existsSync14, readFileSync as readFileSync25, readdirSync as readdirSync6, statSync as statSync3 } from "node:fs";
61345
- import { join as join23, resolve } from "node:path";
61451
+ import { existsSync as existsSync15, readFileSync as readFileSync25, readdirSync as readdirSync6, statSync as statSync3 } from "node:fs";
61452
+ import { join as join24, resolve } from "node:path";
61346
61453
  init_complex_bugs();
61347
61454
  var ROOT6 = resolve(process.cwd(), "bench", "enterprise");
61348
61455
  var ENTERPRISE_FIXTURES = [
61349
- { id: "php-laravel", dir: join23(ROOT6, "php-laravel"), expected_vulns: 4 },
61350
- { id: "js-express", dir: join23(ROOT6, "js-express"), expected_vulns: 2 },
61351
- { id: "py-django", dir: join23(ROOT6, "py-django"), expected_vulns: 2 },
61352
- { id: "java-spring", dir: join23(ROOT6, "java-spring"), expected_vulns: 2 },
61353
- { id: "wp-batch-route", dir: join23(ROOT6, "wp-batch-route"), expected_vulns: 3 },
61354
- { id: "php-complex", dir: join23(ROOT6, "php-complex"), expected_vulns: 4 }
61456
+ { id: "php-laravel", dir: join24(ROOT6, "php-laravel"), expected_vulns: 4 },
61457
+ { id: "js-express", dir: join24(ROOT6, "js-express"), expected_vulns: 2 },
61458
+ { id: "py-django", dir: join24(ROOT6, "py-django"), expected_vulns: 2 },
61459
+ { id: "java-spring", dir: join24(ROOT6, "java-spring"), expected_vulns: 2 },
61460
+ { id: "wp-batch-route", dir: join24(ROOT6, "wp-batch-route"), expected_vulns: 3 },
61461
+ { id: "php-complex", dir: join24(ROOT6, "php-complex"), expected_vulns: 4 }
61355
61462
  ];
61356
61463
  function sourceFiles(root) {
61357
61464
  const out = [];
@@ -61363,7 +61470,7 @@ function sourceFiles(root) {
61363
61470
  return;
61364
61471
  }
61365
61472
  for (const e of entries) {
61366
- const p = join23(dir, e);
61473
+ const p = join24(dir, e);
61367
61474
  let st;
61368
61475
  try {
61369
61476
  st = statSync3(p);
@@ -61402,7 +61509,7 @@ function detectFixture(dir) {
61402
61509
  function runEnterpriseBenchmark() {
61403
61510
  const fixtures = [];
61404
61511
  for (const fx of ENTERPRISE_FIXTURES) {
61405
- if (!existsSync14(fx.dir)) {
61512
+ if (!existsSync15(fx.dir)) {
61406
61513
  fixtures.push({ id: fx.id, available: false, detected: 0, expected: fx.expected_vulns, recall: 0 });
61407
61514
  continue;
61408
61515
  }
@@ -61597,7 +61704,7 @@ function createServer2() {
61597
61704
  ` + `- 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).
61598
61705
  ` + `- 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.
61599
61706
 
61600
- ` + "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().\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. 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 that PROVES the bug. A web3 hit is a HYPOTHESIS until the Foundry PoC reproduces it.\n" + `PRECISION ANALYSIS — chrome-devtools MCP is MANDATORY, not optional:
61707
+ ` + "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().\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. 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:
61601
61708
  ` + `- 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.
61602
61709
  ` + `- 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.
61603
61710
  ` + "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."
@@ -62579,6 +62686,18 @@ ${statusLine}` : statusLine },
62579
62686
  }, async ({ class_, contract }) => {
62580
62687
  return { content: [{ type: "text", text: foundryPoc(class_, contract ?? "Vulnerable") }] };
62581
62688
  });
62689
+ server.registerTool("foundry_run", {
62690
+ title: "Run a Foundry PoC test to PROVE a Web3 finding",
62691
+ description: "WEB3: actually execute a Foundry PoC test against a vulnerable contract. Pass the contract source + a PoC test (or a class to auto-generate it), and it scaffolds a temp Foundry project and runs `forge test`. A PASSING PoC test = the exploit reproduced = the finding is PROVEN (deterministic — the verdict is forge's own test result). Requires forge installed (curl -L https://foundry.paradigm.xyz | bash && foundryup).",
62692
+ inputSchema: {
62693
+ contract_code: string2().describe("The vulnerable Solidity contract source"),
62694
+ poc_code: string2().optional().describe("The Foundry PoC test (.t.sol); omit to auto-generate from class_"),
62695
+ class_: string2().optional().describe("Web3 finding class to auto-generate the PoC from (reentrancy, missing_access_control, …)"),
62696
+ contract_name: string2().optional().describe("Contract name for file naming (default 'Vulnerable')")
62697
+ }
62698
+ }, async ({ contract_code, poc_code, class_, contract_name }) => {
62699
+ return { content: [{ type: "text", text: JSON.stringify(await foundryRun({ contract_code, poc_code, class_, contract_name })) }] };
62700
+ });
62582
62701
  server.registerTool("kill_list", {
62583
62702
  title: "Always-rejected finding kill-list (pre-gate)",
62584
62703
  description: "Deterministic always-rejected check: pass a finding type (open_redirect, missing_headers, self_xss, graphql_introspection, ssrf_dns_only, …) to get rejected:true when it is a known weak class that must NOT be submitted standalone (chain it to real impact first). Omit the type to enumerate the full kill-list. Run this BEFORE submission_gate — it takes 30 seconds to kill a bad lead.",
@@ -63563,14 +63682,14 @@ async function serve() {
63563
63682
 
63564
63683
  // src/index.ts
63565
63684
  init_cli();
63566
- import { readFileSync as readFileSync31, existsSync as existsSync17 } from "node:fs";
63567
- import { join as join28 } from "node:path";
63685
+ import { readFileSync as readFileSync31, existsSync as existsSync18 } from "node:fs";
63686
+ import { join as join29 } from "node:path";
63568
63687
  import { fileURLToPath as fileURLToPath17 } from "node:url";
63569
- var ROOT11 = join28(fileURLToPath17(new URL(".", import.meta.url)), "..");
63688
+ var ROOT11 = join29(fileURLToPath17(new URL(".", import.meta.url)), "..");
63570
63689
  function readVersion() {
63571
63690
  try {
63572
- const p = join28(ROOT11, "package.json");
63573
- if (existsSync17(p))
63691
+ const p = join29(ROOT11, "package.json");
63692
+ if (existsSync18(p))
63574
63693
  return JSON.parse(readFileSync31(p, "utf8")).version ?? "1.0.0";
63575
63694
  } catch {}
63576
63695
  return "1.0.0";
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "blitzstrike-patterns-v1",
3
3
  "version": "1.1.0",
4
- "_comment": "Empirical grounding layer. Every detector type is traced to its real-world bug class (CWE), its real-world signature, the chains it composes into (cross-ref chains.json), citable references, per-class bypass techniques, and the high-value assets (crown jewels) that class typically hits. Detection is derived from this data, never hardcoded. References are public standards (CWE/OWASP) and disclosed-report classes — no vendor/product framing.",
4
+ "_comment": "Empirical grounding layer. Every detector type is traced to its real-world bug class (CWE), its real-world signature, the chains it composes into (cross-ref chains.json), citable references, per-class bypass techniques, and the high-value assets (crown jewels) that class typically hits. Detection is derived from this data, never hardcoded. References are public standards (CWE/OWASP) and disclosed-report classes \u2014 no vendor/product framing.",
5
5
  "patterns": [
6
6
  {
7
7
  "id": "sql_injection",
@@ -38,7 +38,7 @@
38
38
  ],
39
39
  "payout_min": 1000,
40
40
  "payout_max": 15000,
41
- "typical_payout": "$1K–$15K"
41
+ "typical_payout": "$1K\u2013$15K"
42
42
  },
43
43
  {
44
44
  "id": "ssrf",
@@ -73,13 +73,13 @@
73
73
  ],
74
74
  "payout_min": 1000,
75
75
  "payout_max": 15000,
76
- "typical_payout": "$1K–$15K"
76
+ "typical_payout": "$1K\u2013$15K"
77
77
  },
78
78
  {
79
79
  "id": "ssti",
80
80
  "name": "Server-Side Template Injection",
81
81
  "cwe": "CWE-1336",
82
- "real_world": "User input reaches a template engine (Jinja2, Twig, Freemarker, ERB, …) that evaluates expressions, yielding code execution via template syntax like {{7*7}}.",
82
+ "real_world": "User input reaches a template engine (Jinja2, Twig, Freemarker, ERB, \u2026) that evaluates expressions, yielding code execution via template syntax like {{7*7}}.",
83
83
  "detection_signatures": [
84
84
  "template render of request input",
85
85
  "expression evaluation in a template engine"
@@ -96,7 +96,7 @@
96
96
  "sandbox escape via attribute/object introspection",
97
97
  "unicode/alternate delimiter to dodge input filters",
98
98
  "chaining globals/locals to reach builtins",
99
- "engine-specific escapes (Jinja2 → Python, Twig → PHP)"
99
+ "engine-specific escapes (Jinja2 \u2192 Python, Twig \u2192 PHP)"
100
100
  ],
101
101
  "crown_jewels": [
102
102
  "direct RCE",
@@ -105,7 +105,7 @@
105
105
  ],
106
106
  "payout_min": 2000,
107
107
  "payout_max": 10000,
108
- "typical_payout": "$2K–$10K"
108
+ "typical_payout": "$2K\u2013$10K"
109
109
  },
110
110
  {
111
111
  "id": "xxe",
@@ -136,7 +136,7 @@
136
136
  ],
137
137
  "payout_min": 1000,
138
138
  "payout_max": 10000,
139
- "typical_payout": "$1K–$10K"
139
+ "typical_payout": "$1K\u2013$10K"
140
140
  },
141
141
  {
142
142
  "id": "deserialization",
@@ -169,7 +169,7 @@
169
169
  ],
170
170
  "payout_min": 5000,
171
171
  "payout_max": 30000,
172
- "typical_payout": "$5K–$30K"
172
+ "typical_payout": "$5K\u2013$30K"
173
173
  },
174
174
  {
175
175
  "id": "type_juggling",
@@ -188,7 +188,7 @@
188
188
  "OWASP A07:2021 Identification and Authentication Failures"
189
189
  ],
190
190
  "bypass_techniques": [
191
- "0e magic hashes (0e1234… == 0e5678…)",
191
+ "0e magic hashes (0e1234\u2026 == 0e5678\u2026)",
192
192
  "numeric-string coercion (\"1admin\" == 1)",
193
193
  "array comparison (array() == false)",
194
194
  "null/empty-string coercion"
@@ -200,7 +200,7 @@
200
200
  ],
201
201
  "payout_min": 500,
202
202
  "payout_max": 5000,
203
- "typical_payout": "$500–$5K"
203
+ "typical_payout": "$500\u2013$5K"
204
204
  },
205
205
  {
206
206
  "id": "mass_assignment",
@@ -232,7 +232,7 @@
232
232
  ],
233
233
  "payout_min": 500,
234
234
  "payout_max": 5000,
235
- "typical_payout": "$500–$5K"
235
+ "typical_payout": "$500\u2013$5K"
236
236
  },
237
237
  {
238
238
  "id": "prototype_pollution",
@@ -262,7 +262,7 @@
262
262
  ],
263
263
  "payout_min": 1000,
264
264
  "payout_max": 10000,
265
- "typical_payout": "$1K–$10K"
265
+ "typical_payout": "$1K\u2013$10K"
266
266
  },
267
267
  {
268
268
  "id": "crlf_injection",
@@ -286,13 +286,13 @@
286
286
  "header smuggling via folded headers"
287
287
  ],
288
288
  "crown_jewels": [
289
- "Set-Cookie injection → session fixation",
290
- "response splitting → XSS",
291
- "cache poisoning → stored XSS"
289
+ "Set-Cookie injection \u2192 session fixation",
290
+ "response splitting \u2192 XSS",
291
+ "cache poisoning \u2192 stored XSS"
292
292
  ],
293
293
  "payout_min": 300,
294
294
  "payout_max": 3000,
295
- "typical_payout": "$300–$3K"
295
+ "typical_payout": "$300\u2013$3K"
296
296
  },
297
297
  {
298
298
  "id": "path_confusion",
@@ -327,7 +327,7 @@
327
327
  ],
328
328
  "payout_min": 1000,
329
329
  "payout_max": 10000,
330
- "typical_payout": "$1K–$10K"
330
+ "typical_payout": "$1K\u2013$10K"
331
331
  },
332
332
  {
333
333
  "id": "wrong_sanitizer",
@@ -355,7 +355,7 @@
355
355
  ],
356
356
  "payout_min": 300,
357
357
  "payout_max": 3000,
358
- "typical_payout": "$300–$3K"
358
+ "typical_payout": "$300\u2013$3K"
359
359
  },
360
360
  {
361
361
  "id": "missing_authz",
@@ -388,7 +388,7 @@
388
388
  ],
389
389
  "payout_min": 1000,
390
390
  "payout_max": 10000,
391
- "typical_payout": "$1K–$10K",
391
+ "typical_payout": "$1K\u2013$10K",
392
392
  "validation": [
393
393
  "Two-account test: attacker account A reads victim account B's object (A's token + B's id -> B's data). A single self-account test does not prove IDOR."
394
394
  ]
@@ -421,7 +421,7 @@
421
421
  ],
422
422
  "payout_min": 300,
423
423
  "payout_max": 3000,
424
- "typical_payout": "$300–$3K"
424
+ "typical_payout": "$300\u2013$3K"
425
425
  },
426
426
  {
427
427
  "id": "file_upload",
@@ -455,7 +455,7 @@
455
455
  ],
456
456
  "payout_min": 500,
457
457
  "payout_max": 10000,
458
- "typical_payout": "$500–$10K"
458
+ "typical_payout": "$500\u2013$10K"
459
459
  },
460
460
  {
461
461
  "id": "priv_esc",
@@ -487,7 +487,7 @@
487
487
  ],
488
488
  "payout_min": 1000,
489
489
  "payout_max": 10000,
490
- "typical_payout": "$1K–$10K"
490
+ "typical_payout": "$1K\u2013$10K"
491
491
  },
492
492
  {
493
493
  "id": "hardcoded_secret",
@@ -496,7 +496,7 @@
496
496
  "real_world": "A secret (API key, database password, access token, private key) is committed in source, exposing it to anyone with repo access. Real disclosures regularly turn a leaked key into account takeover or cloud compromise.",
497
497
  "detection_signatures": [
498
498
  "secret field assigned a literal",
499
- "known secret format (JWT/AWS/GitHub/Slack/…) in source",
499
+ "known secret format (JWT/AWS/GitHub/Slack/\u2026) in source",
500
500
  "high-entropy token under a non-obvious name"
501
501
  ],
502
502
  "chain_templates": [
@@ -522,7 +522,7 @@
522
522
  ],
523
523
  "payout_min": 500,
524
524
  "payout_max": 10000,
525
- "typical_payout": "$500–$10K"
525
+ "typical_payout": "$500\u2013$10K"
526
526
  },
527
527
  {
528
528
  "id": "llm_injection",
@@ -551,13 +551,13 @@
551
551
  "privileged actions (email/send/pay) gated on model output"
552
552
  ],
553
553
  "validation": [
554
- "RUN-TWICE RULE — the extraction/injection must reproduce token-for-token across two fresh sessions (filter out model confabulation)",
555
- "NON-GUESSABLE ANCHOR — it must leak an actual verifiable internal key, endpoint URL, or cross-tenant data, not a plausible guess",
556
- "OOB PROOF — tool-use or markdown exfiltration must produce a verifiable callback log on your listener"
554
+ "RUN-TWICE RULE \u2014 the extraction/injection must reproduce token-for-token across two fresh sessions (filter out model confabulation)",
555
+ "NON-GUESSABLE ANCHOR \u2014 it must leak an actual verifiable internal key, endpoint URL, or cross-tenant data, not a plausible guess",
556
+ "OOB PROOF \u2014 tool-use or markdown exfiltration must produce a verifiable callback log on your listener"
557
557
  ],
558
558
  "payout_min": 500,
559
559
  "payout_max": 10000,
560
- "typical_payout": "$500–$10K"
560
+ "typical_payout": "$500\u2013$10K"
561
561
  },
562
562
  {
563
563
  "id": "graphql_exposure",
@@ -587,7 +587,7 @@
587
587
  ],
588
588
  "payout_min": 500,
589
589
  "payout_max": 5000,
590
- "typical_payout": "$500–$5K"
590
+ "typical_payout": "$500\u2013$5K"
591
591
  },
592
592
  {
593
593
  "id": "oauth_misconfig",
@@ -619,7 +619,7 @@
619
619
  ],
620
620
  "payout_min": 500,
621
621
  "payout_max": 5000,
622
- "typical_payout": "$500–$5K"
622
+ "typical_payout": "$500\u2013$5K"
623
623
  },
624
624
  {
625
625
  "id": "grpc_reflection",
@@ -645,7 +645,7 @@
645
645
  ],
646
646
  "payout_min": 200,
647
647
  "payout_max": 2000,
648
- "typical_payout": "$200–$2K"
648
+ "typical_payout": "$200\u2013$2K"
649
649
  },
650
650
  {
651
651
  "id": "dependency_confusion",
@@ -674,12 +674,12 @@
674
674
  ],
675
675
  "payout_min": 1000,
676
676
  "payout_max": 20000,
677
- "typical_payout": "$1K–$20K"
677
+ "typical_payout": "$1K\u2013$20K"
678
678
  },
679
679
  {
680
680
  "id": "ml_supply_chain",
681
681
  "cwe": "CWE-502",
682
- "real_world": "A poisoned model file (pickle) hosted at a URL or uploaded by a user is loaded via torch.load/joblib.load without the safe flag → arbitrary code execution on load.",
682
+ "real_world": "A poisoned model file (pickle) hosted at a URL or uploaded by a user is loaded via torch.load/joblib.load without the safe flag \u2192 arbitrary code execution on load.",
683
683
  "detection_signatures": [
684
684
  "torch.load(...) without weights_only=True",
685
685
  "joblib.load(...) / keras.models.load_model(...) / np.load(...allow_pickle=True) on an untrusted path/URL"
@@ -702,7 +702,7 @@
702
702
  ],
703
703
  "payout_min": 1000,
704
704
  "payout_max": 20000,
705
- "typical_payout": "$1K–$20K"
705
+ "typical_payout": "$1K\u2013$20K"
706
706
  },
707
707
  {
708
708
  "id": "rust_unsafe",
@@ -720,7 +720,7 @@
720
720
  "CWE-119",
721
721
  "CWE-787",
722
722
  "CWE-416",
723
- "Rust Foundation — Unsafe Rust in the Wild",
723
+ "Rust Foundation \u2014 Unsafe Rust in the Wild",
724
724
  "guardsarm/rust-memory-safety-examples",
725
725
  "doc.rust-lang.org/rustc/exploit-mitigations.html"
726
726
  ],
@@ -737,12 +737,12 @@
737
737
  ],
738
738
  "payout_min": 500,
739
739
  "payout_max": 10000,
740
- "typical_payout": "$500–$10K"
740
+ "typical_payout": "$500\u2013$10K"
741
741
  },
742
742
  {
743
743
  "id": "rust_format_string",
744
744
  "cwe": "CWE-134",
745
- "real_world": "A server logs or prints a user-supplied string as the format argument — println!(user_input) — so the attacker's format specifiers (positional args, width/precision) read or corrupt memory.",
745
+ "real_world": "A server logs or prints a user-supplied string as the format argument \u2014 println!(user_input) \u2014 so the attacker's format specifiers (positional args, width/precision) read or corrupt memory.",
746
746
  "detection_signatures": [
747
747
  "format!(var) / println!(var) / print!(var) / eprintln!(var) with a VARIABLE as the format string (not a literal)"
748
748
  ],
@@ -751,7 +751,7 @@
751
751
  "CWE-134",
752
752
  "OWASP WSTG-INPV-13 Format String Injection",
753
753
  "yevh/rust-security-handbook (injection attack prevention)",
754
- "StackHawk — Rust command injection examples"
754
+ "StackHawk \u2014 Rust command injection examples"
755
755
  ],
756
756
  "bypass_techniques": [
757
757
  "width/precision specifiers to read past the intended argument",
@@ -765,7 +765,7 @@
765
765
  ],
766
766
  "payout_min": 500,
767
767
  "payout_max": 5000,
768
- "typical_payout": "$500–$5K"
768
+ "typical_payout": "$500\u2013$5K"
769
769
  },
770
770
  {
771
771
  "id": "jwt_alg_confusion",
@@ -802,7 +802,7 @@
802
802
  ],
803
803
  "payout_min": 1000,
804
804
  "payout_max": 10000,
805
- "typical_payout": "$1K–$10K"
805
+ "typical_payout": "$1K\u2013$10K"
806
806
  },
807
807
  {
808
808
  "id": "cache_deception",
@@ -815,7 +815,7 @@
815
815
  ],
816
816
  "references": [
817
817
  "CWE-525",
818
- "Omer Gil — Web Cache Deception Attack",
818
+ "Omer Gil \u2014 Web Cache Deception Attack",
819
819
  "OWASP WSTG-ATHN-03"
820
820
  ],
821
821
  "real_world": "A reverse proxy caches static-extension URLs (.css/.js/.png) with a cache key that omits the session cookie, while a backend route (often a greedy regex like /account(/.*)?) serves per-session private data for those URLs. An attacker submits a victim-visited URL, the bot's private response is cached, then re-fetched anonymously.",
@@ -839,7 +839,7 @@
839
839
  ],
840
840
  "payout_min": 1000,
841
841
  "payout_max": 10000,
842
- "typical_payout": "$1K–$10K"
842
+ "typical_payout": "$1K\u2013$10K"
843
843
  },
844
844
  {
845
845
  "id": "cors_misconfiguration",
@@ -854,7 +854,7 @@
854
854
  "references": [
855
855
  "CWE-942",
856
856
  "OWASP WSTG-CLNT-01",
857
- "PortSwigger — CORS vulnerability with basic origin reflection"
857
+ "PortSwigger \u2014 CORS vulnerability with basic origin reflection"
858
858
  ],
859
859
  "real_world": "A server echoes the request Origin header into Access-Control-Allow-Origin while also sending Access-Control-Allow-Credentials: true. Any website the victim visits can then make credentialed requests and read the victim's authenticated responses cross-origin (session theft, account data exfil).",
860
860
  "detection_signatures": [
@@ -878,7 +878,7 @@
878
878
  ],
879
879
  "payout_min": 500,
880
880
  "payout_max": 5000,
881
- "typical_payout": "$500–$5K"
881
+ "typical_payout": "$500\u2013$5K"
882
882
  },
883
883
  {
884
884
  "id": "xss",
@@ -892,7 +892,7 @@
892
892
  "references": [
893
893
  "CWE-79",
894
894
  "OWASP WSTG-INPV-02",
895
- "PortSwigger — DOM-based XSS"
895
+ "PortSwigger \u2014 DOM-based XSS"
896
896
  ],
897
897
  "real_world": "A DOM sink (innerHTML, document.write, dangerouslySetInnerHTML, jQuery .html(), eval) is fed user-controlled input without sanitization/encoding. The injected script runs in the victim's origin, stealing cookies, hijacking the session, or exfiltrating data.",
898
898
  "detection_signatures": [
@@ -915,14 +915,14 @@
915
915
  ],
916
916
  "payout_min": 500,
917
917
  "payout_max": 5000,
918
- "typical_payout": "$500–$5K"
918
+ "typical_payout": "$500\u2013$5K"
919
919
  },
920
920
  {
921
921
  "id": "subdomain_takeover",
922
922
  "name": "Subdomain Takeover",
923
923
  "cwe": "CWE-404",
924
924
  "severity": "high",
925
- "signature": "a DNS CNAME/AliasTarget points at a service that can be claimed by an attacker (GitHub Pages/S3/Heroku/…)",
925
+ "signature": "a DNS CNAME/AliasTarget points at a service that can be claimed by an attacker (GitHub Pages/S3/Heroku/\u2026)",
926
926
  "chains": [
927
927
  "subdomain_takeover",
928
928
  "subdomain_takeover_to_cookie_theft"
@@ -932,9 +932,9 @@
932
932
  "OWASP WSTG-CONFIG-10",
933
933
  "Can I Take Over XYZ (EdOverflow)"
934
934
  ],
935
- "real_world": "A dangling DNS record (CNAME/AliasTarget) points to a service the org no longer owns (e.g. a deleted GitHub Pages repo, S3 bucket, or Heroku app). An attacker re-registers that name and serves arbitrary content from the victim's subdomain — phishing, cookie theft via a parent-domain cookie, and same-origin attacks.",
935
+ "real_world": "A dangling DNS record (CNAME/AliasTarget) points to a service the org no longer owns (e.g. a deleted GitHub Pages repo, S3 bucket, or Heroku app). An attacker re-registers that name and serves arbitrary content from the victim's subdomain \u2014 phishing, cookie theft via a parent-domain cookie, and same-origin attacks.",
936
936
  "detection_signatures": [
937
- "CNAME/AliasTarget/DNSName -> *.github.io / *.herokuapp.com / *.amazonaws.com / …",
937
+ "CNAME/AliasTarget/DNSName -> *.github.io / *.herokuapp.com / *.amazonaws.com / \u2026",
938
938
  "aws_route53_record type=CNAME with an unclaimed service target"
939
939
  ],
940
940
  "chain_templates": [
@@ -952,7 +952,42 @@
952
952
  ],
953
953
  "payout_min": 500,
954
954
  "payout_max": 5000,
955
- "typical_payout": "$500–$5K"
955
+ "typical_payout": "$500\u2013$5K"
956
+ },
957
+ {
958
+ "id": "command_injection",
959
+ "name": "OS Command Injection",
960
+ "cwe": "CWE-78",
961
+ "real_world": "User input is interpolated into a shell command (system/exec/popen/subprocess) without argument escaping. Attackers append ; | && $(...) to run arbitrary commands, from id/whoami probes to full reverse shells.",
962
+ "detection_signatures": [
963
+ "raw input concatenated into a shell/exec sink",
964
+ "no escapeshellarg / argument-array / shlex.quote",
965
+ "user-controlled parameter into os.system / subprocess / exec"
966
+ ],
967
+ "chain_templates": [
968
+ "command_injection_os_cmd"
969
+ ],
970
+ "references": [
971
+ "CWE-78",
972
+ "OWASP A03:2021 Injection"
973
+ ],
974
+ "bypass_techniques": [
975
+ "command separators ; | && || for chained commands",
976
+ "$(...) and backtick substitution to bypass keyword filters",
977
+ "newline / IFS-based argument splitting",
978
+ "URL + hex encoding of payloads",
979
+ "base64-encode the payload, then decode + execute"
980
+ ],
981
+ "crown_jewels": [
982
+ "shell access (reverse shell / bind shell)",
983
+ "credential files (config, .env, id_rsa)",
984
+ "database dumps",
985
+ "internal network pivoting"
986
+ ],
987
+ "severity": "critical",
988
+ "payout_min": 1000,
989
+ "payout_max": 15000,
990
+ "typical_payout": "$1K\u2013$15K"
956
991
  }
957
992
  ]
958
993
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blitzstrike",
3
- "version": "2.4.90",
3
+ "version": "2.4.92",
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": {