A critical CVE is announced in a library you use. You have 200 images across 40 repos. How do you find and patch everything fast?
IntermediateScenarioSecurity incidents
Answer
Situation read → The first question is "where are we exposed?" and you need an answer in minutes, not a week of grepping.
What I'd do →
- Query SBOMs if you generate them (Syft in CI, stored with each image), or scan running images:
grype sbom:./sboms/checkout-1.8.0.json | grep CVE-2026-
trivy image --severity CRITICAL 111122223333.dkr.ecr.ap-south-1.amazonaws.com/checkout:1.8.0
- List what's actually running, not just what's in the registry:
kubectl get pods -A -o jsonpathfor images, then map to SBOMs. - Prioritise: internet-facing and exploitable first.
- Patch: Dependabot or Renovate PRs across repos; rebuild images on a patched base; deploy through the normal pipeline but fast-tracked.
- Mitigate where you can't patch yet: WAF rule, disable the vulnerable feature, or a config flag.
- Track until zero: a dashboard of affected images still running.
Why → SBOMs turn "are we affected?" from days into a query.
Interview tip → Distinguish "in the registry" from "running in production"; only the second is actual exposure.
More on Security incidents
An AWS access key for a production IAM user was pushed to a public GitHub repo 20 minutes ago. What do you do in the first 30 minutes?AdvancedYou find pods in your cluster running a crypto miner. What do you do?AdvancedGuardDuty reports an EC2 instance talking to a known command-and-control IP. What do you do?AdvancedYou discover an S3 bucket with customer data has been public for three months. What now?IntermediateAn engineer left the company three weeks ago and you find their access key was used yesterday. How do you respond and fix the process?BeginnerA secret was printed in plain text in a CI job log. What do you do?Beginner