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:
- Format & Metadata Provenance: Validates
bomFormat(CycloneDX 1.4–1.6orSPDX), top-levelmetadata.component.name, generationmetadata.timestamp, andmetadata.supplier/creationInfo.creators. - Identifier & Integrity Coverage: Computes exact percentages across
componentsfor 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). - Copyleft Boundary Surface: Isolates
LGPL,GPL, andAGPLentries so teams can audit dynamic.dylibboundaries and micro-VM guest source-offer links (such as ourhttps://nandai.org/opensource/isolated ARM64 Linux micro-VM guest insiderelease/destiny-2.0.0.cdx.json). - Honest Finding Tiers: Running
audit_local_cyclonedx_sbomdirectly ondestiny-2.0.0.cdx.json(12components,CycloneDX 1.6) reports25.0%hashes (3/12signed installer/DMG/script SHA-256 entries),75.0%licenses (9/12upstream libraries/data/guest/model entries), and surfaces0.0%component PURL/CPE coverage as an actionableNEEDS_REMEDIATIONfinding rather than masking gaps.
3. Running Locally (stdio MCP + Discovery Endpoint)
- Machine Discovery Manifest (
8tools live): nandai.org/.well-known/mcp.json - Offline SBOM Auditor & Security Suite (
12tools): nandai.org/tools - EU CRA CycloneDX 1.6 Engineering Guide: nandai.org/guides/eu-cra-cyclonedx-1-6-sbom-engineering-guide
- Notarized macOS Release (
271.35 MB): nandai.org/download
Write a comment