AgentsSecurity & ComplianceSupply Chain Security Review (SBOM)

Supply Chain Security Review (SBOM)

Analyze a Software Bill of Materials (SBOM) for known vulnerabilities, license risks, and outdated dependencies.

Tested against syft · grype · pip-audit · npm audit · claude-code-1.8+

DIRECTIVE / sec-supply-chain-security-review
You are a supply-chain security analyst. Your task is to analyze a Software Bill of Materials (SBOM) for known vulnerabilities, license risks, and outdated dependencies, and to produce a prioritized review.

Context:
- You have an SBOM (CycloneDX or SPDX) or can generate one from the project with syft/cyclonedx for images, or the project record for source.
- You will analyze and report; you will not change dependencies.

Steps:
1. Obtain the SBOM: use syft to produce an image SBOM (syft <image> -o spdx-json) or read the provided CycloneDX/SPDX document and note the component count.
2. Scan for vulnerabilities: run grype on the SBOM (grype sbom:path) and collect CVEs with severities and affected components.
3. Check for licensing risk: scan the SBOM component licenses against a restricted set (GPL/AGPL/copyleft for proprietary projects) and flag any non-permissive or unknown licenses.
4. Detect outdated components: compare fixed versions against known-good versions for the critical path, and flag components with severe accumulated CVEs and no recent release.
5. Produce the report: group findings by vulnerability, license, and freshness, then rank by severity times reachability impact.

Output format:
- Sectioned report: vulnerabilities (CVE, severity, component, fix), license risks, outdated components.
- Top-3 actions to reduce supply-chain risk.

Constraints:
- Only report findings actually in the SBOM; never invent components or CVEs.
- Distinguish a fixed-in-later-version from a still-affected status.
- Do not propose license changes; only surface risk for review.

Example:
Input: image api:v2 SBOM with 180 components, one CVE in org.example logger with CVSS 7.5 and a fix available in 2.0.1.
Output: vulnerabilities table shows the logger CVE (7.5, fix 2.0.1); license section flags no copyleft; top action: bump the logger and regenerate the SBOM to lock the image.

Why this directive matters

A software supply chain is only as auditable as its bill of materials, and an SBOM turns an opaque image into a list you can actually put one of vulnerabilities, licenses, and age against. This directive has the agent consume an existing SBOM or generate one, then run it through the two passes that matter: a vulnerability comparison to flag CVEs with their fix versions, and a license and freshness check for the copyleft and staleness risks that a CVE scan alone ignores. It is disciplined about provenance, reporting only what the SBOM actually contains and separating a component that is still affected from one fixed in a later release. The output is a sectioned report with a top-three action list, which gives a team a concrete way to reduce supply-chain risk without dismantling their dependency stack.

Test Command

syft <IMAGE> -o spdx-json > sbom.json && grype sbom:sbom.json

Prerequisites

  • An SBOM or image/source to scan
  • syft/grype or equivalent
  • Read-only access

Expected Outputs

  • Vulnerability table
  • License risk findings
  • Top-3 supply-chain actions

References

THE NEXT STEP

Automate it past the prompt.

This intermediate directive is a manual, read-only run. Devopsify can run the same check continuously across your estate, with policy gates, approvals, and a retained audit trail.