What makes a base image "secure"? Compare distroless, Alpine and slim.
IntermediateConceptSupply Chain, SBOM, Signing and Image/IaC Scanning
Answer
Fewer packages mean smaller attack surface and fewer CVEs. Distroless has only the runtime and your app (no shell or package manager); hard for attackers and for debugging. Alpine is tiny, uses musl and busybox; occasional compatibility issues. Debian slim is a compromise with glibc and broad support. Chainguard and other minimal-maintained images aim for near-zero known CVEs.
Also: pin by digest, rebuild regularly, run as non-root, multi-stage builds so build tools never ship.
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