kube-bench reports 40 CIS benchmark failures on your managed EKS nodes. How do you prioritise?
IntermediateScenarioKubernetes Security
Answer
Situation read → Many CIS controls cover the control plane, which the provider manages. Use the right benchmark first.
What I'd do →
- Run the managed profile:
kube-bench run --benchmark eks-1.5.0(or the current EKS benchmark) instead of the generic one. - Separate node findings (kubelet config, file permissions) from things AWS owns.
- Fix high-impact ones: kubelet
anonymous-auth=false,authorization-mode=Webhook,protectKernelDefaults. - Bake fixes into the node AMI or Bottlerocket settings, not hand-edits.
- Document accepted exceptions with reasons.
Why → Running the wrong benchmark creates noise and wastes effort on controls you cannot change.
Interview tip → Mention shared responsibility for managed Kubernetes.
More on Kubernetes Security
What are the 4Cs of cloud native security?BeginnerWhat happens to a request between `kubectl apply` and etcd from a security point of view?IntermediateExplain Role, ClusterRole, RoleBinding and ClusterRoleBinding.BeginnerHow do you check what a user or service account is allowed to do?BeginnerWhich RBAC permissions are effectively cluster-admin in disguise?AdvancedHow do service account tokens work now, and what is `automountServiceAccountToken`?Intermediate