Safeguard
Security Guides•

What does a container image scan actually check?

An image scan inventories packages in the layers and matches them to known vulnerabilities. It does not test running behavior. What it covers, misses.

Safeguard Security Team
3 min read

A container image scan unpacks the image layers, builds an inventory of the software inside, and matches each package and version against databases of known vulnerabilities. It reports what is installed. It does not run the container or test how it behaves.

The inventory step

Images are stacks of layers, each holding filesystem changes. A scanner reads those layers and identifies the operating system packages, and often language packages such as those listed in lockfiles or manifests present in the image. The result is a bill of materials for the image, which can also be exported as an SBOM.

The matching step

Each package and version is compared with advisory data. The output is a list of vulnerability identifiers with severity, the affected package and, where known, a fixed version.

What a scan covers and misses

CoveredNot covered
OS packages from the base imageBusiness logic bugs in your code
Language dependencies found in the imageVulnerabilities not yet published
Some configuration issues, such as running as rootRuntime behavior and network exposure
Known secrets baked into layers, with some scannersCluster settings and access control
Fixed version hintsWhether the vulnerable code is actually called

Reading results sensibly

A large count is normal on a general purpose base image. Group findings by layer. Most come from the base, so the fix is often a rebuild on a newer or slimmer base, not hundreds of separate patches. Then rank by severity, whether a fix exists and whether the vulnerable code is reachable from your application.

Steps for a first scan

  1. Scan the image you actually run, by digest, not a tag that may have moved.
  2. Sort findings by layer.
  3. Fix base image findings by updating the base.
  4. Fix application dependency findings in your manifest.
  5. Record the accepted risks with an owner and review date.
  6. Repeat on a schedule.

For a deeper list of blind spots see what container scanning cannot see.

How Safeguard helps

Safeguard provides SBOM and dependency scanning with reachability analysis, and policies, gates and guardrails you can apply before merge. You can try the free scan on a repository.

Try it yourself

Click through it at your own pace, or open it full screen.

See how many findings drop out once unreachable code is set aside.

Quick check

Does an image scan test the running container?

No. It inspects contents at rest. Runtime and network testing is a different activity.

Why do slim images show fewer findings?

They contain fewer packages, so there is less to match against advisories.

Sources

  • Docker documentation, Understanding image layers (fetched 19 October 2026).

Last reviewed: 19 October 2026.

Never miss an update

Weekly insights on software supply chain security, delivered to your inbox.

Self-healing security runs on Safeguard.

Your first fix PR is minutes away.

No sales call required, even your agent can complete the purchase over MCP.