Docker Hardened System Packages are system libraries and tools, such as OpenSSL and curl, that Docker builds from source for Alpine and Debian. Docker maintains these builds, applies security fixes, and publishes signatures and records of how each package was built.
Packages generally retain their upstream functionality. Image hardening adds measures such as excluding a shell or running as a non-root user.
Built from source
Docker builds packages in its own infrastructure. For most OS packages, Docker rebuilds the Debian or Alpine source package at the version maintained for that distribution release. Docker retains the distribution's package metadata, such as names and dependencies, so the packages work with familiar distribution tooling.
Docker can also package a newer upstream release after validating compatibility with the target distribution. Its binutils build for Debian 13 uses this approach to address vulnerabilities that would remain in a rebuild of Debian's older version.
For language runtimes such as Node.js and Python, Docker builds directly from upstream source and publishes its own Debian and Alpine packages. These packages support the SDKs, toolchains, and build environments used in Docker Hardened Images (DHI). Owning the packaging gives Docker more flexibility over versions, build configuration, and security patches for the images that depend on them.
Package definitions are public in the DHI catalog repository. They describe the source inputs, build steps, and any additional patches applied by Docker.
Security fixes and compatibility
When the maintainers of software such as curl or OpenSSL publish a security fix, Docker can apply it to the package version maintained by Debian or Alpine. This is called backporting. It brings the fix to the existing version without requiring an upgrade to a newer release or waiting for a distribution package update.
For example, if Debian 13 provides version 1.2.3 of a library and the library's
maintainers release a security fix in 1.8.9, Docker can apply that fix to
1.2.3 and publish the patched package. Applications continue to use the version
expected by Debian 13, with the additional security fix.
The Debian curl definition provides a concrete example: it starts with Debian's source package, applies additional CVE patches, and builds the result with a Docker package revision.
Debian package versions
APT uses package versions to recognize upgrades. Docker's rebuild must sort
after the Debian package it is based on, while allowing later Debian updates to
sort newer. For example, the coreutils
definition
builds 9.7-3+deb13u0+dhi6 from Debian source version 9.7-3.
Debian's stable-update numbering starts at u1. Docker uses u0 when the
Debian version has no stable-update suffix. Without this, a suffix such as
+dhi6 sorts above +deb13u1, so a rebuild based on Debian's security update
could appear older than the package it should replace.
With u0, a rebuild based on a later Debian update sorts newer, even when
Docker's rebuild counter resets from 6 to 0:
9.7-3 < 9.7-3+deb13u0+dhi6 < 9.7-3+deb13u1+dhi0Docker retains an existing Debian update suffix such as +deb13u1 and appends
its own rebuild revision. The dhi revision identifies a Docker rebuild, not
the number of security fixes.
Signatures and build provenance
Docker provides cryptographic signatures and package-level attestations. Signatures let your package manager check that the packages come from Docker and haven't been tampered with. Build provenance records the inputs and process used to build a package, so you can trace it back to its source.
For instructions, see Verify packages.
How package fixes reach images
When Docker publishes a package update, it rebuilds affected DHI images within their support window. These images go through the image build and testing process before publication.
Deploy the updated images to use the fix. If you build your own images on top of DHI or install hardened packages in your own images, rebuild and redeploy them with the updated base image or packages.
Use hardened packages
Supported DHI images include hardened system packages. You can also add them through image customization or configure your package manager to use Docker's package repositories. That guide includes the repository addresses, signing keys, and authentication instructions. Access to additional security-patched and compliance packages depends on your subscription.
See Use Hardened System Packages for package availability, subscription details, installation, and verification.
For image-level CIS compliance and its scope, see CIS Benchmark. Using hardened packages alone does not establish CIS compliance for your own image.