Why it matters
The container does not drop ALL capabilities, so it keeps the runtime's default set, which includes CHOWN, SETUID and NET_RAW.
How to fix it
Set `capabilities.drop: ["ALL"]` and add back only what the process needs.
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.10: Containers with assigned capabilities are minimised - NSA/CISA Kubernetes Hardening Guidance 1.2, control
pod.security-enforcement: Pod security is enforced. Also checked for this control: Container adds a dangerous capability, 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 explicitly disables AppArmor
KubernetesSeverity: Medium
k8s.container.apparmor-unconfined - Container has a credential written into its manifest
KubernetesSeverity: High
k8s.container.credential-in-env - Container adds a Linux capability
KubernetesSeverity: Low
k8s.container.added-capability - Container adds a dangerous capability
KubernetesSeverity: High
k8s.container.dangerous-capability - Container binds a host port
KubernetesSeverity: Medium
k8s.container.host-port - Container runs `latest` or an untagged image
KubernetesSeverity: Medium
k8s.container.image-latest
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