Skip to content

Latest commit

 

History

History

kube-bench

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

CIS security benchmarks

This folder has helper scripts and descriptors to easily run kube-bench CIS security benchmarks.

Running the benchmarks

The benchmarks are split ionto two categories, one purely for control plane node check and one for worker plane checks.

The helper script run-bench.sh is able to create a Job for each type of test, show the logs and then cleanup.

To execute the benchmarks for a worker node, you'd use:

./run-bench.sh node

For a master node run:

./run-bench.sh master

Benchmarking results

There's a separate document to track and give explanations on all of the tests flagged as failed. Most of them are actually false positives as the CIS specification is made to check only flags of running components and on recent Kubernetes many of those are actually configured through config files.

See results for more details.