Why it matters
Baseline stops known escalations; restricted also requires non-root, dropped capabilities and a seccomp profile, which is what the hardening guidance asks for.
How to fix it
Move the namespace to `pod-security.kubernetes.io/enforce=restricted`, after testing with the `warn` label.
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.security-enforcement: Pod security is enforced. Also checked for this control: Container keeps the default capabilities, 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, 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
- Namespace has no ResourceQuota
KubernetesSeverity: Low
k8s.namespace.no-resource-quota - Namespace enforces no Pod Security Standard
KubernetesSeverity: Medium
k8s.namespace.no-pod-security-standard - Namespace has no NetworkPolicy
KubernetesSeverity: Medium
k8s.namespace.no-network-policy - Namespace has no LimitRange
KubernetesSeverity: Low
k8s.namespace.no-limit-range - Namespace has NetworkPolicies but no default deny
KubernetesSeverity: Low
k8s.namespace.no-default-deny
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