Check: CNTR-K8-003220
Kubernetes STIG:
CNTR-K8-003220
(in versions v2 r2 through v1 r2)
Title
The Kubernetes kubeadm.conf must have file permissions set to 644 or more restrictive. (Cat II impact)
Discussion
The Kubernetes kubeadm.conf contains sensitive information regarding the cluster nodes configuration. If this file can be modified, the Kubernetes Platform Plane would be degraded or compromised for malicious intent. Many of the security settings within the document are implemented through this file.
Check Content
Review the kubeadm.conf file : Get the path for kubeadm.conf by running: systemctl status kubelet Note the configuration file installed by the kubeadm is written to (Default Location: /etc/systemd/system/kubelet.service.d/10-kubeadm.conf) stat -c %a <kubeadm.conf path> If the file has permissions more permissive than "644", this is a finding.
Fix Text
Change the permissions of kubeadm.conf to "644" by executing the command: chmod 644 <kubeadm.conf path>
Additional Identifiers
Rule ID: SV-242455r961863_rule
Vulnerability ID: V-242455
Group Title: SRG-APP-000516-CTR-001325
Expert Comments
CCIs
Number | Definition |
---|---|
CCI-000366 |
Implement the security configuration settings. |
Controls
Number | Title |
---|---|
CM-6 |
Configuration Settings |