Lion Cipher Lab

Scan an SBOM for known vulnerabilities with Grype and gate on fixable severity

Why it matters

A Software Bill of Materials (SBOM) is a durable, machine-readable list of everything inside an artifact. Once you have it, you can re-check it against today's vulnerability data without rebuilding, and hand it to whoever consumes your software. Scanning the SBOM instead of re-scanning the image every time is how mature supply-chain security works: the inventory is the source of truth, and the vulnerability feed moves underneath it. Learn to generate one, scan it, and gate a pipeline on the result, and you can block a known-vulnerable build before it ships.

What you'll learn

Steps in this lab

  1. The idea: scan the inventory, not the image
  2. Pull a deliberately-old image so there's something to find
  3. Generate the SBOM with Syft
  4. Scan the SBOM with Grype and read the table
  5. Gate a pipeline: make Grype fail the build
  6. Silence a false positive with an ignore rule
  7. The judgment: SBOM-first, Grype vs Trivy, and what a scanner can't see

Open the full interactive lab →