What it means for teams

Whoever writes the Deployment decides how much of the node and the cluster a compromised container can reach. A pod that runs as root with default capabilities, an API token it never uses and the Unconfined seccomp default turns an application bug into a container escape or a cluster foothold.

How to prevent it

  • Set securityContext for every container: a non-root user, allowPrivilegeEscalation: false, capabilities.drop: [ALL], a read-only root filesystem and the RuntimeDefault seccomp profile.
  • Set automountServiceAccountToken: false unless the application calls the Kubernetes API.
  • Avoid privileged: true, host namespaces and host paths; where a workload genuinely needs one, record the exception and isolate it.
  • Set CPU and memory limits, and enforce the Pod Security Standards Restricted profile at admission so a manifest cannot quietly drop these settings.

Guides on this site

Practice

References

  1. K01:2025 Insecure Workload Configurations (OWASP)
  2. Kubernetes documentation: Pod Security Standards

List data from the publisher. A guide is listed as the main subject when the weakness or risk is what the guide is about, and as covering it when a dedicated section or worked example addresses it.

OWASP does not publish a mapping between the 2022 and 2025 lists. The 2022 entry shown for each risk is the one with the same subject, matched by title; 2022's K02 Supply Chain Vulnerabilities has no 2025 counterpart.