blitzstrike 2.4.63 → 2.4.65

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,37 @@ 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.65] — 2026-09-14
9
+
10
+ ### Added — Synonym resolution + LLM-injection validation SOP
11
+
12
+ - New `src/synonyms.ts` — a data-driven alias map resolving free-form vuln
13
+ terminology (IDOR/BOLA/broken-object → missing_authz, CSRF/XSRF → missing_nonce,
14
+ SQLi, path-traversal/LFI, prompt-injection/LLM01 → llm_injection, …) to the
15
+ canonical detector id. `pattern_lookup` now accepts free-form terms, and a new
16
+ `synonym_lookup` MCP tool lists every alias that resolves to a class.
17
+ - `llm_injection` now carries a validation SOP (a `validation` field in its
18
+ pattern): the RUN-TWICE RULE (reproduce token-for-token across two fresh
19
+ sessions), NON-GUESSABLE ANCHOR (must leak a real key/URL, not a plausible
20
+ guess), and OOB PROOF (verifiable callback log) — so an LLM finding is verified
21
+ the same way as any other, not just flagged.
22
+
23
+ ## [2.4.64] — 2026-09-14
24
+
25
+ ### Added — 47-pattern secret format taxonomy (severity + category)
26
+
27
+ - Expanded `SECRET_FORMATS` from ~12 to 47 known secret formats, each now carrying
28
+ a severity (critical/high/medium/low) + category (aws, gcp, github, stripe, slack,
29
+ email_svc, twilio, paas, firebase, jwt, bearer, basic_auth, private_key, generic,
30
+ ai_api, infra_api, package_registry, saas_api, observability, tunneling, bot_token).
31
+ - New formats: AWS session tokens, GCP service accounts, GitHub OAuth/server-to-server,
32
+ Stripe live/test/publishable, Slack webhooks, Heroku, Firebase, bearer/basic-auth,
33
+ RSA/EC/OpenSSH private keys, Anthropic/OpenAI/HuggingFace, Cloudflare/DigitalOcean,
34
+ npm/PyPI/Docker, Atlassian/Linear, NewRelic/Datadog/Sentry, ngrok, Discord/Telegram.
35
+ - `detectHardcodedSecret` Tier 2 now reports the format's own severity + category,
36
+ so a hardcoded secret hit is classified (e.g. Stripe live = critical, Stripe test
37
+ = low) instead of uniformly "high". Redaction patterns expanded to match.
38
+
8
39
  ## [2.4.63] — 2026-09-14
9
40
 
10
41
  ### Added — Variant corpus + detector coverage sweep (data-driven scaling)
package/dist/index.js CHANGED
@@ -7409,18 +7409,53 @@ function redactSecrets(text) {
7409
7409
  var SECRET_FIELDS = "api[_-]?key|apikey|api[_-]?secret|access[_-]?key|access[_-]?token|secret[_-]?key|secret[_-]?access[_-]?key|auth[_-]?token|client[_-]?secret|consumer[_-]?secret|consumer[_-]?key|private[_-]?key|db[_-]?password|database[_-]?password|db[_-]?pass|passwd|password|jwt[_-]?secret|encryption[_-]?key|encryption[_-]?password|github[_-]?token|gitlab[_-]?token|stripe[_-]?key|sendgrid[_-]?api[_-]?key|datadog[_-]?api[_-]?key|cloudflare[_-]?api[_-]?key|slack[_-]?token|aws[_-]?access[_-]?key[_-]?id|aws[_-]?secret[_-]?access[_-]?key|aws[_-]?session[_-]?token|bot[_-]?token", SECRET_FORMATS, REDACTION_PATTERNS;
7410
7410
  var init_secrets = __esm(() => {
7411
7411
  SECRET_FORMATS = [
7412
- { name: "JWT", re: /\beyJ[A-Za-z0-9_-]{8,}\.[A-Za-z0-9_-]{8,}\.[A-Za-z0-9_-]{4,}/g },
7413
- { name: "AWS access key", re: /\bAKIA[0-9A-Z]{16}\b/g },
7414
- { name: "GitHub PAT (classic)", re: /\bghp_[A-Za-z0-9]{20,}\b/g },
7415
- { name: "GitHub PAT (fine-grained)", re: /\bgithub_pat_[A-Za-z0-9_]{20,}\b/g },
7416
- { name: "OpenAI/Stripe key", re: /\bsk-[A-Za-z0-9]{20,}\b/g },
7417
- { name: "Stripe live/test key", re: /\b(?:sk|pk|rk)_(?:live|test)_[0-9a-zA-Z]{10,}\b/g },
7418
- { name: "Slack token", re: /\bxox[baprs]-[A-Za-z0-9-]{10,}\b/g },
7419
- { name: "Google API key", re: /\bAIza[0-9A-Za-z_-]{35}\b/g },
7420
- { name: "Twilio account SID", re: /\bAC[0-9a-f]{32}\b/g },
7421
- { name: "SendGrid API key", re: /\bSG\.[A-Za-z0-9_-]{16,}\.[A-Za-z0-9_-]{16,}\b/g },
7422
- { name: "Mailgun API key", re: /\bkey-[0-9a-zA-Z]{32}\b/g },
7423
- { name: "PEM private key", re: /-----BEGIN [A-Z ]*PRIVATE KEY-----/g }
7412
+ { name: "AWS access key ID", re: /\bAKIA[0-9A-Z]{16}\b/g, severity: "critical", category: "aws" },
7413
+ { name: "AWS session token (temporary)", re: /\bASIA[0-9A-Z]{16}\b/g, severity: "critical", category: "aws" },
7414
+ { name: "AWS secret access key", re: /aws[_-]?secret[_-]?access[_-]?key['"\s:=]+([A-Za-z0-9/+=]{40})/gi, severity: "critical", category: "aws" },
7415
+ { name: "GCP service account key", re: /"type"\s*:\s*"service_account"/g, severity: "critical", category: "gcp" },
7416
+ { name: "Google API key", re: /\bAIza[0-9A-Za-z_-]{35}\b/g, severity: "high", category: "gcp" },
7417
+ { name: "GitHub PAT (classic)", re: /\bghp_[A-Za-z0-9]{20,}\b/g, severity: "critical", category: "github" },
7418
+ { name: "GitHub PAT (fine-grained)", re: /\bgithub_pat_[A-Za-z0-9_]{20,}\b/g, severity: "critical", category: "github" },
7419
+ { name: "GitHub OAuth token", re: /\bgho_[A-Za-z0-9]{20,}\b/g, severity: "high", category: "github" },
7420
+ { name: "GitHub server-to-server token", re: /\bgh[usr]_[A-Za-z0-9]{20,}\b/g, severity: "high", category: "github" },
7421
+ { name: "Stripe live key", re: /\bsk_live_[0-9A-Za-z]{16,}\b/g, severity: "critical", category: "stripe" },
7422
+ { name: "Stripe test key", re: /\bsk_test_[0-9A-Za-z]{16,}\b/g, severity: "low", category: "stripe" },
7423
+ { name: "Stripe publishable key", re: /\bpk_(?:live|test)_[0-9A-Za-z]{16,}\b/g, severity: "low", category: "stripe" },
7424
+ { name: "Slack token", re: /\bxox[baprs]-[A-Za-z0-9-]{10,}\b/g, severity: "high", category: "slack" },
7425
+ { name: "Slack webhook URL", re: /https:\/\/hooks\.slack\.com\/services\/T[A-Z0-9]+\/B[A-Z0-9]+\/[A-Za-z0-9]+/g, severity: "medium", category: "slack" },
7426
+ { name: "SendGrid API key", re: /\bSG\.[A-Za-z0-9_-]{16,}\.[A-Za-z0-9_-]{16,}\b/g, severity: "high", category: "email_svc" },
7427
+ { name: "Mailgun API key", re: /\bkey-[0-9a-zA-Z]{32}\b/g, severity: "high", category: "email_svc" },
7428
+ { name: "Twilio API key", re: /\bSK[0-9a-fA-F]{32}\b/g, severity: "high", category: "twilio" },
7429
+ { name: "Twilio account SID", re: /\bAC[0-9a-f]{32}\b/g, severity: "medium", category: "twilio" },
7430
+ { name: "Twilio auth token", re: /twilio(.{0,20})?(auth|token)['"=: ]+([a-f0-9]{32})/gi, severity: "high", category: "twilio" },
7431
+ { name: "Heroku API key", re: /heroku(.{0,20})?api['"=: ]+([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})/gi, severity: "medium", category: "paas" },
7432
+ { name: "Firebase URL", re: /\bhttps?:\/\/[a-z0-9-]+\.firebaseio\.com\b/g, severity: "low", category: "firebase" },
7433
+ { name: "JWT", re: /\beyJ[A-Za-z0-9_-]{8,}\.[A-Za-z0-9_-]{8,}\.[A-Za-z0-9_-]{4,}/g, severity: "medium", category: "jwt" },
7434
+ { name: "Bearer token", re: /authorization['"=: ]+bearer\s+[A-Za-z0-9._-]{20,}/gi, severity: "medium", category: "bearer" },
7435
+ { name: "Basic auth URL", re: /https?:\/\/[^/\s:@]+:[^/\s:@]+@[^/\s]+/g, severity: "medium", category: "basic_auth" },
7436
+ { name: "RSA private key", re: /-----BEGIN RSA PRIVATE KEY-----/g, severity: "critical", category: "private_key" },
7437
+ { name: "EC private key", re: /-----BEGIN EC PRIVATE KEY-----/g, severity: "critical", category: "private_key" },
7438
+ { name: "OpenSSH private key", re: /-----BEGIN OPENSSH PRIVATE KEY-----/g, severity: "critical", category: "private_key" },
7439
+ { name: "Generic private key", re: /-----BEGIN (DSA |PGP |)PRIVATE KEY-----/g, severity: "critical", category: "private_key" },
7440
+ { name: "Generic API key / token", re: /(?:api[_-]?key|apikey|api_secret|access_token|secret[_-]?token)['"\s:=]+["']([A-Za-z0-9+/=_-]{24,})["']/gi, severity: "medium", category: "generic" },
7441
+ { name: "Anthropic API key", re: /\bsk-ant-(?:api03|admin01)-[A-Za-z0-9_-]{20,}\b/g, severity: "critical", category: "ai_api" },
7442
+ { name: "OpenAI API key (legacy)", re: /\bsk-[A-Za-z0-9]{20}T3BlbkFJ[A-Za-z0-9]{20}\b/g, severity: "critical", category: "ai_api" },
7443
+ { name: "OpenAI project key", re: /\bsk-proj-[A-Za-z0-9_-]{20,}T3BlbkFJ[A-Za-z0-9_-]{20,}\b/g, severity: "critical", category: "ai_api" },
7444
+ { name: "OpenAI session token", re: /\bsess-[A-Za-z0-9]{40}\b/g, severity: "high", category: "ai_api" },
7445
+ { name: "Hugging Face token", re: /\bhf_[A-Za-z0-9]{30,}\b/g, severity: "high", category: "ai_api" },
7446
+ { name: "Cloudflare API key", re: /cf[_-]?api[_-]?key['"\s:=]+([a-f0-9]{37})/gi, severity: "critical", category: "infra_api" },
7447
+ { name: "DigitalOcean token", re: /\bdop_v1_[a-f0-9]{64}\b/g, severity: "high", category: "infra_api" },
7448
+ { name: "npm token", re: /\bnpm_[A-Za-z0-9]{36}\b/g, severity: "high", category: "package_registry" },
7449
+ { name: "PyPI token", re: /\bpypi-AgENdGV[A-Za-z0-9_-]+\b/g, severity: "high", category: "package_registry" },
7450
+ { name: "Docker Hub PAT", re: /\bdckr_pat_[A-Za-z0-9_-]{27,}\b/g, severity: "high", category: "package_registry" },
7451
+ { name: "Atlassian API token", re: /\bATATT3xFfGF0[A-Za-z0-9_-]{20,}\b/g, severity: "high", category: "saas_api" },
7452
+ { name: "Linear API key", re: /\blin_api_[A-Za-z0-9]{40}\b/g, severity: "medium", category: "saas_api" },
7453
+ { name: "New Relic license key", re: /\b(?:NRAA|NRAK|NRBR)-[A-F0-9]{27}\b/g, severity: "medium", category: "observability" },
7454
+ { name: "Datadog API key", re: /dd[_-]?api[_-]?key['"\s:=]+([a-f0-9]{32})/gi, severity: "high", category: "observability" },
7455
+ { name: "Sentry DSN", re: /https:\/\/[a-f0-9]+@o[0-9]+\.ingest\.sentry\.io\/[0-9]+/g, severity: "low", category: "observability" },
7456
+ { name: "ngrok auth token", re: /\b[12][A-Za-z0-9]{26}_[A-Za-z0-9]{32,}\b/g, severity: "medium", category: "tunneling" },
7457
+ { name: "Discord bot token", re: /\b[MN][A-Za-z\d]{23}\.[\w-]{6}\.[\w-]{27}\b/g, severity: "high", category: "bot_token" },
7458
+ { name: "Telegram bot token", re: /\b\d{8,10}:[A-Za-z0-9_-]{35}\b/g, severity: "high", category: "bot_token" }
7424
7459
  ];
7425
7460
  REDACTION_PATTERNS = [
7426
7461
  [/(authorization\s*[:=]\s*)(bearer\s+)?[A-Za-z0-9._~+/=-]{8,}/gi, "$1$2[REDACTED]"],
@@ -7433,17 +7468,34 @@ var init_secrets = __esm(() => {
7433
7468
  [/(session\s*[:=]\s*)["']?[A-Za-z0-9._-]{12,}["']?/gi, "$1[REDACTED]"],
7434
7469
  [/(cookie\s*[:=]\s*)["']?[A-Za-z0-9._-]{12,}["']?/gi, "$1[REDACTED]"],
7435
7470
  [/(set-cookie\s*:\s*)[^\r\n]+/gi, "$1[REDACTED]"],
7436
- [/\beyJ[A-Za-z0-9_-]{8,}\.[A-Za-z0-9_-]{8,}\.[A-Za-z0-9_-]{4,}/g, "[REDACTED]"],
7437
- [/AKIA[0-9A-Z]{16}/g, "[REDACTED]"],
7438
- [/ghp_[A-Za-z0-9]{20,}/g, "[REDACTED]"],
7439
- [/github_pat_[A-Za-z0-9_]{20,}/g, "[REDACTED]"],
7440
- [/sk-[A-Za-z0-9]{20,}/g, "[REDACTED]"],
7441
- [/\b(?:sk|pk|rk)_(?:live|test)_[0-9a-zA-Z]{10,}\b/g, "[REDACTED]"],
7471
+ [/\bAKIA[0-9A-Z]{16}\b/g, "[REDACTED]"],
7472
+ [/\bASIA[0-9A-Z]{16}\b/g, "[REDACTED]"],
7473
+ [/\bghp_[A-Za-z0-9]{20,}\b/g, "[REDACTED]"],
7474
+ [/\bgithub_pat_[A-Za-z0-9_]{20,}\b/g, "[REDACTED]"],
7475
+ [/\bgho_[A-Za-z0-9]{20,}\b/g, "[REDACTED]"],
7476
+ [/\bgh[usr]_[A-Za-z0-9]{20,}\b/g, "[REDACTED]"],
7477
+ [/\bsk_live_[0-9A-Za-z]{16,}\b/g, "[REDACTED]"],
7478
+ [/\bsk_test_[0-9A-Za-z]{16,}\b/g, "[REDACTED]"],
7479
+ [/\bpk_(?:live|test)_[0-9A-Za-z]{16,}\b/g, "[REDACTED]"],
7442
7480
  [/\bxox[baprs]-[A-Za-z0-9-]{10,}\b/g, "[REDACTED]"],
7443
7481
  [/\bAIza[0-9A-Za-z_-]{35}\b/g, "[REDACTED]"],
7444
7482
  [/\bAC[0-9a-f]{32}\b/g, "[REDACTED]"],
7483
+ [/\bSK[0-9a-fA-F]{32}\b/g, "[REDACTED]"],
7445
7484
  [/\bSG\.[A-Za-z0-9_-]{16,}\.[A-Za-z0-9_-]{16,}\b/g, "[REDACTED]"],
7446
7485
  [/\bkey-[0-9a-zA-Z]{32}\b/g, "[REDACTED]"],
7486
+ [/\bsk-ant-(?:api03|admin01)-[A-Za-z0-9_-]{20,}\b/g, "[REDACTED]"],
7487
+ [/\bsk-proj-[A-Za-z0-9_-]{20,}T3BlbkFJ[A-Za-z0-9_-]{20,}\b/g, "[REDACTED]"],
7488
+ [/\bsess-[A-Za-z0-9]{40}\b/g, "[REDACTED]"],
7489
+ [/\bhf_[A-Za-z0-9]{30,}\b/g, "[REDACTED]"],
7490
+ [/\bdop_v1_[a-f0-9]{64}\b/g, "[REDACTED]"],
7491
+ [/\bnpm_[A-Za-z0-9]{36}\b/g, "[REDACTED]"],
7492
+ [/\bpypi-AgENdGV[A-Za-z0-9_-]+\b/g, "[REDACTED]"],
7493
+ [/\bdckr_pat_[A-Za-z0-9_-]{27,}\b/g, "[REDACTED]"],
7494
+ [/\bATATT3xFfGF0[A-Za-z0-9_-]{20,}\b/g, "[REDACTED]"],
7495
+ [/\blin_api_[A-Za-z0-9]{40}\b/g, "[REDACTED]"],
7496
+ [/\b(?:NRAA|NRAK|NRBR)-[A-F0-9]{27}\b/g, "[REDACTED]"],
7497
+ [/\b\d{8,10}:[A-Za-z0-9_-]{35}\b/g, "[REDACTED]"],
7498
+ [/\beyJ[A-Za-z0-9_-]{8,}\.[A-Za-z0-9_-]{8,}\.[A-Za-z0-9_-]{4,}/g, "[REDACTED]"],
7447
7499
  [/-----BEGIN [A-Z ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z ]*PRIVATE KEY-----/g, "[REDACTED]"]
7448
7500
  ];
7449
7501
  });
@@ -16487,10 +16539,10 @@ function detectHardcodedSecret(code, file, out) {
16487
16539
  file,
16488
16540
  line: ln,
16489
16541
  type: "hardcoded_secret",
16490
- category: "Hardcoded secret (known format)",
16491
- severity: "high",
16542
+ category: `Hardcoded secret (${fmt.category}: ${fmt.name})`,
16543
+ severity: fmt.severity,
16492
16544
  evidence: (ls[ln - 1] ?? "").trim(),
16493
- detail: `A ${fmt.name} was found hardcoded in source — the credential is exposed to anyone with code access (CWE-798). Rotate it and load from the environment instead.`
16545
+ detail: `${fmt.name} was found hardcoded in source — the credential is exposed to anyone with code access (CWE-798, severity ${fmt.severity}). Rotate it and load from the environment instead.`
16494
16546
  });
16495
16547
  }
16496
16548
  }
@@ -57625,6 +57677,89 @@ function nextSteps(ctx) {
57625
57677
  import { readFileSync as readFileSync17 } from "node:fs";
57626
57678
  import { join as join16, dirname as dirname2 } from "node:path";
57627
57679
  import { fileURLToPath as fileURLToPath8 } from "node:url";
57680
+
57681
+ // src/synonyms.ts
57682
+ var ALIASES = {
57683
+ idor: "missing_authz",
57684
+ bola: "missing_authz",
57685
+ "broken object level authorization": "missing_authz",
57686
+ "insecure direct object reference": "missing_authz",
57687
+ "broken access control": "missing_authz",
57688
+ authorization: "missing_authz",
57689
+ csrf: "missing_nonce",
57690
+ xsrf: "missing_nonce",
57691
+ "cross site request forgery": "missing_nonce",
57692
+ "cross-site request forgery": "missing_nonce",
57693
+ sqli: "sql_injection",
57694
+ "sql injection": "sql_injection",
57695
+ "sql-injection": "sql_injection",
57696
+ ssti: "ssti",
57697
+ "template injection": "ssti",
57698
+ "server side template injection": "ssti",
57699
+ xxe: "xxe",
57700
+ "xml external entity": "xxe",
57701
+ "xxe injection": "xxe",
57702
+ bpla: "mass_assignment",
57703
+ "broken property level authorization": "mass_assignment",
57704
+ "mass assignment": "mass_assignment",
57705
+ lfi: "path_confusion",
57706
+ rfi: "path_confusion",
57707
+ "path traversal": "path_confusion",
57708
+ "directory traversal": "path_confusion",
57709
+ "local file inclusion": "path_confusion",
57710
+ "remote file inclusion": "path_confusion",
57711
+ ssrf: "ssrf",
57712
+ "server side request forgery": "ssrf",
57713
+ "server-side request forgery": "ssrf",
57714
+ "prompt injection": "llm_injection",
57715
+ llm: "llm_injection",
57716
+ llm01: "llm_injection",
57717
+ "llm prompt injection": "llm_injection",
57718
+ graphql: "graphql_exposure",
57719
+ oauth: "oauth_misconfig",
57720
+ "open redirect": "oauth_misconfig",
57721
+ grpc: "grpc_reflection",
57722
+ "hardcoded credential": "hardcoded_secret",
57723
+ "hardcoded secret": "hardcoded_secret",
57724
+ "credential leak": "hardcoded_secret",
57725
+ "hard coded credentials": "hardcoded_secret",
57726
+ "priv esc": "priv_esc",
57727
+ privesc: "priv_esc",
57728
+ "privilege escalation": "priv_esc",
57729
+ "file upload": "file_upload",
57730
+ "unrestricted upload": "file_upload",
57731
+ "unrestricted file upload": "file_upload",
57732
+ deserialization: "deserialization",
57733
+ "insecure deserialization": "deserialization",
57734
+ unserialize: "deserialization",
57735
+ "type juggling": "type_juggling",
57736
+ "php type juggling": "type_juggling",
57737
+ "prototype pollution": "prototype_pollution",
57738
+ crlf: "crlf_injection",
57739
+ "header injection": "crlf_injection",
57740
+ "http response splitting": "crlf_injection",
57741
+ "wrong sanitizer": "wrong_sanitizer",
57742
+ "wrong context sanitization": "wrong_sanitizer"
57743
+ };
57744
+ function normalize(term) {
57745
+ return term.trim().toLowerCase().replace(/[_-]+/g, " ").replace(/\s+/g, " ").trim();
57746
+ }
57747
+ function canonicalId(term) {
57748
+ const key = normalize(term);
57749
+ if (ALIASES[key])
57750
+ return ALIASES[key];
57751
+ return key.replace(/ /g, "_");
57752
+ }
57753
+ function synonymsFor(term) {
57754
+ const canonical = canonicalId(term);
57755
+ const aliases = Object.entries(ALIASES).filter(([, v]) => v === canonical).map(([k]) => k);
57756
+ return { canonical, aliases };
57757
+ }
57758
+ function listAliases() {
57759
+ return Object.entries(ALIASES).map(([alias, canonical]) => ({ alias, canonical }));
57760
+ }
57761
+
57762
+ // src/patterns.ts
57628
57763
  var __dirname2 = dirname2(fileURLToPath8(import.meta.url));
57629
57764
  var _doc = null;
57630
57765
  function load3() {
@@ -57638,7 +57773,8 @@ function load3() {
57638
57773
  return _doc;
57639
57774
  }
57640
57775
  function patternLookup(id) {
57641
- const p = load3().patterns.find((x) => x.id === id.toLowerCase());
57776
+ const canonical = canonicalId(id);
57777
+ const p = load3().patterns.find((x) => x.id === canonical);
57642
57778
  return p ?? null;
57643
57779
  }
57644
57780
  function listPatterns() {
@@ -59229,7 +59365,7 @@ function createServer() {
59229
59365
  ` + `- 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).
59230
59366
  ` + `- 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.
59231
59367
 
59232
- ` + "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. 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. 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.\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) so a new target on a known tech inherits historical hit-rates (attack_plan already blends them into success_probability). 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. 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.\n" + `PRECISION ANALYSIS — chrome-devtools MCP is MANDATORY, not optional:
59368
+ ` + "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. 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.\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) so a new target on a known tech inherits historical hit-rates (attack_plan already blends them into success_probability). 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. 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.\n" + `PRECISION ANALYSIS — chrome-devtools MCP is MANDATORY, not optional:
59233
59369
  ` + `- 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.
59234
59370
  ` + `- 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.
59235
59371
  ` + "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."
@@ -59661,6 +59797,18 @@ ${statusLine}` : statusLine },
59661
59797
  }, async () => {
59662
59798
  return { content: [{ type: "text", text: JSON.stringify(scanVariants()) }] };
59663
59799
  });
59800
+ server.registerTool("synonym_lookup", {
59801
+ title: "Vuln-class synonym / alias resolution",
59802
+ description: "INTEL: resolve free-form vuln terminology (IDOR/BOLA/SQLi/path-traversal/prompt-injection/…) to the canonical detector id, and list every alias that maps to it. Pass the result to pattern_lookup to ground the class empirically regardless of the wording used.",
59803
+ inputSchema: {
59804
+ term: string2().describe("Free-form vulnerability class term (e.g. 'IDOR', 'BOLA', 'SQL injection', 'prompt injection').")
59805
+ }
59806
+ }, async ({ term }) => {
59807
+ if (!term?.trim())
59808
+ return { content: [{ type: "text", text: JSON.stringify({ error: "term required", aliases: listAliases() }) }] };
59809
+ const r = synonymsFor(term);
59810
+ return { content: [{ type: "text", text: JSON.stringify({ ...r, pattern: patternLookup(r.canonical) }) }] };
59811
+ });
59664
59812
  server.registerTool("fofa_search", {
59665
59813
  title: "FOFA asset search",
59666
59814
  description: "STRIKE: search the FOFA asset index (needs FOFA_EMAIL + FOFA_KEY).",
@@ -188,7 +188,8 @@
188
188
  "chain_templates": [],
189
189
  "references": ["CWE-77", "OWASP LLM01:2025 Prompt Injection"],
190
190
  "bypass_techniques": ["delimiter/role confusion to escape the system prompt", "translation/encoding attacks to hide instructions", "context overflow to displace earlier constraints", "indirect injection via fetched documents (RAG)"],
191
- "crown_jewels": ["the system prompt itself", "tool/function-calling surfaces", "RAG-retrieved data", "privileged actions (email/send/pay) gated on model output"]
191
+ "crown_jewels": ["the system prompt itself", "tool/function-calling surfaces", "RAG-retrieved data", "privileged actions (email/send/pay) gated on model output"],
192
+ "validation": ["RUN-TWICE RULE — the extraction/injection must reproduce token-for-token across two fresh sessions (filter out model confabulation)", "NON-GUESSABLE ANCHOR — it must leak an actual verifiable internal key, endpoint URL, or cross-tenant data, not a plausible guess", "OOB PROOF — tool-use or markdown exfiltration must produce a verifiable callback log on your listener"]
192
193
  },
193
194
  {
194
195
  "id": "graphql_exposure",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blitzstrike",
3
- "version": "2.4.63",
3
+ "version": "2.4.65",
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": {