vetkit.compose.container.privileged
A Compose service runs a privileged container. privileged: true gives the container every kernel capability and access to all host devices, so a compromise of that service is a compromise of the host.
Last updated:
Suite: Security
yaml
A Compose service runs a privileged container. privileged: true gives the container every kernel capability and access to all host devices, so a compromise of that service is a compromise of the host.
Category: SECURITY · Engine rule severity: WARNING
How to fix it
Remove privileged: true and grant only the specific capabilities (cap_add) or devices (devices) the service really needs.
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.