What are the main attack paths in a Kubernetes cluster and how do you close them?
IntermediateProductionSecurity Hardening & Compliance
Answer
Exposed API server or dashboard, vulnerable apps leading to RCE, over-privileged ServiceAccounts, privileged containers/hostPath, exposed kubelet, node IAM role reachable via IMDS, secrets in env vars and images, and flat networking. Close with private endpoints, PSA, RBAC audits, IMDSv2 hop limit 1, NetworkPolicies, secret managers and runtime detection (Falco).
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