Proposal: show SRAC safety context beside vulnerability findings
What would you like to be added:
An optional experimental input for Safety Relevance Assertion Capability (SRAC) records when Grype scans an SBOM, allowing externally authored safety context to appear beside matched vulnerability findings.
For example:
grype sbom:sbom.json --srac assertions.srac.json -o jsonThe exact CLI shape is only illustrative. A minimal workflow would:
- validate the SRAC document and its integrity metadata;
- correlate assertions with the same SBOM components Grype analyzes using stable identifiers such as package URL, SBOM reference, version, or artifact digest;
- add non-normative fields to Grype JSON/template output for externally authored safety relevance, assertion lifecycle/review state, and optional change-impact status;
- make invalid, unmatched, ambiguous, and stale assertions visible; and
- keep Grype vulnerability severity and matching decisions unchanged by default.
SRAC tooling transports and validates decisions made by an authorized safety process. Grype must not infer a safety classification, approve a decision, or convert missing SRAC data into “not safety-related”.
Suggested acceptance criteria:
- Safety context appears only when a validated assertion matches deterministically.
- Output records which identifier established the match.
- Unknown, invalid, stale, ambiguous, and unmatched states remain distinct.
- Existing severity, fix state, ignore rules, and exit behavior do not change by default.
- The original assertion digest and provenance are retained for audit.
- A synthetic example and automated positive/negative tests document the behavior.
Why is this needed:
For safety-relevant products, teams often need to prioritize the review of a vulnerability based on both security facts and externally approved safety context. Vulnerability severity and safety relevance are different dimensions; presenting them together helps triage without conflating them.
This proposal complements the Syft-side request to correlate SRAC with generated SBOMs. Grype would consume the same linked sidecar rather than defining another safety vocabulary.
Additional context:
- Eclipse tracking issue: https://github.com/eclipse-score/reference_integration/issues/3282
- CycloneDX discussion: https://github.com/CycloneDX/specification/issues/1122
The mapping follows current SPDX 3.1-development FunctionalSafety concepts and explores a CycloneDX-compatible external assertion carrier. These are development/proposal references, not claims of released normative support.
Source: anchore/grype