2021-06-09 08:17:16 +00:00
## Test config YAML representation
The tests (or "controls") are maintained in YAML documents. There are different versions of these test YAML files reflecting different [versions and platforms of the CIS Kubernetes Benchmark ](./platforms.md ). You will find more information about the test file YAML definitions in our [controls documentation ](./controls.md ).
## Kube-bench benchmarks
The test files for the various versions of Benchmarks can be found in directories
2025-01-10 09:18:50 +00:00
with same name as the Benchmark versions under the `cfg` directory next to the kube-bench executable,
2021-06-09 08:17:16 +00:00
for example `./cfg/cis-1.5` will contain all test files for [CIS Kubernetes Benchmark v1.5.1 ](https://workbench.cisecurity.org/benchmarks/4892 ) which are:
2025-01-10 09:18:50 +00:00
master.yaml, controlplane.yaml, node.yaml, etcd.yaml, policies.yaml and config.yaml
2021-06-09 08:17:16 +00:00
2025-01-10 09:18:50 +00:00
Check the contents of the benchmark directory under `cfg` to see which targets are available for that benchmark. Each file except `config.yaml` represents a target (also known as a `control` in other parts of this documentation).
2021-06-09 08:17:16 +00:00
The following table shows the valid targets based on the CIS Benchmark version.
2021-06-20 09:56:56 +00:00
2023-11-20 10:59:32 +00:00
| CIS Benchmark | Targets |
|----------------------|---------|
| cis-1.5 | master, controlplane, node, etcd, policies |
| cis-1.6 | master, controlplane, node, etcd, policies |
| cis-1.20 | master, controlplane, node, etcd, policies |
| cis-1.23 | master, controlplane, node, etcd, policies |
| cis-1.24 | master, controlplane, node, etcd, policies |
| cis-1.7 | master, controlplane, node, etcd, policies |
2023-12-02 07:59:30 +00:00
| cis-1.8 | master, controlplane, node, etcd, policies |
2024-06-26 12:53:57 +00:00
| cis-1.9 | master, controlplane, node, etcd, policies |
2025-01-29 17:51:20 +00:00
| cis-1.10 | master, controlplane, node, etcd, policies |
2023-11-20 10:59:32 +00:00
| gke-1.0 | master, controlplane, node, etcd, policies, managedservices |
| gke-1.2.0 | controlplane, node, policies, managedservices |
2024-10-11 04:49:35 +00:00
| gke-1.6.0 | controlplane, node, policies, managedservices |
2023-11-20 10:59:32 +00:00
| eks-1.0.1 | controlplane, node, policies, managedservices |
| eks-1.1.0 | controlplane, node, policies, managedservices |
| eks-1.2.0 | controlplane, node, policies, managedservices |
2025-01-10 09:18:50 +00:00
| eks-1.5.0 | controlplane, node, policies, managedservices |
2023-11-20 10:59:32 +00:00
| ack-1.0 | master, controlplane, node, etcd, policies, managedservices |
| aks-1.0 | controlplane, node, policies, managedservices |
| rh-0.7 | master,node|
| rh-1.0 | master, controlplane, node, etcd, policies |
2025-01-29 17:51:20 +00:00
| rh-1.6 | master, controlplane, node, etcd, policies |
2023-11-20 10:59:32 +00:00
| cis-1.6-k3s | master, controlplane, node, etcd, policies |
| cis-1.24-microk8s | master, controlplane, node, etcd, policies |
2021-06-09 08:17:16 +00:00
2022-09-14 14:40:48 +00:00
The following table shows the valid DISA STIG versions
| STIG | Targets |
|----------------------------|---------|
| eks-stig-kubernetes-v1r6 | master, controlplane, node, policies, managedservices |
2021-06-09 08:17:16 +00:00