| name | cis-k8s-v1111-1.1.20 |
| description | Ensure that the Kubernetes PKI certificate file permissions are set to 644 or more restrictive (Manual) |
| category | cis-k8s |
| version | 1.11.1 |
| author | cyberstrike-official |
| tags | ["cis","kubernetes","control-plane","configuration-files","permissions","pki","certificates"] |
| cis_id | 1.1.20 |
| cis_benchmark | CIS Kubernetes Benchmark v1.11.1 |
| tech_stack | ["kubernetes"] |
| cwe_ids | [] |
| chains_with | [] |
| prerequisites | [] |
| severity_boost | {} |
CIS Kubernetes Benchmark v1.11.1 - Control 1.1.20
Profile Applicability
Description
Ensure that Kubernetes PKI certificate files have permissions of 644 or more restrictive.
Rationale
Kubernetes makes use of a number of certificate files as part of the operation of its components. The permissions on these files should be set to 644 or more restrictive to protect their integrity and confidentiality.
Impact
None
Audit
Run the below command (based on the file location on your system) on the Control Plane node. For example,
stat -c '%a' /etc/kubernetes/pki/*.crt
Verify that the permissions are 644 or more restrictive.
or
ls -l /etc/kubernetes/pki/*.crt
Verify -rw------.
Remediation
Run the below command (based on the file location on your system) on the Control Plane node. For example,
chmod -R 644 /etc/kubernetes/pki/*.crt
Default Value
By default, the certificates used by Kubernetes are set to have permissions of 644.
References
- https://kubernetes.io/docs/admin/kube-apiserver/
CIS Controls
| Controls Version | Control | IG 1 | IG 2 | IG 3 |
|---|
| v8 | 5.4 Restrict Administrator Privileges to Dedicated Administrator Accounts Restrict administrator privileges to dedicated administrator accounts on enterprise assets. Conduct general computing activities, such as internet browsing, email, and productivity suite use, from the user's primary, non-privileged account. | ● | ● | ● |
| v7 | 4 Controlled Use of Administrative Privileges Controlled Use of Administrative Privileges | | | |