Grype scanning an SBOM reports far fewer vulnerabilities than scanning the image directly
IntermediateTroubleshootingSupply chain: signing, SBOM and dependencies
Answer
Likely causes → The SBOM lacks the distro identity (no os-release info) or purls/CPEs, so OS packages cannot be matched to distro advisories.
Diagnose →
jq '.metadata.component, (.components[] | select(.type=="operating-system"))' sbom.cdx.json
jq '[.components[] | select(.purl==null)] | length' sbom.cdx.json
Fix → Regenerate the SBOM with Syft from the image (it records distro and purls), or pass --distro debian:12 to Grype.
Prevent → Validate SBOM quality in CI: require purls on components and an OS component.
More on Supply chain: signing, SBOM and dependencies
`cosign verify` fails with `Error: no matching signatures` for an image CI says it signedBeginnerKeyless `cosign verify` fails: `none of the expected identities matched what was in the certificate`Intermediate`cosign sign` in GitHub Actions fails with `getting signer: getting key from Fulcio: ... no OIDC token`BeginnerKey-based `cosign verify --key cosign.pub` fails after a key rotation for older imagesIntermediate`cosign verify-attestation --type cyclonedx` returns `none of the attestations matched the predicate type`IntermediateKyverno `verifyImages` rejects pods: `failed to verify image ... : no signatures found` for a signed private ECR imageAdvanced