Kubernetes check
Pod uses host namespaces
Trigger condition
A Pod spec's hostNetwork, hostPID, and/or hostIPC field is set to true.
Evidence
States which of hostNetwork, hostPID, and hostIPC are set to true, in a stable order. These are Pod-spec-level settings, not per-container, so the finding is never attributed to a specific container.
Impact
hostNetwork shares the node's own network namespace and port space with the Pod, rather than giving it an isolated one of its own. hostPID exposes the host's processes to the Pod; inspecting or signaling them is subject to the Pod's own Linux permissions. hostIPC gives the Pod access to the host's inter-process communication resources, which can be used to interact with or disrupt other processes sharing it. Each removes isolation the Pod namespace would otherwise provide, independent of the others.
Recommendation
Remove hostNetwork, hostPID, and/or hostIPC, or set them to false, wherever they are not required. For a Deployment-managed Pod, make the change in the Deployment's own Pod template and roll out the change. For a Pod managed by another controller, make the change in that workload's own source configuration and follow its normal update process; for a genuinely standalone Pod, update its own source manifest instead -- either way, the setting cannot be edited on a running Pod in place, so check workload availability before it is replaced. When a live Pod's enabled fields do not match what its Deployment's own template reports, check the Deployment's rollout status (an older replica may predate a template correction) and whether an admission-time mutation (e.g. a mutating webhook) altered that Pod independently of its template -- investigate through the owning controller or the responsible admission configuration rather than editing the Pod directly. Account for workload availability before replacing a Pod to apply a corrected setting.
Important limitations
This check evaluates only the three named Pod-spec fields. It does not detect equivalent or partial host access achieved through other means, such as securityContext.privileged, added Linux capabilities, or a hostPath volume mount -- none of which are evaluated here.