vetkit.compose.container.sensitive-host-mount
A Compose service mounts a sensitive host directory (/, /etc, /root, /proc, /sys, /dev, /boot, /var/lib/docker…) writable into the container. Writing there lets the container change host configuration or credentials.
Last updated:
Suite: Security
yaml
A Compose service mounts a sensitive host directory (/, /etc, /root, /proc, /sys, /dev, /boot, /var/lib/docker…) writable into the container. Writing there lets the container change host configuration or credentials.
Category: SECURITY · Engine rule severity: WARNING
How to fix it
Mount only the specific files or sub-directories the service needs and add :ro when it only has to read them.
References
Source: packages/engine/rules/sast/config.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.