Why it matters
`runAsGroup: 0` gives the process the root group, and with it read or write access to files the node's root group owns.
How to fix it
Set a non-zero `runAsGroup`.
What TrustIvan reads
Read through the Kubernetes API with the read-only role TrustIvan's install creates.
Benchmark controls
- NSA/CISA Kubernetes Hardening Guidance 1.2, control
pod.non-root: Containers run as non-root users. Also checked for this control: Nothing requires the container to run as non-root, Container runs as root
Control numbers are the published ones; the titles are TrustIvan's own short descriptions. The benchmarks belong to their publishers, who do not endorse TrustIvan.
Related checks
- Container runs privileged
KubernetesSeverity: Critical
k8s.container.privileged - Container runs as root
KubernetesSeverity: Medium
k8s.container.runs-as-root - Container may escalate privileges
KubernetesSeverity: Medium
k8s.container.privilege-escalation - Container explicitly disables seccomp
KubernetesSeverity: Medium
k8s.container.seccomp-unconfined - Nothing requires the container to run as non-root
KubernetesSeverity: Low
k8s.container.non-root-not-enforced - Container has no seccomp profile
KubernetesSeverity: Low
k8s.container.seccomp-unset
Terms: KSPM (Kubernetes security posture management), Kubernetes RBAC, NSA/CISA Kubernetes Hardening Guidance, CIS Benchmarks
All Kubernetes posture checks · The whole catalogue · How this works in TrustIvan · Documentation