Skip to main content
Glama

ZeroCBOM

Zero-egress, zero-dependency local Cryptographic Bill of Materials (CBOM) scanner, CycloneDX 1.7 & SARIF 2.1.0 generator, GitHub Action, and stdio MCP server tuned to the December 2, 2026 NSA Post-Quantum Cryptography advisory.

  • Zero npm dependencies. Pure Node.js (>=20) ESM stdlib only (node:fs, node:path, node:crypto). Auditable in five minutes — built for post-CVE-2026-33634 supply-chain paranoia.

  • Zero network egress. Zero imports of http, https, net, tls, dns, fetch, or child_process anywhere in the scanner or MCP runtime (enforced by automated unit tests). Your source code never leaves your laptop or CI runner.

  • Tuned to the Dec 2, 2026 NSA 256-bit ECC inversion. Pre-Dec-2 scanners still mark Ed25519 and P-256 green while flagging RSA-3072 red. ZeroCBOM classifies findings into four operator-actionable tiers that reflect what the NSA advisory actually flagged.

  • Built for AI coding agents. Ships a native local stdio MCP server (zerocbom-mcp) so Claude Code, Codex, Antigravity, or Cursor can inspect your repo's CBOM and author scoped remediation PRs locally.

Companion live external prober: ZeroCBOM audits what lives inside your repositories and IaC. To verify live external TLS 1.3 (X25519MLKEM768 / RFC 10024), leaf cert curves, and SSH KEXINIT negotiation on your production endpoints, run PQCheck.


Why 4 Tiers (Instead of a 400-Line JSON Dump)

Tier

What ZeroCBOM Catches

Why It Matters After Dec 2, 2026

P0 — Immediate

AWS ALB HTTPS listeners omitting ssl_policy (silently defaults to ELBSecurityPolicy-2016-08 in Terraform/CDK!) or using non-PQ policies; NGINX/Envoy/Caddy hardcoded classical curves; TLS <1.3; WireGuard [Peer] blocks missing PresharedKey; OpenSSH classical KexAlgorithms & draft @openssh.com keys; explicit P-256, Ed25519/X25519, pairing curves (BLS12-381, BN254); weak legacy (RSA-1024, 3DES, RC4)

Closes Harvest-Now-Decrypt-Later (HNDL) transport risk immediately and flags the exact 256-bit elliptic-curve & pairing families listed in the Dec 2 NSA inventory.

P1 — Short-Term Auth/Signing

JWT/OIDC ES256 & EdDSA signing configs; Kubernetes cert-manager ECDSA-256 issuers

Plans staged dual-key JWKS & ACME rotations without breaking live user sessions.

P2 — NSA Interim Stopgaps

RSA 3072 / RSA 4096, ECDSA P-384 (ES384), ECDSA P-521 (ES512)

Explicit anti-mistake guardrail: Do NOT panic-swap RSA-3072 or P-384 into bare Ed25519. Keep as interim stopgaps while scheduling FIPS 204 (ML-DSA) migration before NIST's 2030/2035 deadlines.

SAFE — Anti-Panic Filter

X25519MLKEM768, SecP256r1MLKEM768, SecP384r1MLKEM1024, ML-KEM, ML-DSA, SLH-DSA, mlkem768x25519-sha256, ssh-mldsa44-ed25519, ELBSecurityPolicy-TLS13-1-2-Res-PQ-2025-09, AES-256-GCM, ChaCha20-Poly1305

Confirms real PQ upgrades and separates safe 256-bit symmetric/hash primitives from unrelated academic noise (such as reduced-round 38-step SHA-256 preprints).


Related MCP server: quantakrypto pqc-tools

1-Command Local Scan

# Clone and run with zero npm install required
node bin/zerocbom.mjs scan /path/to/your-repo

# Numbers-only mode: aggregate tier/algorithm counts ONLY (zero paths, zero snippets, zero repo names)
node bin/zerocbom.mjs scan /path/to/your-repo --numbers-only --format json

# Export valid CycloneDX 1.7 CBOM JSON
node bin/zerocbom.mjs scan /path/to/your-repo --format cyclonedx --out cbom-cyclonedx-1.7.json

# Export valid SARIF 2.1.0 for GitHub Code Scanning and fail CI on P0 findings
node bin/zerocbom.mjs scan /path/to/your-repo --format sarif --out zerocbom.sarif --fail-on p0

# List all rules & inspect core SHA-256 integrity hash
node bin/zerocbom.mjs rules
node bin/zerocbom.mjs version

--numbers-only Zero-Egress Guarantee

Need to share your PQC migration posture with a security auditor, board member, or Trust Center without exposing a single filename, line number, repository name, or code excerpt?

node bin/zerocbom.mjs scan . --numbers-only --format json

Output contains strictly schema version, tool version, core source SHA-256 integrity hash, scan timestamp, file count, posture grade, and aggregate counts by tier, category, rule ID, and algorithm:

{
  "schemaVersion": "1.0.0",
  "tool": "zerocbom",
  "toolVersion": "0.1.0",
  "toolSha256": "...",
  "zeroEgress": true,
  "numbersOnly": true,
  "postureGrade": "C",
  "filesScanned": 42,
  "totalFindings": 7,
  "countsByTier": { "P0": 2, "P1": 1, "P2": 2, "SAFE": 2 }
}

Even in full-detail mode, ZeroCBOM automatically redacts PrivateKey, PresharedKey, bearer tokens, and raw base64 secret blobs from every stored line excerpt.


Local Stdio MCP Server (Claude Code, Antigravity, Codex, Cursor)

Wire zerocbom-mcp as a local zero-egress MCP server so your coding agent can scan your repository, look up Dec 2 NSA rationales, generate ordered remediation plans, and export CycloneDX 1.7 CBOMs directly on your machine:

{
  "mcpServers": {
    "zerocbom": {
      "command": "node",
      "args": ["/absolute/path/to/zerocbom/bin/zerocbom-mcp.mjs"]
    }
  }
}

Exposed MCP tools (100% read-only, zero network calls):

  1. scan_repo (path, numbersOnly?, maxFindings?, includeTests?) — Runs the 4-tier scanner and returns structured JSON.

  2. explain_finding (ruleId) — Returns the Dec 2 NSA rationale, CycloneDX algorithm metadata, and copy-paste fix snippet for any rule ID.

  3. generate_remediation_plan (path, includeTests?) — Groups actionable findings P0 → P1 → P2 with exact file:line locations and ready-to-apply config patches.

  4. export_cyclonedx (path, numbersOnly?, includeTests?) — Outputs a valid CycloneDX 1.7 CBOM JSON document.


Commit-Pinned GitHub Action (Post-CVE-2026-33634 Hygiene)

Never reference security actions by mutable version tags (@v1). Pin action.yml to an immutable 40-character commit SHA:

- name: Run ZeroCBOM (zero-egress local CBOM + SARIF)
  id: zerocbom
  uses: <OWNER>/zerocbom@<40_CHAR_IMMUTABLE_COMMIT_SHA>
  with:
    path: '.'
    fail-on: 'p0'
    sarif-output: 'zerocbom.sarif'
    cbom-output: 'cbom-cyclonedx-1.7.json'
    numbers-only-cbom: 'false'

See .github/workflows/zerocbom-example.yml for a complete workflow with commit-pinned actions/checkout, upload-sarif, and CycloneDX 1.7 artifact upload.


Running Tests

npm test

Runs the full node --test suite covering all P0/P1/P2/SAFE rules, AWS ALB missing-policy Terraform parsing, WireGuard [Peer] PSK parsing, secret redaction, --numbers-only zero-leak assertions, CycloneDX 1.7 & SARIF 2.1.0 schema checks, static zero-egress verification, and a live child-process stdio JSON-RPC test driving bin/zerocbom-mcp.mjs.

License

Apache-2.0 — see LICENSE.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI-powered code safety analysis including risk detection, secret scanning, dependency checking, and code snapshot management. Works offline for basic features with optional cloud integration for advanced ML analysis and team collaboration.
      1
      Apache 2.0
    • A
      license
      A
      quality
      C
      maintenance
      Post-quantum readiness for AI coding agents: scans code for quantum-vulnerable cryptography (RSA/ECDH/ECDSA/DH) and returns NIST ML-KEM/ML-DSA/SLH-DSA (and hybrid) migration guidance, with fix verification and dependency checks. Content-based, advisory tools only; runs local (npx @quantakrypto/mcp) or as a hosted OAuth endpoint.
      16
      17
      Apache 2.0
    • A
      license
      A
      quality
      B
      maintenance
      Security checks for code an AI agent is about to trust. vetcode_guard checks a command before it installs packages or adds an MCP server: made-up names, look-alikes, malware advisories, brand-new releases, and the archive read without running it. vetcode_scan reads a folder for malware, supply-chain attacks, attacks on agents, leaked secrets and risky config. Local, zero dependencies.
      4
      3
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables local, zero-egress MCP clients to scan codebases for post-quantum cryptography and structural issues, inspect standards constraints, verify dependency and candidate-fix safety, generate CycloneDX CBOMs, and map cryptographic assets to compliance mandates before commit or in CI.
      MIT