Why it matters
`:latest` and a bare image name say nothing about what version runs: two nodes can run different builds, and a restart can change it.
How to fix it
Reference a specific version, preferably by digest.
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.5.1: Image provenance is configured. Also checked for this control: Container runs a mutable image tag, Container image comes from an untrusted registry - NSA/CISA Kubernetes Hardening Guidance 1.2, control
pod.secure-images: Images are built and referenced securely. Also checked for this control: Container runs a mutable image tag, Container image comes from an untrusted registry
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 binds a host port
KubernetesSeverity: Medium
k8s.container.host-port - Container runs a mutable image tag
KubernetesSeverity: Low
k8s.container.mutable-tag - Container adds a dangerous capability
KubernetesSeverity: High
k8s.container.dangerous-capability - Container keeps NET_RAW
KubernetesSeverity: Low
k8s.container.net-raw - Container has a credential written into its manifest
KubernetesSeverity: High
k8s.container.credential-in-env - Container has no CPU limit
KubernetesSeverity: Low
k8s.container.no-cpu-limit
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