Check ID:
Provider: Kubernetes
Service:
Severity: HIGH
Categories:
Resource type:
core_minimize_root_containers_admissionProvider: Kubernetes
Service:
coreSeverity: HIGH
Categories:
container-securityResource type:
PodWhat this check verifies
Kubernetes Pods are assessed for containers configured to run as the root user. The evaluation identifies containers whose security context setsrunAsUser: 0.
Risk
Containers running as root (UID 0) enable privilege escalation and container breakout. Attackers can modify workloads (integrity), read sensitive data on mounted volumes (confidentiality), and disrupt nodes or services via kernel/daemon abuse (availability).Recommendation
Require non-root execution and enforce least privilege:- Set
runAsNonRoot: trueand a non-zerorunAsUser - Use images with a defined non-root UID
- Apply Pod Security Standards - restricted or policies to block UID
0 - Use
allowPrivilegeEscalation: falseand drop unnecessary capabilities
Remediation
- CLI
- Terraform
- Dashboard steps
References
- https://kubernetes.io/docs/tutorials/security/cluster-level-pss/
- https://kubernetes.io/docs/concepts/security/pod-security-standards/
- https://kyverno.io/policies/pod-security/restricted/require-run-as-nonroot/require-run-as-nonroot/
- https://support.icompaas.com/support/solutions/articles/62000234712-minimize-the-admission-of-root-containers
Where this check fires
This check runs on every scheduled scan against your Kubernetes account. Findings appear at Cloud Security → Findings filterable byCheck ID = core_minimize_root_containers_admission. To re-evaluate after a fix, hit Run now on the account’s schedule under Cloud Security → Schedules — the next scan re-checks this control and marks the finding fixed or keeps it persistent.
← Back to Kubernetes checks