VAValid Al-DzhazzarResearch blog · MSc Computer Science with Cybersecurity
Post 1 · Week 1 · The research

My Research

My project asks whether making container images smaller really makes them safer, or only makes vulnerability scanners report less. This post sets out my field, the problem, my question and what I will build.

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:

This is a quantitative experiment (Leavy, 2017). Post 3 explains how I will analyse it.

3 appsPython · Node.js · Go
×
5 strategiesFull · Slim · Alpine · Multi-stage · Distroless
=
15 imagesdigests pinned
Trivyfrozen database
Grypefrozen database
Build manifestwhat is really on disk
Figure 1. Study design: three apps built five ways, each image checked by two scanners and against a build manifest.

What I will deliver

  1. 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.
  2. A reproducible benchmark: the 15 images' Dockerfiles, scan results and scripts.
  3. 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

  1. 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.
  2. 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.
  3. 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).
  4. 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.
  5. Leavy, P. (2017) Research design: quantitative, qualitative, mixed methods, arts-based, and community-based participatory research approaches. New York: The Guilford Press.
  6. 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.