Glossary · Scanning and analysis

Container image scanning

Container image scanning analyzes the contents of a container image, its operating-system packages, language dependencies and configuration, for known vulnerabilities and other security issues, before or after the image is deployed.

A container image is a stack of filesystem layers plus a configuration manifest. An image scanner unpacks those layers and identifies what is installed: packages recorded in the distribution's package database (dpkg, apk, rpm), language packages from lockfiles and installed metadata, and binaries with embedded version information. It then matches that inventory against vulnerability databases, as software composition analysis does for source code, and may also check the image configuration, for example whether it runs as root.

Images are identified two ways: by a tag (nginx:1.27), which can be moved to point at different content, and by a digest (sha256:…), which names exact bytes. Results are only meaningful when tied to a digest.

How it is used in practice

Teams scan images at three points. In CI, before an image is pushed, to stop a known-bad build. In the registry, on push and then on a schedule, because new CVEs are published against images that have not changed. And at deployment, where an admission controller can refuse an image with unacceptable findings. The inventory a scan builds is also the natural source for an SBOM of what actually shipped.

Common pitfalls

  • Scanning a tag, not a digest. A tag scanned on Monday may point at different bytes on Friday.
  • Scanning once. A clean result is only clean against the advisory data that existed at the time.
  • Giving the scanner the Docker socket. Scanning through a local daemon hands the scanner root-equivalent access to the build host.
  • Base-image noise. Most findings often come from the base image; fixing them means changing the base, not the application.
  • Forgetting private registries. Images a scanner cannot authenticate to are simply not scanned.

How TrustIvan relates to it

TrustIvan resolves images from the registry, not from a local runtime. It pulls from public registries, or from private ones using a credential you store with TrustIvan (a paid-plan feature), and needs no Docker socket, no container runtime and no agent on your hosts. Each scan is a durable job; its findings get a content-derived identity, a lifecycle, a risk score and a policy verdict, and each asset's component inventory can be exported as an SBOM. The same scan looks for cosign signatures and checks key-based ones against the keys a policy trusts, so a signed_by rule can refuse an unsigned image (keyless signatures are reported as not verified), and base-image advice separates inherited findings from those in your own layers. When a Kubernetes cluster is connected, running workloads are joined to the image assets they run, which feeds the "running" factor of the risk score and lets admission control judge an image's open findings at deploy time. See Scan a private registry image.

Related terms

On the platform: Container scanning. All glossary terms

See TrustIvan on your own estate.

Book thirty minutes with an engineer and bring an image, a repository or a cloud account, or start free on the hosted service.