Skip to content
vetkitChecksChangelogDocumentation

vetkit.shell.docker.host-escape-flags

docker run starts a container with host-level access (--privileged, the Docker socket, the host PID namespace or the SYS_ADMIN/ALL capability). A compromise of that container is a compromise of the host.

Last updated:

Suite: Security

regex

docker run starts a container with host-level access (--privileged, the Docker socket, the host PID namespace or the SYS_ADMIN/ALL capability). A compromise of that container is a compromise of the host.

Category: SECURITY · Engine rule severity: WARNING

How to fix it

Drop the flag and grant only the specific capability, device or bind mount the container needs.

References

Source: packages/engine/rules/sast/shell.yml.

Generated from shipped rule definitions at build time. Matching is a review signal, not proof of exploitability. “generic” denotes text matching, not complete language or framework coverage. Runtime configuration and available tools affect whether a rule runs.