CIS Benchmarks test results for Kubernetes clusters
CIS Benchmarks are a carefully designed and constantly updated system of recommendations aimed to provide the best protection for systems, services, and applications from cyber threats. These recommendations are developed and maintained by Center for Internet Security (CIS), a non-profit organization that specializes in cybersecurity. Following CIS standards allows companies to minimize potential vulnerabilities, improve their ability to detect and respond to cyber incidents and thus increase the reliability of their security systems.
CIS benchmarks are available for various IT systems, including Kubernetes. You can find the full list of systems and their corresponding recommendations in the official documentation.
Kubernetes clusters versions 1.28 – 1.31 available on the VK Cloud platform have been tested using the CIS Kubernetes Benchmark. To conduct testing, an open-source tool called kube-bench was used to verify compliance with the CIS benchmarks. The official CIS Kubernetes Benchmark v.1.10 document was used as a basis for the testing. This document describes each stage of the testing process, provides recommendations, and outlines expected results.
The VK Cloud platform provides protection for master nodes, but user settings for clusters can vary. These settings are not taken into account in the testing process and are the responsibility of the user, which causes some tests to result in WARN or FAIL. To ensure maximum security of your Kubernetes clusters, you can perform your own tests using CIS benchmarks.
Thus, the testing has shown that Kubernetes clusters on the VK Cloud platform comply with the CIS Benchmarks recommendations. The following are detailed results with comments on individual testing stages:
Status | Test stage | Test type | Comment |
|---|---|---|---|
1. Control Plane Security Configuration | |||
PASS | 1.1.1. Ensure that the API server pod specification file permissions are set to | Automated | |
PASS | 1.1.2. Ensure that the API server pod specification file ownership is set to | Automated | |
PASS | 1.1.3. Ensure that the controller manager pod specification file permissions are set to | Automated | |
PASS | 1.1.4. Ensure that the controller manager pod specification file ownership is set to | Automated | |
PASS | 1.1.5. Ensure that the scheduler pod specification file permissions are set to | Automated | |
PASS | 1.1.6. Ensure that the scheduler pod specification file ownership is set to | Automated | |
PASS | 1.1.7. Ensure that the etcd pod specification file permissions are set to | Automated | |
PASS | 1.1.8. Ensure that the etcd pod specification file ownership is set to | Automated | |
PASS | 1.1.9. Ensure that the Container Network Interface file permissions are set to | Manual | The restrictions are set as required |
PASS | 1.1.10. Ensure that the Container Network Interface file ownership is set to | Manual | The restrictions are set as required |
PASS | 1.1.11. Ensure that the etcd data directory permissions are set to | Automated | The restrictions are set as required |
PASS | 1.1.12. Ensure that the etcd data directory ownership is set to | Automated | The restrictions are set as required |
PASS | 1.1.13. Ensure that the default administrative credential file permissions are set to | Automated | The |
PASS | 1.1.14. Ensure that the default administrative credential file ownership is set to | Automated | The |
PASS | 1.1.15. Ensure that the | Automated | |
PASS | 1.1.16. Ensure that the | Automated | |
PASS | 1.1.17. Ensure that the | Automated | |
PASS | 1.1.18. Ensure that the | Automated | |
PASS | 1.1.19. Ensure that the Kubernetes PKI directory and file ownership is set to | Automated | |
PASS | 1.1.20. Ensure that the Kubernetes PKI certificate file permissions are set to | Manual | |
PASS | 1.1.21. Ensure that the Kubernetes PKI key file permissions are set to | Manual | |
1.2. API Server | |||
WARN | 1.2.1. Ensure that the | Manual | |
PASS | 1.2.2. Ensure that the | Automated | |
WARN | 1.2.3. Ensure that the | Manual | |
PASS | 1.2.4. Ensure that the | Automated | |
PASS | 1.2.5. Ensure that the | Automated | |
PASS | 1.2.6. Ensure that the | Automated | |
PASS | 1.2.7. Ensure that the | Automated | |
PASS | 1.2.8. Ensure that the | Automated | |
WARN | 1.2.9. Ensure that the admission control plugin | Manual | |
PASS | 1.2.10. Ensure that the admission control plugin | Automated | |
WARN | 1.2.11. Ensure that the admission control plugin | Manual | |
PASS | 1.2.12. Ensure that the admission control plugin | Automated | |
PASS | 1.2.13. Ensure that the admission control plugin | Automated | |
PASS | 1.2.14. Ensure that the admission control plugin | Automated | |
PASS | 1.2.15. Ensure that the | Automated | |
PASS | 1.2.16. Ensure that the | Automated | |
PASS | 1.2.17. Ensure that the | Automated | |
PASS | 1.2.18. Ensure that the | Automated | |
PASS | 1.2.19. Ensure that the | Automated | |
PASS | 1.2.20. Ensure that the | Manual | |
PASS | 1.2.21. Ensure that the | Automated | |
PASS | 1.2.22. Ensure that the | Automated | |
PASS | 1.2.23. Ensure that the | Automated | |
PASS | 1.2.24. Ensure that the | Automated | |
PASS | 1.2.25. Ensure that the | Automated | |
PASS | 1.2.26. Ensure that the | Automated | |
PASS | 1.2.27. Ensure that the | Manual | |
PASS | 1.2.28. Ensure that encryption providers are appropriately configured | Manual | |
PASS | 1.2.29. Ensure that the API Server only makes use of Strong Cryptographic Ciphers | Manual | |
1.3. Controller Manager | |||
PASS | 1.3.1. Ensure that the | Manual | |
PASS | 1.3.2. Ensure that the | Automated | |
PASS | 1.3.3. Ensure that the | Automated | |
PASS | 1.3.4. Ensure that the | Automated | |
PASS | 1.3.5. Ensure that the | Automated | |
PASS | 1.3.6. Ensure that the | Automated | |
PASS | 1.3.7. Ensure that the | Automated | |
1.4. Scheduler | |||
PASS | 1.4.1. Ensure that the | Automated | |
PASS | 1.4.2. Ensure that the | Automated | |
2. Etcd Node Configuration | |||
PASS | 2.1. Ensure that the | Automated | The arguments are set in the configuration file |
PASS | 2.2. Ensure that the | Automated | The argument is set in the configuration file |
PASS | 2.3. Ensure that the | Automated | |
PASS | 2.4. Ensure that the | Automated | The arguments are set in the configuration file |
PASS | 2.5. Ensure that the | Automated | The argument is set in the configuration file |
PASS | 2.6. Ensure that the - | Automated | |
PASS | 2.7. Ensure that a unique Certificate Authority is used for etcd | Manual | |
3. Control Plane Configuration | |||
3.1. Authentication and Authorization | |||
WARN | 3.1.1. Client certificate authentication should not be used for users | Manual | |
WARN | 3.1.2. Service account token authentication should not be used for users | Manual | |
WARN | 3.1.3. Bootstrap token authentication should not be used for users | Manual | |
3.2. Logging | |||
WARN | 3.2.1. Ensure that a minimal audit policy is created | Manual | |
WARN | 3.2.2. Ensure that the audit policy covers key security concerns | Manual | |
4. Worker Node Security Configuration | |||
4.1. Worker Node Configuration Files | |||
PASS | 4.1.1. Ensure that the kubelet service file permissions are set to | Automated | |
PASS | 4.1.2. Ensure that the kubelet service file ownership is set to | Automated | |
PASS | 4.1.3. If proxy kubeconfig file exists ensure permissions are set to | Manual | |
PASS | 4.1.4. If proxy kubeconfig file exists ensure ownership is set to | Manual | |
PASS | 4.1.5. Ensure that the | Automated | |
PASS | 4.1.6. Ensure that the | Automated | |
PASS | 4.1.7. Ensure that the certificate authorities file permissions are set to | Manual | |
PASS | 4.1.8. Ensure that the client certificate authorities file ownership is set to | Manual | |
PASS | 4.1.9. If the kubelet | Automated | |
PASS | 4.1.10. If the kubelet | Automated | |
4.2. Kubelet | |||
PASS | 4.2.1. Ensure that the | Automated | |
PASS | 4.2.2. Ensure that the | Automated | |
PASS | 4.2.3. Ensure that the | Automated | |
PASS | 4.2.4. Verify that the | Manual | |
PASS | 4.2.5. Ensure that the | Manual | |
PASS | 4.2.6. Ensure that the | Automated | |
PASS | 4.2.7. Ensure that the | Manual | |
PASS | 4.2.8. Ensure that the | Manual | |
PASS | 4.2.9. Ensure that the | Manual | |
PASS | 4.2.10. Ensure that the | Automated | |
PASS | 4.2.11. Verify that the | Manual | |
PASS | 4.2.12. Ensure that the Kubelet only makes use of Strong Cryptographic Ciphers | Manual | |
PASS | 4.2.13. Ensure that a limit is set on pod PIDs | Manual | |
4.3. kube-proxy | |||
FAIL | 4.3.1. Ensure that the kube-proxy metrics service is bound to localhost | Automated | Compliance with the requirement affects the operation of the Kube Prometheus Stack addon |
5. Kubernetes Policies | |||
5.1. RBAC and Service Accounts | |||
FAIL | 5.1.1. Ensure that the | Automated | Depends on the user's environment settings |
FAIL | 5.1.2. Minimize access to secrets | Automated | Depends on the user's environment settings |
FAIL | 5.1.3. Minimize wildcard use in Roles and ClusterRoles | Automated | Depends on the user's environment settings |
FAIL | 5.1.4. Minimize access to create pods | Automated | Depends on the user's environment settings |
FAIL | 5.1.5. Ensure that default service accounts are not actively used | Automated | Depends on the user's environment settings |
FAIL | 5.1.6. Ensure that Service Account Tokens are only mounted where necessary | Automated | Depends on the user's environment settings |
WARN | 5.1.7 Avoid use of | Manual | |
WARN | 5.1.8. Limit use of the | Manual | Depends on the user's environment settings |
WARN | 5.1.9. Minimize access to create persistent volumes | Manual | Depends on the user's environment settings |
WARN | 5.1.10. Minimize access to the proxy sub-resource of nodes | Manual | Depends on the user's environment settings |
WARN | 5.1.11. Minimize access to the approval sub-resource of | Manual | Depends on the user's environment settings |
WARN | 5.1.12. Minimize access to webhook configuration objects | Manual | Depends on the user's environment settings |
WARN | 5.1.13. Minimize access to the service account token creation | Manual | Depends on the user's environment settings |
5.2. Pod Security Standards | |||
WARN | 5.2.1. Ensure that the cluster has at least one active policy control mechanism in place | Manual | Depends on the user's environment settings |
WARN | 5.2.2. Minimize the admission of privileged containers | Manual | Depends on the user's environment settings |
WARN | 5.2.3. Minimize the admission of containers wishing to share the host process ID namespace | Manual | Depends on the user's environment settings |
WARN | 5.2.4. Minimize the admission of containers wishing to share the host IPC namespace | Manual | Depends on the user's environment settings |
WARN | 5.2.5. Minimize the admission of containers wishing to share the host network namespace | Manual | Depends on the user's environment settings |
WARN | 5.2.6. Minimize the admission of containers with | Manual | Depends on the user's environment settings |
WARN | 5.2.7. Minimize the admission of root containers | Manual | Depends on the user's environment settings |
WARN | 5.2.8. Minimize the admission of containers with the | Manual | Depends on the user's environment settings |
WARN | 5.2.9. Minimize the admission of containers with added capabilities | Manual | Depends on the user's environment settings |
WARN | 5.2.10. Minimize the admission of containers with capabilities assigned | Manual | Depends on the user's environment settings |
WARN | 5.2.11. Minimize the admission of Windows HostProcess containers | Manual | Depends on the user's environment settings |
WARN | 5.2.12. Minimize the admission of HostPath volumes | Manual | Depends on the user's environment settings |
WARN | 5.2.13. Minimize the admission of containers which use HostPorts | Manual | Depends on the user's environment settings |
5.3. Network Policies and CNI | |||
PASS | 5.3.1. Ensure that the CNI in use supports | Manual | Supported |
WARN | 5.3.2. Ensure that all Namespaces have | Manual | Depends on the user's environment settings |
5.4. Secrets Management | |||
WARN | 5.4.1. Prefer using Secrets as files over Secrets as environment variables | Manual | Depends on the user's environment settings |
WARN | 5.4.2. Consider external secret storage | Manual | Depends on the user's environment settings |
5.5. Extensible Admission Control | |||
WARN | 5.5.1. Configure Image Provenance using | Manual | Depends on the user's environment settings |
5.7. General Policies | |||
WARN | 5.7.1. Create administrative boundaries between resources using namespaces | Manual | Depends on the user's environment settings |
WARN | 5.7.2. Ensure that the | Manual | Depends on the user's environment settings |
WARN | 5.7.3. Apply SecurityContext to your Pods and Containers | Manual | Depends on the user's environment settings |
WARN | 5.7.4. The default namespace should not be used | Manual | Depends on the user's environment settings |
Status | Test stage | Test type | Comment |
|---|---|---|---|
1. Control Plane Security Configuration | |||
PASS | 1.1.1. Ensure that the API server pod specification file permissions are set to | Automated | |
PASS | 1.1.2. Ensure that the API server pod specification file ownership is set to | Automated | |
PASS | 1.1.3. Ensure that the controller manager pod specification file permissions are set to | Automated | |
PASS | 1.1.4. Ensure that the controller manager pod specification file ownership is set to | Automated | |
PASS | 1.1.5. Ensure that the scheduler pod specification file permissions are set to | Automated | |
PASS | 1.1.6. Ensure that the scheduler pod specification file ownership is set to | Automated | |
PASS | 1.1.7. Ensure that the etcd pod specification file permissions are set to | Automated | |
PASS | 1.1.8. Ensure that the etcd pod specification file ownership is set to | Automated | |
PASS | 1.1.9. Ensure that the Container Network Interface file permissions are set to | Manual | The restrictions are set as required |
PASS | 1.1.10. Ensure that the Container Network Interface file ownership is set to | Manual | The restrictions are set as required |
PASS | 1.1.11. Ensure that the etcd data directory permissions are set to | Automated | The restrictions are set as required |
PASS | 1.1.12. Ensure that the etcd data directory ownership is set to | Automated | The restrictions are set as required |
PASS | 1.1.13. Ensure that the default administrative credential file permissions are set to | Automated | The |
PASS | 1.1.14. Ensure that the default administrative credential file ownership is set to | Automated | The |
PASS | 1.1.15. Ensure that the | Automated | |
PASS | 1.1.16. Ensure that the | Automated | |
PASS | 1.1.17. Ensure that the | Automated | |
PASS | 1.1.18. Ensure that the | Automated | |
PASS | 1.1.19. Ensure that the Kubernetes PKI directory and file ownership is set to | Automated | |
PASS | 1.1.20. Ensure that the Kubernetes PKI certificate file permissions are set to | Manual | |
PASS | 1.1.21. Ensure that the Kubernetes PKI key file permissions are set to | Manual | |
1.2. API Server | |||
WARN | 1.2.1. Ensure that the | Manual | |
PASS | 1.2.2. Ensure that the | Automated | |
WARN | 1.2.3. Ensure that the | Manual | |
PASS | 1.2.4. Ensure that the | Automated | |
PASS | 1.2.5. Ensure that the | Automated | |
PASS | 1.2.6. Ensure that the | Automated | |
PASS | 1.2.7. Ensure that the | Automated` | |
PASS | 1.2.8. Ensure that the | Automated | |
WARN | 1.2.9. Ensure that the admission control plugin | Manual | |
PASS | 1.2.10. Ensure that the admission control plugin | Automated | |
WARN | 1.2.11. Ensure that the admission control plugin | Manual | |
PASS | 1.2.12. Ensure that the admission control plugin | Automated | |
PASS | 1.2.13. Ensure that the admission control plugin | Automated | |
PASS | 1.2.14. Ensure that the admission control plugin | Automated | |
PASS | 1.2.15. Ensure that the | Automated | |
PASS | 1.2.16. Ensure that the | Automated | |
PASS | 1.2.17. Ensure that the | Automated | |
PASS | 1.2.18. Ensure that the | Automated | |
PASS | 1.2.19. Ensure that the | Automated | |
PASS | 1.2.20. Ensure that the | Manual | |
PASS | 1.2.21. Ensure that the | Automated | |
PASS | 1.2.22. Ensure that the | Automated | |
PASS | 1.2.23. Ensure that the | Automated | |
PASS | 1.2.24. Ensure that the | Automated | |
PASS | 1.2.25. Ensure that the | Automated | |
PASS | 1.2.26. Ensure that the | Automated | |
PASS | 1.2.27. Ensure that the | Manual | |
PASS | 1.2.28. Ensure that encryption providers are appropriately configured | Manual | |
PASS | 1.2.29. Ensure that the API Server only makes use of Strong Cryptographic Ciphers | Manual | |
1.3. Controller Manager | |||
PASS | 1.3.1. Ensure that the | Manual | |
PASS | 1.3.2. Ensure that the | Automated | |
PASS | 1.3.3. Ensure that the | Automated | |
PASS | 1.3.4. Ensure that the | Automated | |
PASS | 1.3.5. Ensure that the | Automated | |
PASS | 1.3.6. Ensure that the | Automated | |
PASS | 1.3.7. Ensure that the | Automated | |
1.4. Scheduler | |||
PASS | 1.4.1. Ensure that the | Automated | |
PASS | 1.4.2. Ensure that the | Automated | |
2. Etcd Node Configuration | |||
PASS | 2.1. Ensure that the | Automated | The arguments are set in the configuration file |
PASS | 2.2. Ensure that the | Automated | The argument is set in the configuration file |
PASS | 2.3. Ensure that the | Automated | |
PASS | 2.4. Ensure that the | Automated | The arguments are set in the configuration file |
PASS | 2.5. Ensure that the | Automated | The argument is set in the configuration file |
PASS | 2.6. Ensure that the | Automated | |
PASS | 2.7. Ensure that a unique Certificate Authority is used for etcd | Manual | |
3. Control Plane Configuration | |||
3.1. Authentication and Authorization | |||
PASS | 3.1.1. Client certificate authentication should not be used for users | Manual | |
WARN | 3.1.2. Service account token authentication should not be used for users | Manual | |
WARN | 3.1.3. Bootstrap token authentication should not be used for users | Manual | |
3.2. Logging | |||
WARN | 3.2.1. Ensure that a minimal audit policy is created | Manual | |
WARN | 3.2.2. Ensure that the audit policy covers key security concerns | Manual | |
4. Worker Node Security Configuration | |||
4.1. Worker Node Configuration Files | |||
PASS | 4.1.1. Ensure that the kubelet service file permissions are set to | Automated | |
PASS | 4.1.2. Ensure that the kubelet service file ownership is set to | Automated | |
PASS | 4.1.3. If proxy kubeconfig file exists ensure permissions are set to | Manual | |
PASS | 4.1.4. If proxy kubeconfig file exists ensure ownership is set to | Manual | |
PASS | 4.1.5. Ensure that the | Automated | |
PASS | 4.1.6. Ensure that the | Automated | |
PASS | 4.1.7. Ensure that the certificate authorities file permissions are set to | Manual | |
PASS | 4.1.8. Ensure that the client certificate authorities file ownership is set to | Manual | |
PASS | 4.1.9. If the kubelet | Automated | |
PASS | 4.1.10. If the kubelet | Automated | |
4.2. Kubelet | |||
PASS | 4.2.1. Ensure that the | Automated | |
PASS | 4.2.2. Ensure that the | Automated | |
PASS | 4.2.3. Ensure that the | Automated | |
PASS | 4.2.4. Verify that the | Manual | |
PASS | 4.2.5. Ensure that the --streaming-connection-idle-timeout argument is not set to | Manual | |
PASS | 4.2.6. Ensure that the | Automated | |
PASS | 4.2.7. Ensure that the | Manual | |
PASS | 4.2.8. Ensure that the | Manual | |
WARN | 4.2.9. Ensure that the | Manual | |
PASS | 4.2.10. Ensure that the | Automated | |
PASS | 4.2.11. Verify that the | Manual | |
WARN | 4.2.12. Ensure that the Kubelet only makes use of Strong Cryptographic Ciphers | Manual | |
PASS | 4.2.13. Ensure that a limit is set on pod PIDs | Manual | |
4.3. kube-proxy | |||
FAIL | 4.3.1. Ensure that the kube-proxy metrics service is bound to localhost | Automated | Affects the integration of the Kube Prometheus Stack addon and the kube-proxy system component |
5. Kubernetes Policies | |||
5.1. RBAC and Service Accounts | |||
FAIL | 5.1.1. Ensure that the | Automated | Depends on the user's environment settings |
FAIL | 5.1.2. Minimize access to secrets | Automated | Depends on the user's environment settings |
FAIL | 5.1.3. Minimize wildcard use in Roles and ClusterRoles | Automated | Depends on the user's environment settings |
FAIL | 5.1.4. Minimize access to create pods | Automated | Depends on the user's environment settings |
FAIL | 5.1.5. Ensure that default service accounts are not actively used | Automated | Depends on the user's environment settings |
FAIL | 5.1.6. Ensure that Service Account Tokens are only mounted where necessary | Automated | Depends on the user's environment settings |
WARN | 5.1.7. Avoid use of | Manual | |
WARN | 5.1.8. Limit use of the Bind, Impersonate and Escalate permissions in the Kubernetes cluster | Manual | Depends on the user's environment settings |
WARN | 5.1.9. Minimize access to create persistent volumes | Manual | Depends on the user's environment settings |
WARN | 5.1.10. Minimize access to the proxy sub-resource of nodes | Manual | Depends on the user's environment settings |
WARN | 5.1.11 Minimize access to the approval sub-resource of | Manual | Depends on the user's environment settings |
WARN | 5.1.12. Minimize access to webhook configuration objects | Manual | Depends on the user's environment settings |
WARN | 5.1.13. Minimize access to the service account token creation | Manual | Depends on the user's environment settings |
5.2. Pod Security Standards | |||
WARN | 5.2.1. Ensure that the cluster has at least one active policy control mechanism in place | Manual | Depends on the user's environment settings |
WARN | 5.2.2. Minimize the admission of privileged containers | Manual | Depends on the user's environment settings |
WARN | 5.2.3. Minimize the admission of containers wishing to share the host process ID namespace | Manual | Depends on the user's environment settings |
WARN | 5.2.4. Minimize the admission of containers wishing to share the host IPC namespace | Manual | Depends on the user's environment settings |
WARN | 5.2.5. Minimize the admission of containers wishing to share the host network namespace | Manual | Depends on the user's environment settings |
WARN | 5.2.6. Minimize the admission of containers with | Manual | Depends on the user's environment settings |
WARN | 5.2.7. Minimize the admission of root containers | Manual | Depends on the user's environment settings |
WARN | 5.2.8. Minimize the admission of containers with the | Manual | Depends on the user's environment settings |
WARN | 5.2.9. Minimize the admission of containers with added capabilities | Manual | Depends on the user's environment settings |
WARN | 5.2.10. Minimize the admission of containers with capabilities assigned | Manual | Depends on the user's environment settings |
WARN | 5.2.11. Minimize the admission of Windows HostProcess containers | Manual | Depends on the user's environment settings |
WARN | 5.2.12. Minimize the admission of HostPath volumes | Manual | Depends on the user's environment settings |
WARN | 5.2.13. Minimize the admission of containers which use HostPorts | Manual | Depends on the user's environment settings |
5.3. Network Policies and CNI | |||
PASS | 5.3.1. Ensure that the CNI in use supports NetworkPolicies | Manual | Supported |
WARN | 5.3.2. Ensure that all Namespaces have NetworkPolicies defined | Manual | Depends on the user's environment settings |
5.4. Secrets Management | |||
WARN | 5.4.1. Prefer using Secrets as files over Secrets as environment variables | Manual | Depends on the user's environment settings |
WARN | 5.4.2. Consider external secret storage | Manual | Depends on the user's environment settings |
5.5. Extensible Admission Control | |||
WARN | 5.5.1. Configure Image Provenance using ImagePolicyWebhook admission controller | Manual | Depends on the user's environment settings |
5.7. General Policies | |||
WARN | 5.7.1. Create administrative boundaries between resources using namespaces | Manual | Depends on the user's environment settings |
WARN | 5.7.2. Ensure that the | Manual | Depends on the user's environment settings |
WARN | 5.7.3. Apply SecurityContext to your Pods and Containers | Manual | Depends on the user's environment settings |
WARN | 5.7.4. The default namespace should not be used | Manual | Depends on the user's environment settings |