Policy does not prevent use of root user Affecting Deployment service in Kubernetes


Severity

0.0
medium
0
10
Severity Framework
Snyk CCSS
Rule category
IAM/ Privileged Access

Is your environment affected by this misconfiguration?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
Frameworks
CIS-ControlsCIS-Kubernetes
  • Snyk IDSNYK-CC-00635
  • creditSnyk Research Team

Description

The Pod Security Policy does not prevent the use of the root user. Running a container as the root user in Kubernetes increases the attack surface by granting the container more privileges than necessary.

How to fix?

Set runAsUser to MustRunAsNonRoot, or exclude UID 0 from MustRunAs range.