Interview Prep/DevSecOps/Container and IaC Security

An image passed scanning three weeks ago and runs in production. A new critical CVE is published today. What happens next?

IntermediateScenarioContainer and IaC Security
Answer

Situation read → Vulnerability data changes daily. A clean scan is a point-in-time statement.

What I'd do →

  1. Rely on stored SBOMs: query them for the affected package (grype sbom:./sbom.json or your inventory DB).
  2. List running workloads using the image digest: kubectl get pods -A -o jsonpath='{..image}'.
  3. Assess exploitability, internet exposure and available fix.
  4. Rebuild with the patched base, run tests, and roll out via the normal pipeline.
  5. Add temporary mitigation (WAF rule, network restriction) if the fix takes days.

Why → SBOM-based lookup answers "are we affected" in minutes instead of hours.

Interview tip → Log4Shell is the example everyone remembers.

All DevSecOps questions Roadmap: Policy as code

More on Container and IaC Security