Interview Prep/DevSecOps/Kubernetes Security

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.

All DevSecOps questions Roadmap: Supply chain, secrets & identity

More on Kubernetes Security