Service Running in Privileged Mode
CRITICALService is running in privileged mode. This grants container equivalent of root capabilities on the host machine. Can lead to container escapes and privilege escalation.
Service is running in privileged mode. This grants container equivalent of root capabilities on the host machine. Can lead to container escapes and privilege escalation.
Experiment with the vulnerable code and security rule below. Edit the code to see how the rule detects different vulnerability patterns.
pathfinder ci --ruleset docker-compose/COMPOSE-SEC-001 --project .Explore related security rules for Docker Compose
Service uses host IPC namespace. Container shares inter-process communication with host.
Service does not have 'no-new-privileges:true' in security_opt. This allows
Service has 'label:disable' in security_opt, which disables SELinux mandatory
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 ci --ruleset docker-compose/COMPOSE-SEC-001 --project .This rule is aligned with industry-standard security frameworks and classifications: