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

Privilege Escalation Allowed

Description

Detects containers with privilege escalation explicitly enabled.

What Shoulder detects

Container allows privilege escalation, which can enable attackers to gain additional privileges through exploits.

How to fix

Disable privilege escalation in securityContext.

```yaml
securityContext:
  allowPrivilegeEscalation: false
```

Learn more: https://shoulder.dev/learn/kubernetes/cwe-250/privilege-escalation

Applies to

Languages

Frameworks

kubernetes

References

Scan for this issue

Detect with Shoulder CLI
npx @shoulderdev/cli trust --rule=kubernetes-allow-privilege-escalation .

Related rules