My field
I work with CI/CD pipelines, where software is packaged into container images and checked by a vulnerability scanner before it ships. My research is in container security, and in particular in how we measure it. Many of the vulnerabilities a scanner reports for a containerised application can come from the base image it is built on rather than from the application itself. In one case, 65 of an application's 69 reported vulnerabilities (94.2%) came from the base image (Haque and Babar, 2022).
The problem
The usual answer is hardening: building on a smaller base such as Slim, Alpine or Distroless, or using a multi-stage build that copies only the finished application into a fresh runtime image. Smaller bases do report fewer vulnerabilities (Maruszczak, Walkowski and Sujecki, 2022). But scanners mostly work from package records. If a library is copied into an image without its record, the scanner may not see it. In one comparison, even the best-performing scanner missed about 34% of known vulnerabilities (Javed and Toor, 2021, p. 1), and SBOM tools struggle with software installed outside a package manager (Kawaguchi, Hart and Uchiyama, 2024). So a falling count could mean there is less to find, or only that there is less the scanner can see. I call the second case false assurance.
My question
Aim: to evaluate whether container base image hardening delivers the vulnerability reduction its proponents claim, and at what measurable cost to build performance and operational workflow.
Research question: to what extent does container base image hardening reduce genuine exploitable attack surface, rather than merely reducing scanner-visible CVE counts, and what cost does it impose on build and delivery?
By "genuine" I mean components that are actually on disk, established from a build manifest. I assume an attacker who can already run code inside the container, so anything on disk could be used. A CVSS exploitability score is therefore an indicator of risk, not proof that a vulnerable component can be reached.
How I will test it
I will write three small REST services in Python, Node.js and Go, and build each with five strategies: Full, Slim, Alpine, Multi-stage and Distroless. That gives 15 images. Trivy and Grype will scan every image against frozen databases. I chose this pair because they were the most consistent pair in the comparison by Churakova, Ekstedt and Schmid (2026). I will then compare what they report with a build manifest of what is really on disk. Three hypotheses, with thresholds I fixed before collecting any data, decide the outcome:
- H1: Alpine, Multi-stage and Distroless each report at least 50% fewer high and critical CVEs than Slim, on both scanners, in at least 2 of 3 apps.
- H2a: for Multi-stage or Distroless, the high and critical CVEs in components that the manifest shows are present, but that neither scanner reports, equal at least 10% of that variant's H1 reduction, in at least 2 of 3 apps. If a variant shows no reduction, I report the count instead.
- H2b: when only CVEs with an available fix are counted, at least 25% of a variant's reduction disappears, in at least 2 of 3 apps.
This is a quantitative experiment (Leavy, 2017). Post 3 explains how I will analyse it.
What I will deliver
- A container hardening advisor: a Python command-line tool that takes a single-stage Dockerfile, builds hardened variants, scans them and recommends one, or declines when the scanners cannot see enough. It reports; it does not fix.
- A reproducible benchmark: the 15 images' Dockerfiles, scan results and scripts.
- Selection guidance on choosing a hardening strategy in CI/CD pipelines.
Where the project stands
In project management terms, PROM04 was the initiation stage, PROM05 is planning, and PROM06 will cover executing, monitoring and closing. The scope is fixed: three apps built five ways, two scanners, and an advisor that reports but never fixes anything. I see four critical success factors: rules fixed before any data; all 15 images measured against frozen databases; each hypothesis judged by its own rule; and a benchmark that others can rerun. The next three posts plan the tools, the method and the evaluation.
References
- Churakova, Y., Ekstedt, M. and Schmid, L. (2026) 'Vexed by VEX tools: consistency evaluation of container vulnerability scanners', in Al-Mallah, R. et al. (eds) Foundations and Practice of Security: FPS 2025. Lecture Notes in Computer Science, 16402. Cham: Springer, pp. 139-156. doi: 10.1007/978-3-032-20018-1_8.
- Haque, M.U. and Babar, M.A. (2022) 'Well begun is half done: an empirical study of exploitability & impact of base-image vulnerabilities', 2022 IEEE International Conference on Software Analysis, Evolution and Reengineering (SANER). IEEE, pp. 1066-1077. doi: 10.1109/SANER53432.2022.00124.
- Javed, O. and Toor, S. (2021) 'Understanding the quality of container security vulnerability detection tools', arXiv preprint arXiv:2101.03844. Available at: https://arxiv.org/abs/2101.03844 (Accessed: 18 November 2026).
- Kawaguchi, N., Hart, C. and Uchiyama, H. (2024) 'Understanding the effectiveness of SBOM generation tools for manually installed packages in Docker containers', Journal of Internet Services and Information Security, 14(3), pp. 191-212. doi: 10.58346/JISIS.2024.I3.011.
- Leavy, P. (2017) Research design: quantitative, qualitative, mixed methods, arts-based, and community-based participatory research approaches. New York: The Guilford Press.
- Maruszczak, A., Walkowski, M. and Sujecki, S. (2022) 'Base systems for Docker containers: security analysis', 2022 International Conference on Software, Telecommunications and Computer Networks (SoftCOM). IEEE, pp. 1-5. doi: 10.23919/SoftCOM55329.2022.9911523.