feat(sbom): sbomqs quality score as CRA evidence for the SBOM (#496)
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Check (pull_request) Successful in 9m45s

At the end of every completed scan the target's CycloneDX SBOM (the same
document as the evidence pack's sbom.cdx.json) is scored by sbomqs against
BSI TR-03183-2 v2.1 and the NTIA minimum elements (2021).

- Dockerfile.agent pins sbomqs 2.1.2 (Apache-2.0) with the sha256 from the
  release's checksums.txt and lists it in tool-versions.json.
- Profiles by explicit name (bsi-v2.1, ntia-2021): in 2.1.2 `bsi` and
  `ntia` float to the newest BSI and CISA 2026 profiles.
- pipeline/sbom_quality.rs runs it offline through tool_cmd (empty
  environment, 120 s), keeps per profile the score, grade and the checks
  not fully met; stored on the scan run as sbom_quality. Without sbomqs the
  run records the skipped stage sbom_quality.
- Supporting evidence, not findings: attached to cra-ai-23 in the CRA
  status without changing its state, sbom-quality.json in the evidence
  pack, GET /api/v1/sbom/quality for the SBOM page.
- Dashboard: SBOM-Qualität card on the SBOM page, a supporting-evidence line
  on cra-ai-23 on the CRA page.
- Docs: tools.md, SBOM and target guides, staging check 20.

Our export (CycloneDX 1.5, no creator, timestamp, supplier or hashes)
grades F against BSI; the failed checks list what it needs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
This commit is contained in:
Sharang ParnerkarandClaude Opus 5.5 committed 2026-10-06 14:24:21 +02:00
1 parent d406741907
commit 0c1024dd60
21 files changed
+984 -12

No files matched your search

+6
View File
@@ -135,6 +135,12 @@ vulnerabilities.
Syft output feeds into both the SBOM feature and the vulnerability scanning pipeline.
## sbomqs -- SBOM Quality
[sbomqs](https://github.com/interlynk-io/sbomqs) (Interlynk, Apache-2.0; pinned with its checksum in the agent image) scores the CycloneDX document Prüfwerk exports for a target, the same bytes as the evidence pack's `sbom.cdx.json`, at the end of every completed scan (`pipeline/sbom_quality.rs`). Two profiles, by their explicit names: `bsi-v2.1` (BSI TR-03183-2 v2.1) and `ntia-2021` (NTIA minimum elements). In sbomqs 2.1.2 the short names float (`bsi` is the newest BSI version, `ntia` the CISA 2026 elements), so they are not used.
The score per profile, its grade and the checks not fully met are stored on the scan run (`sbom_quality`), shown on the SBOM page, attached to the CRA requirement cra-ai-23 as supporting evidence and written to the evidence pack (`sbom-quality.json`). They raise no findings. sbomqs runs offline: its component analysis, which would call Interlynk's API, is opt-in and never turned on, and the tool starts with an empty environment like every other tool. A scan without sbomqs (a development machine) records the skipped stage `sbom_quality`.
## Embedded Library Versions
Libraries copied into a firmware tree have no manifest Syft could read.