#3748·grype

Proposal: show SRAC safety context beside vulnerability findings

Author: devashridatta-dotcomCreated Sep 27, 2026Updated Sep 27, 2026

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:

bash
grype sbom:sbom.json --srac assertions.srac.json -o json

The exact CLI shape is only illustrative. A minimal workflow would:

  1. validate the SRAC document and its integrity metadata;
  2. correlate assertions with the same SBOM components Grype analyzes using stable identifiers such as package URL, SBOM reference, version, or artifact digest;
  3. add non-normative fields to Grype JSON/template output for externally authored safety relevance, assertion lifecycle/review state, and optional change-impact status;
  4. make invalid, unmatched, ambiguous, and stale assertions visible; and
  5. 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:

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.