Container Security
Bottom-up container assembly emerges as solution to distroless security blindness
A new generation of OCI images promises to resolve the standoff between minimal attack surfaces and maintainable security scanning.
1/4
The New Stack
The containerization industry faces a fundamental trade-off: make images smaller and safer, or keep them scannable and auditable. The rise of distroless containers—stripped-down images free of shells and package managers—has made it harder for security teams to actually verify what's running inside them.
The distroless paradox#
Full base images have long been the standard. They include complete operating systems bundled with application code, giving developers convenience but leaving a sprawling attack surface. Every unused shell, package manager, and utility tool becomes a potential vector for compromise if an application is breached.
The distroless approach promised relief by removing everything except what applications strictly need to function. However, this aggressive trimming creates a critical blind spot: the package metadata that vulnerability scanners depend on often gets stripped away along with the extra utilities.
Security scanners like Trivy now flag these images with warnings about missing OS package information. Research has shown that without complete package manifests, scanners generate significant false negatives—failing to catch real vulnerabilities simply because they lack the necessary context to understand what's actually installed. As a result, organizations are left with containers that may be secure in practice but impossible to prove safe to compliance auditors.
A third path: Building from scratch#
Rather than starting with a bloated base and cutting it down, a new methodology reverses the process—assembling minimal containers by hand from the ground up. This approach, exemplified by tools like Chisel and Rockcraft, works in three stages.
Precision slicing: Instead of importing entire software packages, developers slice standard Linux packages from trusted archives (like Ubuntu's) into granular pieces, keeping only what applications actually need. Because these slices retain their original metadata, security tooling remains fully functional.
Declarative builds: Traditional container builds rely on imperative Dockerfiles where command order matters and layer caching introduces fragility. Bottom-up assembly instead uses declarative configuration files (like rockcraft.yaml) that specify an application's dependencies in simple YAML. A build tool then automatically fetches packages, applies the requested slices, compiles everything, and outputs a standard OCI-compliant image.
Runtime stability: Minimal containers face an operational challenge: without a process manager, child processes that exit leave behind "zombie" processes that consume resources until the container crashes. Tools like Pebble provide a lightweight service manager that runs as the container's entry point and safely cleans up these orphaned processes without reintroducing the bloat of full base images.

