Interview Prep/DevSecOps/Supply Chain, SBOM, Signing and Image/IaC Scanning

What does a container image scanner like Trivy actually do?

BeginnerConceptSupply Chain, SBOM, Signing and Image/IaC Scanning
Answer

It unpacks the image layers, identifies OS packages (from dpkg/rpm/apk databases) and language dependencies (lockfiles, jars, binaries), then matches package and version against its vulnerability database. It can also scan for misconfigurations, secrets and licences.

trivy image --severity HIGH,CRITICAL --ignore-unfixed --exit-code 1 myapp:1.4.2

--exit-code 1 makes the CI job fail when matching findings exist.

All DevSecOps questions Roadmap: Supply chain, secrets & identity

More on Supply Chain, SBOM, Signing and Image/IaC Scanning