Why it matters
The pod sets a kernel parameter outside the namespaced, safe set, which can affect every pod on the node.
How to fix it
Remove the sysctl, or set it on a dedicated, tainted node pool.
What TrustIvan reads
Read through the Kubernetes API with the read-only role TrustIvan's install creates.
Benchmark controls
- CIS Kubernetes Benchmark 1.9.0, control
5.7.3: A security context is applied to pods and containers. Also checked for this control: Container explicitly disables AppArmor, Container sets a custom SELinux user, role or type, Container mounts /proc unmasked, Container root filesystem is writable - NSA/CISA Kubernetes Hardening Guidance 1.2, control
pod.hardened-runtime: Container environments are hardened (seccomp, AppArmor, SELinux). Also checked for this control: Container explicitly disables AppArmor, Container explicitly disables seccomp, Container sets a custom SELinux user, role or type
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
- Workload has an API token mounted
KubernetesSeverity: Low
k8s.workload.token-automounted - Workload mounts the container runtime socket
KubernetesSeverity: Critical
k8s.workload.runtime-socket - Workload shares the host process namespace
KubernetesSeverity: High
k8s.workload.host-pid - Workload mounts a host path
KubernetesSeverity: High
k8s.workload.host-path - Workload shares the host network
KubernetesSeverity: High
k8s.workload.host-network - Workload shares the host IPC namespace
KubernetesSeverity: High
k8s.workload.host-ipc
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