Image scan passes in CI but the registry scanner (ECR enhanced scanning / Harbor) shows criticals a week later
BeginnerTroubleshootingContainer image and IaC scanning
Answer
Likely causes → New CVEs were published after the build. A one-time CI scan is a point-in-time snapshot.
Diagnose →
aws ecr describe-image-scan-findings --repository-name myapp --image-id imageTag=1.4 \
--query 'imageScanFindings.findingSeverityCounts'
Fix → Rebuild and redeploy with updated base layers; for running workloads, rescan what is deployed (Trivy Operator or registry continuous scanning).
Prevent → Continuous scanning of deployed images, plus scheduled rebuilds of all base images.
More on Container image and IaC scanning
Trivy fails the build on 14 HIGH/CRITICAL CVEs in the base image, all with "Fixed Version" emptyBeginner`FATAL ... failed to download vulnerability DB: ... TOOMANYREQUESTS: retry-after` from Trivy in CIIntermediateTrivy in an air-gapped runner fails with `failed to download vulnerability DB` even though you copied `db.tar.gz`AdvancedTrivy and Grype report different CVE counts for the same imageIntermediate`.trivyignore` entries are ignored and the build still fails on the same CVEBeginnerTrivy reports a critical CVE in a Go binary built from your own code, in package `stdlib`Intermediate