Pcornel
Browse topics
Options
Recent
Favorites
Security · Technical reference

Image Scanning

Direct answer

Image scanning checks container images for known vulnerabilities, secrets and misconfigurations with tools like Trivy or Grype, in CI and in the registry, blocking images above a severity threshold.

When to use this

Use this when checking images for vulnerabilities and secrets before deployment.

First 30 seconds

1. Scan images in CI and in registries continuously.

2. Fail builds on critical fixable vulns.

3. Rescan stored images for new CVEs.

4. Prioritise reachable/fixed issues.

5. Track base image updates.

Operational verification

image → scanner → findings → gate/fix

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Platform and workload security
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformPlatform and workload security
Scope / prerequisiteUse this when checking images for vulnerabilities and secrets before deployment.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Common mistakes Narrow the fault
  • Scanning once at build time and never again.
  • Failing builds on unfixable CVEs with no exception process.
Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Key points
  • Scan in CI and in the registry.
  • New CVEs appear after build; rescan regularly.
  • Block images above a severity threshold.
Key checks
  • trivy image --severity HIGH,CRITICAL <image> — vulnerability scan
  • grype <image> — alternative
  • CI gate on critical findings — enforcement
ReferenceWhy it matters1 section · depth on demand

Commands

trivy image --severity HIGH,CRITICAL nginx:1.27
grype nginx:1.27
docker scout cves nginx:1.27

Documented example, not captured output.

ReferenceImportant terms & boundaries2 sections · depth on demand

How it works

Scanners read the packages and libraries in each image layer and match them against vulnerability databases. Results depend on the database freshness and on whether the scanner understands the package types used.

Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docPlatform and workload security current

Authoritative/upstream documentation reviewed for bounded claims in Container Security → Image Scanning. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://csrc.nist.gov/pubs/sp/800/190/final · confidence 94%
Confirmation

Confirm action

Continue?