What is kube-bench and what does the CIS Kubernetes Benchmark cover?
BeginnerConceptKubernetes Security
Answer
The CIS Kubernetes Benchmark is a consensus hardening guide for control-plane components, etcd, kubelet, and policies (RBAC, PSS, network policy, secrets). kube-bench, from Aqua, runs those checks on a node and reports PASS/FAIL/WARN with remediation text.
kubectl apply -f https://raw.githubusercontent.com/aquasecurity/kube-bench/main/job.yaml
kubectl logs job/kube-bench
On managed clusters use the provider-specific benchmark (CIS EKS, CIS GKE), since control-plane checks are the provider's responsibility.
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