Source linked

Docker Hardened Images Strip 95% de la surface d'attaque, des SBOMs de navires et de la provenance de la construction

Les images de base standard portent des centaines de CVE provenant de paquets inutilisés; les équivalents endurcis de Docker réduisent cela à des chiffres simples et incluent des métadonnées de la chaîne d'approvisionnement vérifiables.

dockerhardened imagescontainer securitysbomslsasoftware supply chain

400 packages in a typical base image, 20–30 actually used by the application. The rest are inherited baggage: shells, package managers, debug tools, libraries the container never calls. Each one is a CVE carrier and a potential beachhead for an attacker. That’s the real source of most container vulnerability findings, not your application code.

Why General-Purpose Images Poison Your CVE Triage

A standard Linux base image ships with hundreds of packages because it’s built for general use. Your microservice doesn’t need curl, vim, or a compiler. Yet vulnerability scanners flag every CVE in every package present, even if nothing ever loads them. The result: 200 findings, 80% of which exist in packages no running workload touches. Security teams burn cycles triaging noise while real threats sit unattended.

Worse, those unnecessary packages are active attack surface. A shell gives an intruder an interactive environment. A package manager lets them install remote access tools. Debug utilities map the network. None of that belongs in a production container, but they ship by default in every general-purpose image, quietly widening the blast radius.

Three Pillars of a Genuinely Hardened Image

Minimization is the visible part, but it's only one leg. A truly hardened image meets three criteria: it's minimal, continuously patched, and independently verifiable.

Minimized attack surface – Remove shells, package managers, debug tools. Rebuild from the package level up, selecting only what the runtime requires. That drops CVE counts from hundreds to single digits or zero. Docker claims up to 95% reduction in attack surface.

Continuous patching – A hardened image snapshot is stale by Friday. Three CVEs published, two library patches released, and you're already exposed. Production-grade hardened images rebuild on a defined cadence with clear SLAs, not quarterly release cycles.

Verifiable supply chain metadata – This is where hardening meets audit. Docker ships SBOMs listing every package and version, SLSA Build Level 3 provenance attestations, VEX data identifying non-exploitable CVEs, and cryptographic signatures. That metadata lets CI/CD gates block deployments unless the base image has a signed SBOM and valid provenance. Regulated environments get verifiable transparency without reverse-engineering the image.

What Hardened Images Are Not

A slim or Alpine variant is smaller, not hardened – no provenance, no patching SLA, no metadata. Running a scanner and manually removing flagged packages gives you a point-in-time fix, not a maintained image. Building a distroless image from scratch achieves minimization but shifts the maintenance burden to you with no defined rebuild cadence.

Docker's hardened images aim to be drop-in replacements for standard base images across thousands of runtimes, frameworks, databases, and infrastructure components. The Community tier is free under Apache 2.0 with no restrictions. If your Dockerfile starts with a general-purpose runtime image, you can swap in a hardened equivalent without changing your build process – though you may need to adjust build steps that depend on shell access, since hardened images remove shells.

Expect hardened base images to become the default for organizations that can’t afford noisy vulnerability scans and need to prove supply chain integrity. The foundation is minimal, maintained, and verifiable – exactly what a container supply chain should rest on.


Source: Hardened Images Explained: Fewer CVEs, Smaller Attack Surface
Domain: docker.com

Read original source ->

External source stays available while the OJO article and comment thread stay local.

Comments load interactively on the live page.