The image scanner reports 1,200 vulnerabilities across your services. Where do you start?
IntermediateScenarioSecurity incidents
Answer
Situation read → A raw count is meaningless. Most findings are in packages that aren't reachable or have no fix. Prioritise by real risk.
What I'd do →
- Filter to what's fixable and serious:
--ignore-unfixedand severity HIGH/CRITICAL.
trivy image --ignore-unfixed --severity HIGH,CRITICAL api:1.8.0
- Rank by exploitability: CISA KEV list and EPSS score, and whether the service is internet-facing.
- Fix at the base: one base image update often clears hundreds of OS package findings. Move to slim or distroless bases to remove packages you don't use.
- Automate updates with Renovate or Dependabot and rebuild images weekly even without code changes.
- Set a policy: CI blocks new criticals with a fix available; existing ones have an SLA (for example, critical in 7 days); exceptions are documented with VEX or
.trivyignoreplus an expiry.
Why → Base image hygiene and exploitability-based prioritisation shrink the list faster than fixing one by one.
Interview tip → Mention KEV or EPSS; it shows you prioritise by risk, not by count.
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?AdvancedA critical CVE is announced in a library you use. You have 200 images across 40 repos. How do you find and patch everything fast?IntermediateGuardDuty 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?Beginner