Why it matters
Policies select some pods, but none denies ingress to every pod by default, so a pod no policy names is open to the whole cluster.
How to fix it
Add a policy with an empty `podSelector`, `policyTypes: [Ingress]` and no ingress rules.
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
network.policies: Network policies restrict traffic. Also checked for this control: Container binds a host port, Namespace has no NetworkPolicy
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 LimitRange
KubernetesSeverity: Low
k8s.namespace.no-limit-range - Namespace has no NetworkPolicy
KubernetesSeverity: Medium
k8s.namespace.no-network-policy - Namespace enforces no Pod Security Standard
KubernetesSeverity: Medium
k8s.namespace.no-pod-security-standard - Namespace has no ResourceQuota
KubernetesSeverity: Low
k8s.namespace.no-resource-quota - Namespace enforces only Pod Security baseline
KubernetesSeverity: Low
k8s.namespace.pod-security-not-restricted
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