Check: CNTR-K8-003140
Kubernetes STIG:
CNTR-K8-003140
(in versions v1 r11 through v1 r1)
Title
The Kubernetes Kube Proxy kubeconfig must have file permissions set to 644 or more restrictive. (Cat II impact)
Discussion
The Kubernetes Kube Proxy kubeconfig contain the argument and setting for the Control Planes. These settings contain network rules for restricting network communication between pods, clusters, and networks. If these files can be changed, data traversing between the Kubernetes Control Panel components would be compromised. Many of the security settings within the document are implemented through this file.
Check Content
Check if Kube-Proxy is running and obtain --kubeconfig parameter use the following command: ps -ef | grep kube-proxy If Kube-Proxy exists: Review the permissions of the Kubernetes Kube Proxy by using the command: stat -c %a <location from --kubeconfig> If the file has permissions more permissive than "644", this is a finding.
Fix Text
Change the permissions of the Kube Proxy to "644" by executing the command: chmod 644 <location from kubeconfig>.
Additional Identifiers
Rule ID: SV-242447r927260_rule
Vulnerability ID: V-242447
Group Title: SRG-APP-000516-CTR-001325
Expert Comments
CCIs
Number | Definition |
---|---|
CCI-000366 |
The organization implements the security configuration settings. |
Controls
Number | Title |
---|---|
CM-6 |
Configuration Settings |