Service Running in Privileged Mode
criticalDetects services configured with privileged mode, which disables almost all container security features and grants nearly all capabilities of the host machine.
Detects services configured with privileged mode, which disables almost all container security features and grants nearly all capabilities of the host machine.
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/privileged-serviceExplore 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 Service Running in Privileged 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/privileged-serviceThis rule is aligned with industry-standard security frameworks and classifications: