Proposal: show SRAC safety context beside SBOM vulnerability results
Proposal
Add an optional experimental input for Safety Relevance Assertion Capability (SRAC) records when OSV-Scanner analyzes an SPDX or CycloneDX SBOM, allowing externally authored safety context to appear beside vulnerability results.
An illustrative command could be:
osv-scanner scan --sbom sbom.json --srac assertions.srac.json --format jsonThe exact interface is open to discussion. A minimal workflow would:
- validate the SRAC schema, integrity metadata, and internal references;
- correlate assertions with the SBOM packages OSV-Scanner analyzes using package URL, SBOM reference, version, or artifact digest;
- add externally authored safety relevance, assertion lifecycle/review state, and optional change-impact status to machine-readable output;
- expose unmatched, ambiguous, invalid, and stale assertions explicitly; and
- leave OSV vulnerability severity, matching, remediation, and exit behavior unchanged by default.
SRAC tooling validates and transports decisions from an authorized safety process. OSV-Scanner must not infer a safety classification, approve a decision, or interpret missing context as “not safety-related”.
Acceptance criteria
- Context appears only for deterministically matched, validated assertions.
- Output records which identifier established the match.
- Unknown, invalid, stale, ambiguous, and unmatched states remain distinct.
- Existing vulnerability results and default exit behavior are unchanged.
- The assertion digest and provenance remain auditable.
- A synthetic example and positive/negative tests document the behavior.
Context
- Eclipse tracking issue: https://github.com/eclipse-score/reference_integration/issues/3282
- CycloneDX discussion: https://github.com/CycloneDX/specification/issues/1122
The prototype demonstrates SPDX/CycloneDX correlation, integrity checks, enrichment reports, change-impact records, and fail-closed behavior. Its SPDX mapping follows current 3.1-development FunctionalSafety concepts; these are development/proposal references, not claims of released normative support.
Would maintainers consider a companion sidecar input useful, or should such enrichment remain a downstream post-processing concern?
Source: google/osv-scanner