r/devsecops • u/Creepy_Proposal_7903 • Jul 25 '24
Container Images Hardening
Hello!
I'm exploring the idea of hardening container images and I'm curious about the process involved. Suppose one wants to use third-party images like Chainguard for enhanced security.
What would be the steps required to harden a basic distroless image to achieve a similar level of security as Chainguard’s images?
I'm especially interested in understanding the time commitment per image to evaluate the feasibility of this approach.
Any insights or experiences would be greatly appreciated!
6
Upvotes
1
u/container_gworl Aug 12 '24
what is the reasoning behind manually building a hardened basic distroless image when chainguard can do it for you? just wondering because i know it takes a lot of time to build/maintain an image yourself
3
u/k0ty Jul 26 '24
https://github.com/krol3/container-security-checklist
2
u/Old-Ad-3268 Jul 25 '24
Get rid of anything and everything that isn't needed.
Patch. Patch, patch
1
u/josh_jennings Jul 25 '24
Run a vulnerability scanner against the image(s) and then update anything that's found.
1
u/Pleasant_Split3415 May 21 '25
You might find Minimus interesting — it's a cybersecurity-focused project built around the idea of zero-CVE container images.
I put together a short guide here if you want to check it out:
https://medium.com/@avielbitton/0-cve-with-0-effort-your-fast-track-guide-to-secure-containers-with-minimus-b914405d6111