vetkit.compose.container.root-user
A Compose service explicitly runs its process as root (user: root / user: "0"). A process escape or a writable mount then acts with root privileges.
Last updated:
Suite: Security
yaml
A Compose service explicitly runs its process as root (user: root / user: "0"). A process escape or a writable mount then acts with root privileges.
Category: SECURITY · Engine rule severity: INFO
How to fix it
Run the service as an unprivileged user (user: "1000:1000") and fix file ownership in the image.
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.