What is container image scanning? How it works, best practices, and top tools

What is container image scanning? How it works, best practices, and top tools

Santerra Holler October 07, 2026

What is container image scanning? How it works, best practices, and top tools

Book a Demo

Updated on November 4, 2026

Container image scanning is the automated inspection of a container image’s layers, operating system packages, application dependencies and configuration to find known vulnerabilities, exposed secrets and risky settings before and after the image is deployed. It is one layer of container security. It can stop a vulnerable build before it reaches production, but it cannot see what a container does once it starts. This guide covers what scanners inspect, how they work step by step, the best practices teams enforce in CI/CD and Kubernetes, how the leading tools compare as of November 2026, and which gaps need other controls.

Key takeaways

  • ✓Container image scanning builds an inventory of every package in an image and matches it against CVE databases and vendor advisories.
  • ✓Images should be scanned in CI before push, in the registry on a schedule, and again when they run, because new CVEs appear after an image is built.
  • ✓Scanners disagree because they use different vulnerability feeds, handle backported patches differently and cannot identify custom-compiled binaries.
  • ✓Runtime context, such as whether a vulnerable package is loaded and whether the workload is internet-facing, separates urgent findings from background noise.
  • ✓Image scanning does not catch runtime attacks, zero-days, abused credentials or insecure cluster configuration, so it needs runtime detection alongside it.

What is container image scanning?

Container image scanning reads the contents of an image and compares them against vulnerability and policy data. Five terms explain what gets scanned:

  • ✓Container image: a read-only stack of filesystem layers packaged in the OCI format. Docker, Podman and Buildah all produce OCI images, so the same scanners work on all of them.
  • ✓Dockerfile: the build instructions. Each RUN, COPY or ADD line creates a layer.
  • ✓Base image: the starting layer, such as debian:12-slim or alpine. Most inherited packages come from it.
  • ✓Registry: where images are stored and pulled from, such as Docker Hub, Amazon ECR, Google Artifact Registry or Azure Container Registry.
  • ✓Scanner: the tool that unpacks the image and evaluates what is inside it.

Docker image scanning is the same process applied to images built with Docker. Take this install line:

RUN apt-get install -y openssl=1.1.1n-0+deb11u3

The scanner reads the Debian package database in the final image and records this exact OpenSSL version. If the Debian security tracker lists a fix in a later version, the scanner flags the CVE and shows the fixed version. The team bumps the pin or rebuilds on a patched base image, then scans again.

Teams scan container images in five places: local builds on developer machines, CI pipelines before push, images stored in registries, shared base images, and workloads already running in Kubernetes.

How container image scanning works

A scanner unpacks the image, builds an inventory of its components, matches that inventory to vulnerability data and applies policy to the results. Red Hat’s documentation describes this flow: the scanner takes an image or running container ID and checks its contents against CVE OVAL definitions, using tools such as oscap-docker.

  1. Layer extraction: the scanner pulls the image manifest and unpacks each layer into a merged filesystem view.
  2. Package enumeration: it reads OS package databases (/var/lib/dpkg/status, the RPM database, /lib/apk/db/installed) and language manifests or lockfiles (package-lock.json, requirements.txt, go.sum, JAR metadata).
  3. SBOM generation: it records the inventory as a software bill of materials in SPDX or CycloneDX format.
  4. Vulnerability matching: it compares each package and version against the NVD, distribution advisories and language ecosystem databases.
  5. Severity scoring: it assigns CVSS or vendor severity (Critical, High, Medium, Low).
  6. Fix availability: it notes whether a patched version exists.
  7. Policy evaluation: it checks results against rules, such as “no fixable Criticals.”
  8. Reporting: it outputs findings to CLI, CI logs, tickets or a dashboard.

Because the SBOM is stored, teams can re-match it against new CVEs without pulling and unpacking the image again. This is the main reason SBOM-based scanning matters for supply chain security.

CVEs, vendor advisories and backported fixes

A CVE identifies a vulnerability in upstream software. Distributions such as Red Hat, Debian and Ubuntu often backport the fix into an older version string instead of shipping the new upstream release. A scanner that relies only on upstream version ranges will flag the patched package as vulnerable. A scanner that reads the vendor advisory will not.

Why scanners disagree: false positives and false negatives

  • ✓Different feeds: NVD, GitHub Advisories and distribution trackers publish different data at different times.
  • ✓Package naming: a source package name may differ from the binary package name, or from the ecosystem name.
  • ✓Backports: scanners that ignore vendor advisories produce false positives.
  • ✓Custom binaries: software compiled from source or pulled from a tarball has no package metadata, so the scanner misses it and reports false negatives.

What a container image scanner detects

Container image vulnerability scanning is the core capability, but coverage varies a lot between tools, and not every tool covers every row below.

Detection type What it finds Example
OS package scanning CVEs in distribution packages Outdated glibc or OpenSSL
Language dependency scanning Vulnerable libraries A flawed npm or Maven package
Secret scanning Credentials baked into layers AWS keys in a copied .env
Malware scanning Known malicious files Cryptominer in a third-party image
Misconfiguration / IaC Risky Dockerfile or manifest settings Running as root, no USER, privileged pods

Vulnerability scanning finds flawed code, and misconfiguration scanning finds unsafe settings. Runtime protection watches live behavior. A scanner covers the first two at best.

Container image security best practices

The practices that work best keep the image small, block builds on clear policy and keep rescanning after release.

Practice How to apply it
Scan early in CI Run the scan after build and before push
Pin base images by digest Use FROM image@sha256:… instead of mutable tags
Minimize contents Use distroless or slim bases and drop shells and package managers
Use multi-stage builds Keep compilers and build tools out of the runtime stage
Enforce policy thresholds Block builds on fixable Critical or High findings
Rescan continuously Re-evaluate registry images daily against new CVEs
Prioritize reachable risk Weigh runtime presence and exposure above raw CVSS
Verify fixes Rescan the rebuilt image before deploying it

How to automate container vulnerability scanning

This example workflow is for a team running GitHub Actions, Amazon ECR and Amazon EKS:

  1. A commit triggers the build, and the pipeline scans the image and generates a CycloneDX SBOM.
  2. A policy gate fails the job if there is any Critical with a fix available, any embedded secret, or a container set to run as root.
  3. Passing images are pushed to ECR with the SBOM attached as a signed attestation.
  4. A nightly job re-matches stored SBOMs against updated feeds. If a new CVE hits an image already running in EKS, the job opens a ticket.
  5. Remediation follows SLAs. For example, exploitable Criticals on internet-facing services get 7 days, Highs get 30 days, and the rest wait for the next scheduled release.

Signed SBOMs and provenance attestations double as evidence for a container image security audit. They also support internal governance and frameworks that require software inventories. Teams running a broader container vulnerability management program rank findings by six signals:

  • ✓Severity (CVSS or vendor rating)
  • ✓Exploitability, including known public exploits
  • ✓Internet exposure of the workload
  • ✓Runtime presence: whether the package is actually loaded
  • ✓Package criticality, such as auth or crypto libraries
  • ✓Fix availability

Top container image scanning tools

The top container image scanning tools all match CVEs. They differ in how they decide which findings matter and where in the lifecycle they see the image. Many registries also include a basic built-in container scanner. Use this checklist to evaluate any container image scanning tool:

  • ✓OS and language ecosystem coverage
  • ✓Registry and CI/CD integrations
  • ✓Kubernetes and runtime visibility
  • ✓SBOM export and import
  • ✓Policy engine for build gates
  • ✓Remediation guidance and prioritization context
Tool Architecture Prioritization signal Gartner Peer Insights
Upwind Runtime-first eBPF sensor plus agentless Loaded packages, reachability, exposure 4.8/5 (88 reviews)
Wiz Agentless Attack paths and “toxic combinations” 4.8/5 (285 reviews)
Aqua Security Full agent architecture Runtime, cloud and code correlation 4.3/5 (48 reviews)
Sysdig Secure Runtime, Falco-based detection In-use packages, known exploits, fixability 4.8/5 (308 reviews)

Upwind

Upwind ties container image vulnerabilities to the code that is executing. Its eBPF sensor shows which package is loaded, whether the workload is reachable, and which registry or build source a running container came from. Agentless coverage fills in where sensors are not deployed. Reviewers on Gartner Peer Insights rate Upwind 4.8/5 from 88 reviews as of November 2026. They highlight runtime visibility into Kubernetes and containers, and prioritization that replaced noisy false alerts from earlier CNAPP tools.

Wiz

Wiz scans agentlessly across AWS, Azure, GCP and OCI. It correlates vulnerabilities with misconfigurations and identity data in attack paths. It integrates with GitHub, GitLab, Jenkins, Azure DevOps and Terraform, and with ServiceNow Container Vulnerability Response. Gartner Peer Insights reviewers rate it 4.8/5 across 285 reviews, though some note limited export options and scaling friction in very large accounts.

Aqua Security

Aqua Security covers image scanning, runtime protection, secrets, virtual patching and malware detection across CI/CD assurance points. It holds a 4.3/5 rating from 48 Gartner Peer Insights reviews. Reviewers say it suits large enterprises with experienced staff, because onboarding and tuning can be demanding.

Sysdig Secure

Sysdig Secure prioritizes vulnerabilities in packages loaded in production, those with known exploits, and those with fixes available. It also scans pipelines and registries. It is rated 4.8/5 from 308 Gartner Peer Insights reviews. Users cite a steep learning curve, premium pricing and time spent tuning threat-detection false positives.

What container image scanning won’t catch

Container image scanning only sees known issues in static files, so each gap below needs a separate control.

Limitation Example Control that addresses it
Runtime attacks Reverse shell spawned in a container Runtime detection and response
Zero-days Flaw not yet in any CVE feed Behavioral monitoring, least privilege
Kernel-level issues Host kernel escape Node patching, host sensors
Vulnerable app logic Broken authorization in your code SAST, DAST, API security testing
Abused credentials Stolen service-account token CIEM, identity monitoring
Cluster and shared resources Open network policies, exposed volumes KSPM, network policy enforcement
Unidentifiable software Binary built from a tarball Runtime file and process inventory

How Upwind extends image scanning into runtime

Upwind connects scan results to live workloads, so teams fix the container image vulnerabilities that are loaded and exposed first. It works as a container vulnerability scanner inside a broader CNAPP, which keeps build-time findings and runtime threats in one place. The eBPF sensor cannot run on AWS Fargate for ECS, AWS Lambda or Google Cloud Run, so teams whose workloads live mostly there get less of its runtime context.

  • ✓Flags CVEs in packages loaded at runtime
  • ✓Maps running containers back to their registry and build source
  • ✓Weighs internet exposure and reachability in prioritization
  • ✓Detects live threats, such as a process spawning a shell
  • ✓Uses AI agents in the Agentic Pack to investigate and generate fixes

Final thoughts

Supply chain hygiene starts with image scanning. Generate SBOMs, gate builds, pin digests and rescan nightly. Container scanning only reports what is inside the image. It cannot see what happens when the image runs. Pair container image scanning with runtime context and detection, and your team will spend its time on the findings attackers can reach.

FAQ

What is container image scanning?

Container image scanning is the automated inspection of a container image’s layers, OS packages, application dependencies, and configuration to find known vulnerabilities, exposed secrets, and risky settings before and after deployment.

How does container image scanning work?

A scanner unpacks the image, builds an inventory of its components, generates an SBOM, matches packages and dependencies against CVE and vendor advisory data, scores severity, checks for available fixes, applies policy rules, and reports the findings.

Why do container image scanners sometimes disagree on results?

Scanners can disagree because they use different vulnerability feeds, handle backported fixes differently, map package names differently, and may miss custom-compiled binaries that have no package metadata.

When should teams scan container images?

Teams should scan images during local development, in CI before push, in the registry on a recurring schedule, for shared base images, and again for workloads already running in Kubernetes because new CVEs can appear after an image is built.

What can’t container image scanning catch?

Container image scanning cannot detect runtime attacks, zero-days not yet published in vulnerability feeds, host kernel issues, vulnerable application logic, abused credentials, insecure cluster resources, or software that cannot be identified from image metadata alone.

Demo the Upwind Platform

See how Upwind is reducing risk and strengthening cloud security for global enterprises.
Get a Demo
Add the Upwind RSS Feed to Slack
Connect the Upwind RSS Feed to your Slack.
Follow the how-to here.
Threat RSS
Add the Upwind RSS Feed to Slack
Connect the Upwind RSS Feed to your Slack.
Follow the how-to here.
Main RSS