Check: CNTR-K8-003150
Kubernetes STIG:
CNTR-K8-003150
(in versions v2 r2 through v1 r1)
Title
The Kubernetes Kube Proxy kubeconfig must be owned by root. (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 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 %U:%G <location from --kubeconfig>| grep -v root:root If the command returns any non root:root file permissions, this is a finding.
Fix Text
Change the ownership of the Kube Proxy to root:root by executing the command: chown root:root <location from kubeconfig>.
Additional Identifiers
Rule ID: SV-242448r961863_rule
Vulnerability ID: V-242448
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 |