kube-bench
An open-source tool that checks a Kubernetes node against the CIS Kubernetes Benchmark and reports pass or fail for each item.
In more detail
It reads the flags and configuration files of the API server, etcd, kubelet and other components on the node where it runs. It is usually run as a Kubernetes Job on each node type.
Example
A short script that parses --name=value flags reproduces its core ideaRelated terms
- CIS Benchmarks — Free, consensus-built configuration guides from the Center for Internet Security that list recommended secure settings for one specific product.
- API server — The Kubernetes control plane component that serves the Kubernetes API; every read and change to the cluster goes through it.
- kubelet — The agent on every Kubernetes node that starts and watches the node's containers and reports back to the API server.
Taught in
- The Metadata Endpoint And The Kubelet's Front Door — Certified Kubernetes Security Specialist (CKS) Exam Prep
- kube-bench: Ten Failures On A Fresh Cluster — Certified Kubernetes Security Specialist (CKS) Exam Prep
- Anonymous Access: The Fix That Kills The API Server — Certified Kubernetes Security Specialist (CKS) Exam Prep
- The Host Footprint: Six Doors On A Worker — Certified Kubernetes Security Specialist (CKS) Exam Prep
- Detection Review: Which Signal Catches It? — Certified Kubernetes Security Specialist (CKS) Exam Prep
- Mock Exam: Seventeen Security Tasks Against The Clock — Certified Kubernetes Security Specialist (CKS) Exam Prep
- Final Review: The Cluster You Would Defend — Certified Kubernetes Security Specialist (CKS) Exam Prep
- Security Landing Zones & Centralized Egress Inspection — Cloud Security & DevSecOps Engineering
- Securing the Kubernetes Control Plane & Node Components — Cloud Security & DevSecOps Engineering
- Same Rule, Two Kinds: Controls And Frameworks — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Open To Every Interface: Controller Manager And Scheduler — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Which Benchmark, And Who Checked It? Compliance And Frameworks — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Forty Three Of Sixty: The Mock, And How To Read It — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep