Check: CNTR-K8-000890
Kubernetes STIG:
CNTR-K8-000890
(in versions v1 r9 through v1 r7)
Title
The Kubernetes kubelet configuration files must have file permissions set to 644 or more restrictive. (Cat II impact)
Discussion
The kubelet configuration file contains the runtime configuration of the kubelet service. If an attacker can gain access to this file, changes can be made to open vulnerabilities and bypass user authorizations inherit within Kubernetes with RBAC implemented.
Check Content
On the Control Plane and worker nodes, change to the /etc/kubernetes/manifest directory. Run the command: ls -l kubelet Each kubelet configuration file must have permissions of "644" or more restrictive. If any kubelet configuration file is less restrictive than "644", this is a finding.
Fix Text
On the Control Plane, change to the /etc/kubernetes/manifest directory. Run the command: chmod 644 kubelet To verify the change took place, run the command: ls -l kubelet The kubelet file should now have the permissions of "644".
Additional Identifiers
Rule ID: SV-242407r879586_rule
Vulnerability ID: V-242407
Group Title: SRG-APP-000133-CTR-000305
Expert Comments
CCIs
Number | Definition |
---|---|
CCI-001499 |
Limit privileges to change software resident within software libraries. |
Controls
Number | Title |
---|---|
CM-5(6) |
Limit Library Privileges |