Why it matters
The container adds a capability beyond the runtime's default set. Each one widens what a compromised process may do on the node.
How to fix it
Remove `capabilities.add`, or keep only NET_BIND_SERVICE if the process binds a low port.
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 dangerous capability
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 keeps the default capabilities
KubernetesSeverity: Low
k8s.container.capabilities-not-dropped - Container has a credential written into its manifest
KubernetesSeverity: High
k8s.container.credential-in-env - 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