Interview Prep/Kubernetes/Security Hardening & Compliance

What is your response plan when a container is suspected compromised?

AdvancedProductionSecurity Hardening & Compliance
Answer

Isolate first: label the Pod to match a quarantine NetworkPolicy and cordon the node, but do not delete the Pod yet; capture evidence (kubectl debug with a forensic image, node memory/disk snapshot, logs, audit events), rotate secrets and ServiceAccount tokens the Pod could read, check lateral movement via audit logs, then rebuild from clean images and fix the root cause.

All Kubernetes questions Roadmap: Kubernetes networking, storage & scaling

More on Security Hardening & Compliance