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

Writable Root Filesystem

Description

Detects containers that allow writes to the root filesystem.

What Shoulder detects

Container allows writes to the root filesystem.

How to fix

Enable read-only root filesystem.

```yaml
securityContext:
  readOnlyRootFilesystem: true
```

Learn more: https://shoulder.dev/learn/kubernetes/cwe-732/writable-root-filesystem

Applies to

Languages

Frameworks

kubernetes

References

Scan for this issue

Detect with Shoulder CLI
npx @shoulderdev/cli trust --rule=kubernetes-writable-root-filesystem .

Related rules