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
- Software composition analysis (SCA) Software composition analysis (SCA) identifies the third-party and open-source components inside an application or artifact, then reports the known vulnerabilities and license obligations attached to each one.
- SBOM (software bill of materials) A software bill of materials (SBOM) is a structured, machine-readable inventory of the packages, libraries and other components that make up a piece of software, with their versions and identifiers.
- Image signing (Sigstore and cosign) Container image signing attaches a cryptographic signature to an image's digest so that anyone deploying it can check who published those exact bytes. Sigstore is an open-source project for this, and cosign is its signing tool for containers.
- Admission control (Kubernetes) Admission control is the stage of the Kubernetes API server that intercepts a request to create or change an object, after authentication and authorization, and can accept, modify or reject it before it is stored.
- CVE (Common Vulnerabilities and Exposures) A CVE (Common Vulnerabilities and Exposures) entry is a unique public identifier, such as CVE-2021-44228, for one publicly disclosed vulnerability, with a short description and references.
On the platform: Container scanning. All glossary terms