Teams should treat image scanning as a control that checks both known vulnerabilities and suspicious runtime behaviour. A useful approach combines signature based inspection with active sandbox testing, then blocks or flags images that exceed policy. The goal is not just finding flaws, but reducing the chance that unsafe images move from build pipelines into production containers.
What image scanning must prove before a container is allowed into production
container image scanning is most useful when it answers a narrow but important question: should this artifact be trusted enough to run in a production cluster? That means evaluating more than package vulnerabilities alone. Security teams need to know whether the image contains known CVEs, risky binaries, misconfigurations, embedded secrets, unsigned provenance, or other traits that would make the image unsafe to promote. The control is a promotion gate, not a late-stage reporting exercise.
This matters because container images are often reused across environments, so one weak image can propagate quickly and consistently once it is approved. A scan that only produces a vulnerability list may miss whether the image behaves in a way that is inconsistent with its declared purpose, or whether it was built from an untrusted source. Teams also need to distinguish between findings that are tolerable in a development image and findings that should block production use. The right question is not whether an image is perfect, but whether its residual risk is acceptable for the target environment. In practice, many security teams discover weak promotion criteria only after a build pipeline has already normalised risky images into release candidates.
How teams should test image quality in the promotion pipeline
A practical promotion decision usually combines static inspection, policy evaluation, and, where appropriate, dynamic validation. Static scanning checks the image contents: operating system packages, language dependencies, vulnerable libraries, embedded secrets, hardcoded keys, unnecessary tools, and known malicious indicators. Policy checks then decide whether those findings are acceptable for the target stage. If the image is intended for production, the bar should usually be higher than for an internal test environment.
Dynamic or sandbox-style analysis adds value when a team wants to observe what the image actually does at runtime, not just what is present in its filesystem layers. That can reveal suspicious network activity, privilege assumptions, unpacking behaviour, or startup actions that a file-only scan will not expose. This is especially useful when the image comes from a third party, when the build chain is not fully trusted, or when the image bundles complex startup scripts. For production promotion, the question is whether the image can run without unexpected outbound connections, privilege escalation attempts, or reliance on undeclared runtime dependencies.
- Set separate policy thresholds for development, staging, and production.
- Block promotion on critical vulnerabilities, exposed secrets, or unknown provenance.
- Use sandbox execution for images that are high-value, externally sourced, or behaviourally sensitive.
- Require traceability from the scan result back to the specific image digest, not just a tag.
Teams should also keep in mind that scans are point-in-time controls. An image that was acceptable yesterday may become unacceptable today when new vulnerabilities are disclosed or when the base layer ages out of support. That is why promotion criteria need to be paired with repeatable re-scanning and clear ownership for exceptions. This guidance breaks down when organisations treat a single clean scan as permanent approval rather than as a time-bounded assessment.
Where image scanning produces false confidence or unnecessary noise
Tighter promotion gates often increase operational overhead, requiring organisations to balance release speed against the cost of deeper inspection. The main tradeoff is that not every finding deserves the same response, and not every image deserves the same level of scrutiny. A low-risk utility image may only need signature and vulnerability checks, while a business-critical image with network access and elevated runtime permissions may justify deeper behavioural analysis.
There is also a difference between exploitable risk and theoretical exposure. Some scanners surface large numbers of issues that are irrelevant to the actual runtime path, especially when the image contains dormant components, unused language packages, or base layers inherited from broad upstream distributions. Good teams tune their policy to focus on what would materially affect the production deployment, rather than treating every alert as an automatic blocker. The operational consensus is still uneven on exactly how much behavioural analysis should be required for every image, but there is broad agreement that production promotion should not rely on scan output alone. The OWASP Non-Human Identity Top 10 is relevant only when images carry service credentials, tokens, or other machine identities that materially change the promotion risk.
Another edge case is signed but unsafe software. A valid signature can confirm origin, but it does not guarantee the image is fit for your environment or free from risky dependencies. Likewise, a clean vulnerability report does not mean the image is trustworthy if the build source, update path, or runtime behaviour remains opaque. The best promotion model treats scanning as one decision input, not as a substitute for provenance, policy, or runtime control.
Risk and Threat Considerations
Container image promotion creates a supply-chain exposure point because a single approved artifact can be replicated across many workloads. The material risk is that an image may look acceptable at build time while still carrying exploitable vulnerabilities, hidden payloads, or unsafe runtime assumptions that become damaging once deployed.
Failure mechanism: Weak promotion gates allow known-bad or untrusted images to pass on the strength of a partial scan, a stale signature check, or a tag-based approval process. Adversaries can abuse compromised build sources, poisoned base images, or malicious dependencies to place harmful code into an image that appears legitimate enough for deployment.
Impact: The result can be production compromise, lateral movement from a container, exposure of secrets or internal services, or repeated re-deployment of the same unsafe artifact across environments.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
MITRE ATT&CK address the attack and risk surface, while CIS Controls v8 and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| CIS Controls v8 | CIS 16 — Application Software Security | Container image scanning evaluates software artifacts before release. |
| CIS 4 — Secure Configuration of Enterprise Assets and Software | Images should be checked for risky configuration and unnecessary components. | |
| Recommendation — Apply CIS 16 to scan and gate container images before production promotion. Use CIS 4 to enforce secure image configuration and remove unnecessary components. | ||
| NIST CSF 2.0 | PR.IP-1 — Baselines for technology, software, and systems | Promotion gating depends on controlled, approved software baselines. |
| DE.CM-8 — Vulnerability scans are performed | Image scanning is a vulnerability discovery and validation activity. | |
| Recommendation — Use PR.IP-1 to define and enforce approved image baselines before release. Use DE.CM-8 to run vulnerability scans on images before they are promoted. | ||
| MITRE ATT&CK | T1195 — Supply Chain Compromise | Unsafe images can be introduced through compromised build and distribution chains. |
| Recommendation — Map image provenance checks to T1195 and hunt for compromised build inputs. | ||
Practitioner Guidance
What to prioritise: Treat promotion as a risk decision, not a scanner verdict. Prioritise what would break production trust first: unpatched critical vulnerabilities, embedded secrets, unsigned or untraceable provenance, and runtime behaviour that does not fit the service’s intended role.
What to verify: Confirm that the scan is tied to the immutable image digest, that the policy is environment-specific, and that exceptions are explicit and owned. If the same image can be promoted with different results across environments, the policy is probably too vague to govern production safely.
Practitioner takeaway: The strongest image-scan programmes do not try to prove an image is harmless; they prove the image is sufficiently understood, sufficiently bounded, and sufficiently traceable to justify production use.
Related resources from NHI Mgmt Group
- What should security teams evaluate before using compound AI systems in production?
- How should security teams evaluate AI agent trust before production use?
- How should security teams evaluate GenAI models before production?
- How should security teams evaluate AI wrappers before putting them in production?