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

Dangerous Linux Capabilities Added

Description

Detects containers adding dangerous Linux capabilities like SYS_ADMIN, NET_ADMIN, or SYS_PTRACE.

What Shoulder detects

Container adds dangerous Linux capabilities like SYS_ADMIN, NET_ADMIN, or SYS_PTRACE.

How to fix

Remove dangerous capabilities and drop ALL.

```yaml
securityContext:
  capabilities:
    drop: [ALL]
```

Learn more: https://shoulder.dev/learn/kubernetes/cwe-250/dangerous-capabilities

Applies to

Languages

Frameworks

kubernetes

References

Scan for this issue

Detect with Shoulder CLI
npx @shoulderdev/cli trust --rule=kubernetes-dangerous-capabilities .

Related rules