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.
More on Supply Chain, SBOM, Signing and Image/IaC Scanning
What is a software supply chain attack? Give examples.BeginnerExplain dependency confusion and typosquatting.IntermediateWhat is an SBOM and why do we need one?BeginnerCycloneDX vs SPDX: how do they differ?IntermediateHow do you generate and use an SBOM with Syft and Grype?BeginnerWhat is VEX?Intermediate