BETA Shoulder is in beta — Findings may sometimes be wrong. Your feedback shapes what we fix next. Share feedback

Privileged Container Detected

Description

Detects containers running with privileged security context.

What Shoulder detects

Privileged containers have access to all devices on the host and run with the same privileges as processes running on the host.

How to fix

Set privileged to false in the security context.

```yaml
securityContext:
  privileged: false
```

Learn more: https://shoulder.dev/learn/kubernetes/cwe-250/privileged-container

Applies to

Languages

Frameworks

kubernetes

References

Scan for this issue

Detect with Shoulder CLI
npx @shoulderdev/cli trust --rule=kubernetes-privileged-container .

Related rules