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.
More on Security Hardening & Compliance
What is the baseline security checklist for a production cluster?BeginnerWhy should containers run as non-root?BeginnerHow should human access to the cluster be managed?BeginnerWhat is the purpose of image scanning in CI and in the cluster?BeginnerWhy not store secrets in Git or in ConfigMaps?BeginnerWhat is a default-deny NetworkPolicy baseline?Beginner