Prefer JSON Notation for CMD/ENTRYPOINT
lowShell form wraps commands in /bin/sh -c which does not pass signals correctly. Use exec form (JSON) for proper signal handling
Shell form wraps commands in /bin/sh -c which does not pass signals correctly. Use exec form (JSON) for proper signal handling
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/docker-jsonExplore related security rules for Docker
Detects Dockerfiles without USER instruction, causing containers to run with root privileges
Detects ARG instructions with names suggesting secrets. Build args are visible in image history
Detects Docker socket mount which gives container full control over host Docker daemon
Common questions about Prefer JSON Notation for CMD/ENTRYPOINT
Use Code Pathfinder to scan your Docker 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/docker-jsonThis rule is aligned with industry-standard security frameworks and classifications: