---
title: "Hardened Images Explained: Fewer CVEs, Smaller Attack Surface"
description: "Most container CVEs come from unused packages in general-purpose base images (often 400+ packages when an app needs 20–30), not application code."
url: "https://swe.quest/articles/hardened-images-explained-fewer-cves-smaller-attack-surface-84ba4f604fd33924"
canonical: "https://www.docker.com/blog/what-are-hardened-images/"
source: "Docker"
published: "2026-06-04"
difficulty: "easy"
kind: "Opinion"
reading_minutes: 8
tags: ["supply-chain-security","containers","security"]
---

# Hardened Images Explained: Fewer CVEs, Smaller Attack Surface

A post on [Docker](https://swe.quest/sources/docker.md), published 2026-06-04, 8 min read, Opinion. Original: [https://www.docker.com/blog/what-are-hardened-images/](https://www.docker.com/blog/what-are-hardened-images/)

## Summary

Most container CVEs come from unused packages in general-purpose base images (often 400+ packages when an app needs 20–30), not application code. Hardened images address this with three properties: aggressive minimization (no shells, package managers or debug tools), continuous patching on defined SLAs, and verifiable supply chain metadata such as SBOMs, SLSA provenance, VEX data and signatures that enable CI policy gates. Container hardening works at the image layer and differs from VM/CIS OS hardening. Slim, Alpine or one-off distroless images alone don't qualify, and the piece closes by promoting Docker Hardened Images, with a free Apache 2.0 Community tier.

Written by swe.quest, not by the author.

**Difficulty:** Easy: no special background needed; explains what something is and why it matters

## Topics

- [Supply chain security](https://swe.quest/tags/supply-chain-security.md) (Security)
- [Containers](https://swe.quest/tags/containers.md) (Infrastructure)
- [Security](https://swe.quest/tags/security.md) (Security)

## Prerequisites

- Docker base images ([easy posts on Containers](https://swe.quest/tags/containers.md?difficulty=easy))
- vulnerability scanning basics

## Keywords

Docker Hardened Images, SBOM, SLSA, VEX, distroless, CIS Benchmarks

## Related posts

- [Making the Most of Your Docker Hardened Images Enterprise Trial – Part 1](https://swe.quest/articles/making-the-most-of-your-docker-hardened-images-enterprise-trial-part-1-61a4db14eac1477b.md): Docker · 2025-11-14 · Medium · 10 min read · Containers, Supply chain security, Security
  Docker Hardened Images (DHI) strip base images down to the minimum runtime, removing package managers, shells and utilities while keeping distro compatibility.
- [Hardened Images Are Free. Now What?](https://swe.quest/articles/hardened-images-are-free-now-what-129617cf36f8913b.md): Docker · 2026-02-10 · Medium · 6 min read · Supply chain security, Containers, Security
  Docker Hardened Images (DHI), now free across 1,000+ images, establish a security "waterline": Docker owns vulnerability remediation for the base layers it hardens, while teams own application code and dependencies above it.
- [The Supply Chain Paradox: When “Hardened” Images Become a Vendor Lock-in Trap](https://swe.quest/articles/the-supply-chain-paradox-when-hardened-images-become-a-vendor-lock-in-trap-081399f78d0156a6.md): Docker · 2025-08-20 · Easy · 7 min read · Supply chain security, Containers
  Pre-hardened container images reduce attack surface but can create a subtle vendor lock-in.
- [Secure by Design: A Proactive Testing Approach with Testcontainers, Docker Scout, and Hardened Images](https://swe.quest/articles/secure-by-design-a-proactive-testing-approach-with-testcontainers-docker-scout-3bd5cb7e139bb4be.md): Docker · 2025-08-28 · Medium · 10 min read · Containers, Supply chain security, Testing, TypeScript
  Swapping a Node.js API's node:22-slim base image for a Docker Hardened Image (distroless dhi-node:22) eliminated all critical and high CVEs flagged by Docker Scout, including Debian 12's CVE-2025-6020, while avoiding the musl compatibility risk of switching to Alpine.
- [Docker Hardened Images enhanced vulnerability scanning with Docker and Aikido](https://swe.quest/articles/docker-hardened-images-enhanced-vulnerability-scanning-with-docker-and-aikido-d49b93c672989876.md): Docker · 2026-06-11 · Medium · 4 min read · Supply chain security, Containers, Security
  Aikido now scans Docker Hardened Images (DHI) using Docker's signed OpenVEX attestations, automatically suppressing CVEs that Docker has marked fixed or not affected so triage queues show only findings that actually apply.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
