Using Host PID Mode
highDetects services using host PID namespace, allowing the container to see and interact with all processes running on the host system.
Detects services using host PID namespace, allowing the container to see and interact with all processes running on the host system.
Experiment with the vulnerable code and security rule below. Edit the code to see how the rule detects different vulnerability patterns.
pathfinder scan --rule cpf/host-pid-modeExplore related security rules for Docker Compose
Detects services that add dangerous Linux capabilities like SYS_ADMIN, SYS_MODULE, or SYS_PTRACE which can be used for container escape or privilege escalation.
Detects services that mount the Docker socket, giving the container full control over the Docker daemon, equivalent to unrestricted root access to the host.
Detects services using host IPC namespace, allowing the container to share shared memory segments, semaphores, and message queues with the host system.
Common questions about Using Host PID Mode
Use Code Pathfinder to scan your Docker Compose codebase and automatically detect instances of this vulnerability pattern. Install Code Pathfinder and run the following command in your project directory:
pathfinder scan --rule cpf/host-pid-modeThis rule is aligned with industry-standard security frameworks and classifications: