Join our Newsletter — 33% off our NHI Course
Home› Glossary› Cyber Security› CI Image Scanning
Cyber Security

CI Image Scanning

← Back to Glossary
By NHI Mgmt Group Updated November 3, 2026 Domain: Cyber Security

CI image scanning is the automated inspection of container images during continuous integration to find known vulnerabilities, misconfigurations, malware and policy violations before deployment. It checks the image layers, packages and metadata against security rules, so insecure builds can be blocked or flagged before they reach registries or runtimes.

What CI image scanning actually checks

CI image scanning inspects a container image while it is still being built, before that image is promoted to a registry or runtime. The check is usually automated and compares layers, packages and metadata against rules for vulnerabilities, misconfigurations, malware indicators and policy violations.

This makes it a build-time control rather than a deployment-time or runtime-only safeguard. It is most useful when teams want insecure images stopped early, while the pipeline still has enough context to fail the build, flag the artifact, or require manual review.

Because the scan happens in continuous integration, it is tightly connected to the quality of the image being produced, not just the environment where it will eventually run. That is why Container Image Security Guide is the natural home for the wider set of image hardening and provenance practices around scanning.

Why image layers and build artefacts matter

Container images are layered artefacts, so a weakness in one layer can survive into the final image even if a later layer appears clean. Package vulnerabilities, inherited base-image issues and stale build artefacts can all persist across rebuilds unless the image is actually inspected, not just trusted because the Dockerfile looks reasonable.

CI image scanning is therefore a supply-chain and build-quality checkpoint. It helps reveal problems that are easy to miss in code review alone, including vulnerable packages pulled from a base image, unexpected files left behind by the build, or metadata that signals a risky configuration.

That is also why registry controls matter alongside scanning. A scan can stop bad artefacts earlier, but a registry still needs integrity and access controls so a known-bad image is not later reintroduced through a different tag or pipeline path. The Container Registry Security Guide covers the adjoining controls that make scan results stick.

What good CI image scanning needs to look for

A useful scanner does more than count CVEs. It needs to inspect the image contents, evaluate the build metadata, and produce results that developers can act on before promotion. In practice that means checking for known vulnerabilities, risky configuration patterns, embedded malware indicators, and violations of the organisation's container build policy.

Coverage matters as much as tooling. If the scan only examines package lists, it can miss secrets, unsafe defaults or artefacts hidden in other layers. If it only checks one data source, it can create blind spots and noisy results that teams start to ignore.

For organisations that also care about secrets embedded in images, image scanning should connect to a broader secret-detection workflow. The same pipeline that catches package risk may also need to stop images that contain credentials baked into layers, environment variables or build artefacts, which is why How to find hard-coded secrets in container images is a practical companion reference.

How CI image scanning changes build decisions

The main value of CI image scanning is not the report, it is the decision it enables. Teams can fail the build, quarantine the artefact, require exception handling, or let the image proceed with a tracked waiver when the risk is understood and accepted.

That decision point only works when the pipeline is integrated with policy. Scanning should be aligned to the organisation's release rules so that severe findings block promotion, lower-severity findings are triaged consistently, and developers know which issues are acceptable to defer.

For teams that need a deeper operational model, the build pipeline should also support secret-safe construction and post-scan remediation. The Secrets in Container Images and Build Artefacts Guide explains why deletion alone does not remove sensitive material from image history and why rebuild discipline matters after a bad scan.

Risk and Threat Considerations

CI image scanning reduces the chance that a vulnerable or compromised container image reaches production, but it is only effective if the pipeline actually enforces the result. Weak enforcement creates a false sense of safety, especially when teams rely on manual review or allow repeated exceptions for the same classes of findings.

Failure mechanism: An attacker, careless dependency update, or misconfigured build can introduce risky content into an image layer, and if the scan is incomplete or non-blocking, that artefact can be promoted unchanged into registries and deployment targets.

Impact: The organisation may ship exploitable packages, unsafe defaults, hidden secrets, or malicious content into runtime environments, increasing the chance of compromise, lateral movement, or repeated redeployment of the same bad image.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

NIST SP 800-190, NIST SP 800-53 Rev 5 and CIS Controls v8 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
NIST SP 800-190Application Container Security GuideDefines container image, registry and runtime security concerns for scanning and promotion.
Recommendation — Use the guide to align image scanning with build, registry and runtime container protections.
NIST SP 800-53 Rev 5SI-2 — Flaw RemediationImage scanning exists to find vulnerable components before deployment.
CM-2 — Baseline ConfigurationScanning checks container image configuration against approved build baselines.
Recommendation — Track and remediate vulnerable image findings before promotion. Define approved image baselines and flag deviations during CI scans.
CIS Controls v8CIS-10 — Malware DefensesImage scanning can detect malicious content or indicators in build artefacts.
CIS-3 — Data ProtectionContainer image scans often need to catch embedded secrets and sensitive material.
Recommendation — Scan container images for malware indicators before release. Block images that contain sensitive data or embedded credentials.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on November 3, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org