Design a container vulnerability management process for a company.

AdvancedProductionTrivy
Answer

Short answer

Scan at every stage (code, build, registry, runtime), gate on fixable HIGH/CRITICAL in CI, continuously rescan deployed images, triage with ownership and SLAs, track exceptions with expiry, and reduce the attack surface with minimal base images and automated updates.

Lifecycle

Stage Control
Code / PR trivy fs (deps, secrets, IaC), Dependabot/Renovate
Build trivy image --severity HIGH,CRITICAL --ignore-unfixed --exit-code 1; SBOM generated and attested
Registry Scan on push + continuous rescans; block pulls of critical images (Harbor)
Deploy Admission policy (Kyverno) allows only signed, scanned images from trusted registries
Runtime Trivy Operator reports; Falco for runtime behaviour

Triage and SLAs (example)

Severity (fix available) Fix within
Critical / KEV-listed 7 days (or 48 h if internet-facing)
High 30 days
Medium 90 days

Exceptions

.trivyignore entries with ticket, owner and expiry; approved by security; reported monthly.

Reduce volume

Golden base images maintained by the platform team, rebuilt weekly; distroless/minimal images; dependency update bots.

What to say in the interview

"Scan in PRs, at build, in the registry and at runtime; gate builds on fixable high and critical issues; enforce signed, scanned images at admission; triage with owners and SLAs based on severity and exploitability; time-boxed exceptions; and shrink the problem with golden minimal base images and automatic updates."

All Security Tools questions Roadmap: Trivy — image, file system & IaC scanning

More on Trivy