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

Image Scanning

← Back to Glossary
By NHI Mgmt Group Updated October 31, 2026 Domain: Cyber Security

Image scanning is the process of inspecting container images before deployment for known vulnerabilities, malware, misconfigurations, and risky dependencies. It helps teams catch problems early in the pipeline, before a flawed image reaches production and becomes harder to contain or remediate.

What Image Scanning Does in a Container Delivery Pipeline

Image scanning is the control that inspects a built container image before it is deployed. It is meant to catch known vulnerabilities, malware, misconfigurations, and risky dependencies while the image is still easier to replace, rather than after it has been promoted into runtime environments.

Because the scan happens on the packaged artifact, it gives teams a single checkpoint that can be repeated across build, registry, and release stages. That makes it useful for catching issues that may have been introduced by the base image, inherited from dependencies, or left behind during the build process.

What Image Scanning Looks For

A useful scan is not just a vulnerability lookup. It typically looks for exploitable package versions, suspicious binaries, configuration drift, exposed credentials, and dependency combinations that create avoidable risk. In practice, that means it can surface problems in both the application layer and the operating system layer inside the image.

It also helps teams distinguish between a clean build and a clean runtime. An image can pass unit tests and still carry unsafe libraries, stale packages, unsafe defaults, or artefacts that should never have been packaged in the first place.

When scanning is tied to Container Registry Security Guide, it becomes part of a broader registry control story, including trusted publishing, tag discipline, and inspection before images are promoted onward.

Why Image Scanning Matters

The main value of image scanning is early containment. Fixing an image before release is usually cheaper than chasing the same defect after deployment, especially when the image has already been copied into multiple clusters or environments. It also gives release teams a concrete gate instead of relying on manual review alone.

Scanning is especially valuable because container images are reusable artefacts. A flawed image can be pulled many times, deployed many places, and stay alive long after the original build context has changed. That makes image-level defects more persistent than a one-off host misconfiguration.

For teams building hardened pipelines, Container Image Security Guide provides the adjacent controls that make scanning more effective, including base image selection, signing, and provenance-aware handling of images.

How Organisations Use Image Scanning Well

Image scanning works best when it is part of a layered review model, not a single yes-or-no gate. Teams usually combine it with dependency inventory, registry policy, and deployment controls so that a scan result has a clear owner and a clear decision path. That reduces the chance of ignoring findings because nobody knows whether they belong to the build team, platform team, or application owner.

It also helps to scan the exact image that will be deployed, not only source code or a local build artefact. That matters because what ends up in the image may differ from what developers expected, especially when build stages, package managers, or copied files introduce extra content.

For the specific problem of hidden secrets in images, How to find hard-coded secrets in container images is the most direct companion, because secret inspection is often a separate and equally important check from vulnerability scanning.

Risk and Threat Considerations

Image scanning reduces the chance that a vulnerable or contaminated image is deployed repeatedly, but it does not eliminate the underlying risk. A missed finding can spread quickly across environments because the same image is often reused, mirrored, or cached in several places. That makes image defects a high-leverage failure mode in modern delivery pipelines.

Failure mechanism: Attackers and defenders are both dealing with an immutable artefact, so a single missed package flaw, malicious layer, or embedded secret can be replicated at scale before anyone notices.

Impact: If the image reaches production, remediation becomes harder because the problem is no longer confined to one workstation or one build, and downstream systems may already have trusted and deployed the 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-53 Rev 5, CIS Controls v8, NIST CSF 2.0 and OWASP ASVS set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
NIST SP 800-53 Rev 5SI-2 — Flaw RemediationImage scanning exposes known flaws in images before deployment.
CM-2 — Baseline ConfigurationScanned images should align with approved hardened baselines.
Recommendation — Use SI-2 to detect and remediate vulnerable image components before release. Use CM-2 to compare images against approved secure baselines before deployment.
CIS Controls v8CIS-16 — Application Software SecurityImage scanning supports secure software delivery and release hardening.
Recommendation — Apply CIS-16 to verify packaged software and block risky image releases.
NIST CSF 2.0PR.DS-6 — Data-at-Rest is ProtectedScanning images can identify embedded sensitive material and exposed dependencies.
Recommendation — Use PR.DS-6 to protect sensitive material that may be embedded in container images.
OWASP ASVSV13 — ConfigurationImage scanning checks packaged configuration for unsafe defaults and drift.
Recommendation — Use V13 to verify container image configuration before deployment.

Practitioner Guidance

Why practitioners should care: Image scanning is only useful when its findings map to an actual release decision. Treat scan output as pipeline evidence, not noise, and make sure teams know which severities block deployment and which require exception handling.

What to watch for: Repeated false positives, stale base images, and scans that only run late in the lifecycle are common signs that the control exists on paper but is not reducing real exposure. A scan that does not cover the image actually deployed is a governance gap, not a technical safeguard.

Practitioner takeaway: The best image scanning programmes are integrated with registry policy, dependency control, and release ownership, so that every high-confidence finding has a clear path to fix, defer, or reject.

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 October 31, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org