Interview Prep/DevSecOps/Supply Chain Security

What is an SBOM, and at which point in the pipeline do you generate it?

BeginnerScenarioSupply Chain Security
Answer

Situation read → An SBOM is an inventory of components in a build artifact. It makes "are we affected by CVE-X" a query instead of an investigation.

What I'd do →

  1. Generate it from the final image, because that is what ships: syft app:1.0 -o cyclonedx-json > sbom.cdx.json.
  2. Do it in CI right after the image build, once per release.
  3. Store it next to the image in the registry as an attestation (cosign attest --type cyclonedx).
  4. Index SBOMs centrally (Dependency-Track) for continuous matching.

Why → Generating from the built image captures OS packages and copied binaries, not only lockfile entries.

Interview tip → An SBOM is data; value comes from continuous matching against new CVEs.

All DevSecOps questions Roadmap: Supply chain, secrets & identity

More on Supply Chain Security