The image scan reports zero vulnerabilities for a distroless image that you know is outdated
AdvancedTroubleshootingContainer image and IaC scanning
Answer
Likely causes → The scanner did not detect an OS package database (stripped image, scratch base, or custom base without /var/lib/dpkg/status.d or apk db) so it found no packages to match.
Diagnose →
trivy image --list-all-pkgs -f json myapp:1.4 | jq '.Results[] | {Target, Type, n: (.Packages|length)}'
syft myapp:1.4 -o table | head
Fix → Use a base that keeps package metadata (Google distroless and Chainguard images do), or generate an SBOM at build time from the source and scan that.
Prevent → Treat "0 packages detected" as a failure, not a pass.
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