Why it matters
The container requests a Linux capability that permits escaping its isolation: loading kernel modules, tracing other processes, or administering the host.
How to fix it
Drop the capability. If the workload genuinely needs host access, run it as a separate, reviewed workload.
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.2.9: Containers with added capabilities are minimised. Also checked for this control: Container adds a Linux capability - NSA/CISA Kubernetes Hardening Guidance 1.2, control
pod.security-enforcement: Pod security is enforced. Also checked for this control: Container keeps the default capabilities, Container may escalate privileges, Container runs privileged, Container mounts /proc unmasked, Container runs as a Windows HostProcess, Namespace enforces no Pod Security Standard, Namespace enforces only Pod Security baseline, Workload shares the host IPC namespace, Workload shares the host network, Workload mounts a host path, Workload shares the host process namespace, Workload mounts the container runtime socket
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 has a credential written into its manifest
KubernetesSeverity: High
k8s.container.credential-in-env - Container binds a host port
KubernetesSeverity: Medium
k8s.container.host-port - Container keeps the default capabilities
KubernetesSeverity: Low
k8s.container.capabilities-not-dropped - Container runs `latest` or an untagged image
KubernetesSeverity: Medium
k8s.container.image-latest - Container explicitly disables AppArmor
KubernetesSeverity: Medium
k8s.container.apparmor-unconfined - Container runs a mutable image tag
KubernetesSeverity: Low
k8s.container.mutable-tag
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