Interview Security & DevSecOps

What is an SBOM, and how do you generate and use one? [Intermediate]

Answer

An SBOM, or Software Bill of Materials, is an inventory of the components inside software: packages, versions, suppliers, hashes, and relationships. I generate SBOMs during build and use them for vulnerability matching, license review, incident response, and supply-chain evidence.

Technical explanation

SBOMs make it faster to answer whether a product contains a vulnerable component after a new CVE is disclosed.

They should be tied to an immutable artifact digest so the inventory matches the exact build deployed.

SBOMs are most useful when stored, searchable, and linked with vulnerability intelligence and ownership data.

Hands-on example

Hands-on:

syft packages registry.example.com/checkout@sha256:abc -o cyclonedx-json > sbom.json

grype sbom:sbom.json

cosign attest --predicate sbom.json --type cyclonedx registry.example.com/checkout@sha256:abc

Then store the SBOM with the release record.

Preparing for an interview?

Check how well your resume matches the role with our free resume checker— match score, ATS check, and the skills you're missing.

More Security & DevSecOps interview questions

← All Security & DevSecOps questions