Interview Prep/DevSecOps/Certificates, TLS and security incident response

A public base image tag you use (`node:20-alpine` mirrored from a community repo) suddenly ships a binary that phones home

IntermediateTroubleshootingCertificates, TLS and security incident response
Answer

Likely causes → Tags are mutable. The upstream publisher or a compromised maintainer pushed a new image under the same tag, and your builds pull by tag.

Diagnose →

crane digest docker.io/someorg/node:20-alpine
# compare with digests recorded in your SBOMs and build logs
grype registry.acme.com/api@sha256:... --only-fixed=false

Fix → Rebuild from a known-good digest or an official image. Find every image built from the bad digest (from your SBOMs or the registry), redeploy them, and investigate any outbound connections they made.

Prevent → Pin base images by digest (Renovate keeps them updated), pull only through an internal registry mirror, use official or verified publishers, and verify signatures where they exist.

All DevSecOps questions

More on Certificates, TLS and security incident response