The data I will collect
- Scanner output from Trivy and Grype: each CVE with its component, version, severity and image layer.
- A build manifest: every executable and shared library on disk, matched to a package record (via Syft), a Dockerfile or lockfile entry, or "unknown". Unrecorded files are checked with cve-bin-tool and by hand.
- Attack-surface counts: executables, shared libraries, setuid files, a shell, a package manager.
- Image size and build time: 10 timed builds per image.
- Operational cost: build and run failures, and the time to diagnose one seeded fault using only the image's own tools.
The vulnerability databases are secondary data: someone else collected them and they change every day. That is why I freeze and date both databases, scan all 15 images in one serial run, and repeat the run once to check the results are the same.
How findings are matched
The two scanners name things differently, so I need one unit of comparison. A finding is one CVE in one component at one version. GitHub (GHSA) and Linux distribution advisory IDs are mapped to their CVE where one exists, and kept separate where none does. Severity is each scanner's own rating, and NVD CVSS v3.1 is used only in the sensitivity check. For H2b I rerun both scanners on the same frozen databases, counting only CVEs with a fix (Trivy --ignore-unfixed, Grype --only-fixed). During the smoke test I also read the running process's memory map, so the manifest records which shared libraries are actually loaded, not only which are on disk. Finally, I report how far the scanners agree as their overlap for each image: findings both report, divided by all findings either reports. That figure is descriptive and carries no verdict.
How the H1 and H2 numbers are calculated. For each app, variant and scanner, the H1 reduction is Slim's count of high and critical CVEs minus the variant's. The H2a share is the number of high and critical CVEs in components that the manifest shows are present but neither scanner reports, divided by that reduction. Those CVEs are found by looking up each unreported component with cve-bin-tool and checking it by hand. The H2b share is the part of the reduction that disappears when only CVEs with a fix are counted, divided by the H1 reduction. I calculate each share separately for Trivy and Grype, and a rule is met in an app only if it is met for both. Where a variant shows no reduction, I report the counts and give no share. These choices are recorded here, before any data, and change no threshold.
Why a quantitative method
Urban and van Eeden-Moorefield (2018, p. 25) advise letting "your research question determine the approach and methods". My question asks how many and how much, so it needs a quantitative experiment (Leavy, 2017). In quantitative work, expected results are stated before data collection through specific hypotheses (Urban and van Eeden-Moorefield, 2018, p. 27), which is how my design already works. Within cyber security research, Edgar and Manz (2017, p. 74) call this an applied experiment: "the execution of a controlled test to determine how a system performs", often using benchmarks. They also suggest that where comparable solutions already have a benchmarking standard, it "might be good to follow that standard" so results can be compared (Edgar and Manz, 2017, p. 89). I found no benchmarking standard specific to container scanning, so post 4 checks my plan against the general ACM SIGSOFT Benchmarking standard instead. Using two scanners plus a manifest is triangulation inside one quantitative method. It is not mixed methods.
The Week 3 lecture offered five tests of a sound method: contextual sensitivity, creativity, conceptual awareness, coherence and critical reflection (University of Sunderland, 2026). My design fits a how-many question (contextual sensitivity) and adds a build manifest so that scanner output is checked rather than trusted (creativity). It takes a measurement-first, positivist stance (conceptual awareness). The scanners, the manifest and the timings all feed one set of decision rules (coherence), and the threats-to-validity table below is my critical reflection.
Why descriptive, within each app
Three apps are three selected cases, not a random sample. Statistical tests need an adequate sample size, and averages alone "can be misleading" (Arcuri and Briand, 2011, p. 1). With three apps a p-value would mean very little. So I will report the size and direction of each difference inside each app, compare the apps side by side, and claim nothing beyond the 15 images. The results can show whether hidden components exist and how large their effect can be, not how common they are. For timings I use the median and the interquartile range, which, unlike the range, does not depend on the two most extreme values (Hand, 2016, p. 292).
Timing that can be trusted
A single timing can mislead. Georges, Buytaert and Eeckhout (2007, p. 57) show that common benchmarking practice "can be misleading, and can even lead to incorrect conclusions" when the analysis is not statistically rigorous. Wingate (2025, p. 195) makes the same point about projects in general: "assumptions made on single data points" are a classic measurement mishap. I will time 10 builds per image on one host, one build at a time, with caches cleared and base images pulled in advance.
The decision rules
| Hypothesis | Supported if | Otherwise |
|---|---|---|
| H1 Fewer CVEs | Alpine, Multi-stage and Distroless each have at least 50% fewer high/critical CVEs than Slim, on both scanners, in 2 of 3 apps. Full is shown for context only | Not supported |
| H2a Hidden components | For Multi-stage or Distroless, high/critical CVEs in components the manifest shows present but neither scanner reports equal at least 10% of that variant's H1 reduction in 2 of 3 apps. If there is no reduction, the count is reported | Refuted if none found; otherwise inconclusive |
| H2b Fix-available only | At least 25% of a variant's reduction disappears in 2 of 3 apps | Refuted if under 10% in all; otherwise inconclusive |
The thresholds will not move after the pilot. I will also show two sensitivity checks, using NVD CVSS v3.1 scores only and treating unscored CVEs as high, but these sit beside the verdict rather than replacing it (Nosek et al., 2018).
What counts as operationally hardened
The rules above judge each hypothesis. They do not yet say when a strategy has worked, so I define it here, using only numbers already fixed in my proposal. A strategy is operationally hardened for an app only if it meets the H1 reduction against Slim on both scanners, that reduction survives both checks on it (hidden components below 10% of it under H2a, and less than 25% of it lost under H2b), and the image still builds, passes its smoke test and builds within 20% of Slim's median time. The 20% is the build-time tolerance already fixed for my advisor, which compares each variant with the input Dockerfile. In the experiment there is no input Dockerfile, so Slim plays that role, since it is the standard image every strategy is compared with. This definition is new in PROM05, but it adds no new threshold. The label means "worth using", not "proven secure". For example, an H2b loss of 20% leaves H2b inconclusive under the fixed rule, yet still passes this test. So beside each label I report the strategy's H2a and H2b status and its count of files the manifest could only mark as unknown.
How cost will be judged
The second half of my question asks what hardening costs. Cost gets no separate hypothesis; its one pass line, the 20% build-time tolerance, is already part of the definition above. For each app I will report every strategy against Slim: median build time with its IQR, image size, build and run failures, whether a shell and package manager remain, and the time to diagnose one planted fault using only the image's own tools. The 20% build-time tolerance is drawn as a reference line, so a reader can see at a glance which strategies stay inside it. A strategy that fails to build or run is kept in the results as a delivery cost, not dropped.
Threats to validity
| Type | Threat | Control |
|---|---|---|
| Construct | A CVE count is not the same as what an image contains | Build manifest as the reference inventory; files it cannot place are reported as unknown, never as clean |
| Construct | Each strategy bundles a distribution, a C library and a way of packaging the runtime | Results describe whole configurations, not one isolated cause |
| Internal | Database changes, timing noise | Frozen databases, one serial run repeated; one build at a time |
| External | Three small self-written apps, each deliberately linking one native OS library so the hidden-component path exists | No generalisation; report whether the effect exists and how large it can be, not how common it is |
| Conclusion | Three replications | Descriptive analysis, no significance claims |
The four types come from Wohlin et al. (2024). They also map onto the Benchmarking standard's demand to discuss construct validity, covered in post 4.
How each outcome will be judged
| Outcome | Measure | Success criterion | Evidence |
|---|---|---|---|
| O1 Ethics | Self-assessment | Approved before any data collection (gate); approval window 12 to 18 January | Approval record |
| O2 Harness | Pilot run | Flags the planted unrecorded library, and every file in the pilot image is assigned to a package, a manifest entry or "unknown" (gate) | Pilot log |
| O3 Measurement | 15 images, 2 scanners, frozen databases | Repeat run gives identical findings; every scanner miss reported privately before release | Scan outputs, disclosure log |
| O4 Hypotheses | H1, H2a, H2b | Each gets one verdict by its fixed rule: H1 supported or not supported; H2a and H2b supported, inconclusive or refuted. Sensitivity checks shown beside each | Per-app result tables |
| Hardening and cost | Definition above; cost against Slim | Each strategy labelled operationally hardened or not, per app, with its H2 status, unknown-file count and cost against the 20% line | Per-app result tables |
| O5 Advisor | On 5 unseen Dockerfiles, vs always-Slim: share of variants that build and run; precision and recall of its warnings against the full H2a protocol; confident recommendations the full protocol contradicts; runtime | Targets, new in PROM05: every recommended variant builds and passes its smoke test; no confident recommendation contradicted by the full protocol; fewer high and critical CVEs than always-Slim in at least 3 of 5, where a decline counts as not beating always-Slim; under 30 minutes per Dockerfile. Precision and recall reported with their counts | Evaluation report |
| O6 Release | Guidance, dataset, tool | A clean rerun from the README on a fresh machine reproduces the published counts with the frozen databases | Public repository, rerun log |
Figure 2. Evaluation framework: what counts as success for each outcome, and what evidence will show it.
References
- Arcuri, A. and Briand, L. (2011) 'A practical guide for using statistical tests to assess randomized algorithms in software engineering', Proceedings of the 33rd International Conference on Software Engineering (ICSE '11). New York: ACM, pp. 1-10. doi: 10.1145/1985793.1985795.
- Edgar, T.W. and Manz, D.O. (2017) Research methods for cyber security. Cambridge, MA: Syngress (Elsevier).
- Georges, A., Buytaert, D. and Eeckhout, L. (2007) 'Statistically rigorous Java performance evaluation', Proceedings of the 22nd ACM SIGPLAN Conference on Object-Oriented Programming, Systems, Languages and Applications (OOPSLA '07). New York: ACM, pp. 57-76. doi: 10.1145/1297027.1297033.
- Hand, D.J. (2016) 'Data analysis: elementary statistics', in Greenfield, T. and Greener, S. (eds) Research methods for postgraduates. 3rd edn. Chichester: Wiley, pp. 289-298. doi: 10.1002/9781118763025.ch28.
- Leavy, P. (2017) Research design: quantitative, qualitative, mixed methods, arts-based, and community-based participatory research approaches. New York: The Guilford Press.
- Nosek, B.A., Ebersole, C.R., DeHaven, A.C. and Mellor, D.T. (2018) 'The preregistration revolution', Proceedings of the National Academy of Sciences, 115(11), pp. 2600-2606. doi: 10.1073/pnas.1708274114.
- University of Sunderland (2026) PROM05 Research Project Management, Week 3: research methods [recorded lecture]. University of Sunderland Canvas (Accessed: 23 November 2026).
- Urban, J.B. and van Eeden-Moorefield, B.M. (2018) Designing and proposing your research project. Washington, DC: American Psychological Association.
- Wingate, L.M. (2025) Project management for research and development: guiding innovation for positive R&D outcomes. 2nd edn. Boca Raton, FL: CRC Press.
- Wohlin, C., Runeson, P., Höst, M., Ohlsson, M.C., Regnell, B. and Wesslén, A. (2024) Experimentation in software engineering. 2nd edn. Berlin, Heidelberg: Springer. doi: 10.1007/978-3-662-69306-3.