Why it matters
A HostProcess container runs directly on the Windows node with the node's privileges.
How to fix it
Remove `windowsOptions.hostProcess`, or run the workload as a reviewed node component.
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.11: Windows HostProcess containers are minimised - 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, 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 image comes from an untrusted registry
KubernetesSeverity: Medium
k8s.container.untrusted-registry - Container root filesystem is writable
KubernetesSeverity: Low
k8s.container.writable-root-filesystem - Container mounts /proc unmasked
KubernetesSeverity: High
k8s.container.unmasked-proc - Container sets a custom SELinux user, role or type
KubernetesSeverity: Medium
k8s.container.selinux-custom - Container reads a Secret through environment variables
KubernetesSeverity: Low
k8s.container.secret-in-env - Container has no seccomp profile
KubernetesSeverity: Low
k8s.container.seccomp-unset
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