Zero-Upload EU Cyber Resilience Act (2024/2847) CycloneDX 1.6 SBOM Auditing via Local MCP and WebCrypto

Engineering walkthrough of deterministic, zero-upload EU CRA Annex I SBOM readiness auditing across browser-local JavaScript (nandai.org/tools/sbom-cra-auditor) and pure-Python stdlib MCP tool #8 (audit_local_cyclonedx_sbom in karany97/destiny): path-traversal guards, PURL/CPE coverage, hashes, and SPDX triage.
Zero-Upload EU Cyber Resilience Act (2024/2847) CycloneDX 1.6 SBOM Auditing via Local MCP and WebCrypto

Zero-Upload EU Cyber Resilience Act (2024/2847) CycloneDX 1.6 SBOM Auditing via Local MCP and WebCrypto

Software engineering teams distributing desktop applications or connected products in the European Union face mandatory EU Cyber Resilience Act (Regulation (EU) 2024/2847) Annex I software bill of materials (SBOM) requirements covering machine-readable dependency graphs, top-level component provenance, and vulnerability correlation identifiers. Sending internal build manifests to third-party SaaS scanners leaks proprietary dependency topologies.

In commit 6cdaa2f7, we added an 8th zero-dependency tool — audit_local_cyclonedx_sbom(sbom_path_or_json) — inside mcp/destiny_mcp_server.py, complementing our zero-upload client-side browser auditor at nandai.org/tools/sbom-cra-auditor (18,092 B pure client-side JS with 0 fetch/XHR uploads) and our technical reference at EU CRA CycloneDX 1.6 Engineering Guide.


1. Dual-Surface Verification Invariant (0 Bytes Uploaded)

Surface Engine Runtime Security Guard Link
Browser UI Client-side .engine.js + Uint8Array / WebCrypto (crypto.subtle across our security suite) Zero fetch(), XMLHttpRequest, sendBeacon, WebSocket, or cookies nandai.org/tools/sbom-cra-auditor
CLI / IDE MCP (stdio) Pure Python >=3.10 stdlib audit_local_cyclonedx_sbom Rejects NUL bytes, rejects .. path traversal, enforces stat.S_ISREG regular file & 16 MB ceiling github.com/karany97/destiny/tree/main/mcp

2. Deterministic Annex I Readiness Checks (CycloneDX 1.4–1.6 & SPDX)

audit_local_cyclonedx_sbom accepts either a local file path or an inline JSON document and outputs deterministic metrics without calling external endpoints:

  1. Format & Metadata Provenance: Validates bomFormat (CycloneDX 1.4–1.6 or SPDX), top-level metadata.component.name, generation metadata.timestamp, and metadata.supplier / creationInfo.creators.
  2. Identifier & Integrity Coverage: Computes exact percentages across components for Package URL / CPE identifiers (pct_with_purl_or_cpe), cryptographic digests (pct_with_hashes), and SPDX / declared licenses (pct_with_licenses & pct_with_spdx_licenses).
  3. Copyleft Boundary Surface: Isolates LGPL, GPL, and AGPL entries so teams can audit dynamic .dylib boundaries and micro-VM guest source-offer links (such as our https://nandai.org/opensource/ isolated ARM64 Linux micro-VM guest inside release/destiny-2.0.0.cdx.json).
  4. Honest Finding Tiers: Running audit_local_cyclonedx_sbom directly on destiny-2.0.0.cdx.json (12 components, CycloneDX 1.6) reports 25.0% hashes (3/12 signed installer/DMG/script SHA-256 entries), 75.0% licenses (9/12 upstream libraries/data/guest/model entries), and surfaces 0.0% component PURL/CPE coverage as an actionable NEEDS_REMEDIATION finding rather than masking gaps.

3. Running Locally (stdio MCP + Discovery Endpoint)


Write a comment