Privilege Escalation Allowed
Description
Detects containers with privilege escalation explicitly enabled.
What Shoulder detects
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 .