kube-bench is an open source command line tool from Aqua Security that checks whether a Kubernetes cluster is deployed securely. It runs the controls documented in the CIS Kubernetes Benchmark against a node and reports every control as PASS, FAIL, WARN or INFO, so an operator can see precisely which hardening steps are still missing.
The controls are not compiled into the binary. They are expressed as YAML control files, grouped by benchmark version and by target (control plane, worker node, etcd, policies), which makes kube-bench easy to extend and easy to keep in step with a new CIS revision without rebuilding the scanner.
--benchmark and --version override the detection--targets, --check, --skip, --group, --scored / --unscored--noremediations hides it) and a PASS / FAIL / WARN / INFO summary--json, --junit, --outputfile, plus direct delivery of results to AWS Security Hub (--asff) and PostgreSQL (--pgsql)--exit-code) so a pipeline can fail a build when a scored control fails.deb / .rpm packages and as the container image docker.io/aquasec/kube-benchjob.yaml); a containerised run needs the host PID namespace and read-only /etc and /var mounts to inspect host filesHardening a cluster normally means working through a several-hundred-page benchmark by hand. kube-bench turns the same controls into a scan you can run before a cluster goes live, after every Kubernetes upgrade and on a schedule. Because each control is a YAML file you can read and diff, the result is reproducible and auditable: the same node configuration produces the same findings.
It is also the reference implementation of the CIS Kubernetes Benchmark, maintained by Aqua Security and re-synchronised as CIS publishes new revisions, so the controls stay current rather than drifting.
--json report to a SIEM, Security Hub or databasekubelet / kubectl on the PATH, or an explicit --version / --benchmarkkube-bench is free and open source software, released under the Apache License 2.0. It is developed by Aqua Security; the CIS Kubernetes Benchmark it implements is published separately by the Center for Internet Security.
Browse more self-hosted security and privacy tooling in the full directory, or submit a tool of your own.