Kubernetes under fire: the OWASP top 10 risks and how to close them
Picture the war room after a breach on your Kubernetes platform. Everyone wants answers. Did we know we were being attacked? How did the attacker get in? Which systems were affected and what happened on them in the last 24 hours? Which data left & where did it go?
Most organisations struggle to answer these questions. Many are better prepared on Windows than on Linux, while their business critical workloads run on Linux and Kubernetes makes it harder still. For some organisations it is now an obligation: NIS2's reporting requirements (Article 23) expect you to know what happened.
In our webinar with Red Hat, we walked through how an attacker gets into a Kubernetes platform, the 10 most common risks and what to do about them. This is the written version, with the questions from the audience.
How an attack on Kubernetes unfolds
An attack follows a familiar path. The attacker finds an exposed service or weak spot, exploits a vulnerable application or image to get a foothold in a container, escalates privileges and breaks out to the node or the cluster, installs a backdoor to stay in, moves through pods, namespaces and the wider network, and finally steals data, deploys ransomware or disrupts the service.
Two questions decide how it ends:
-
in which phase do you notice,
-
and from which phase can you stop it?
To answer them you need to know the risks, have the right open source tools and have people who use them.
The OWASP Kubernetes top 10
-
K01: Insecure workload configurations
In practice: a Deployment runs as root with
privileged: trueand mounts the node's filesystem throughhostPath.
Why it matters: one compromised container can break out and take over its node, and from there the rest of the cluster.
What helps: Red Hat Advanced Cluster Security (RHACS) flags privileged containers, root users, hostPath mounts and missing resource limits out of the box, and its admission controller blocks non-compliant deployments, also from your CI pipeline. Kangaroot tunes the policies to cut false positives and builds the CI/CD integration. -
K02: Overly permissive authorization
In practice: the CI pipeline's service account is bound to
cluster-admin, because getting the right permissions took too long.
Why it matters:cluster-admingives unlimited access, including secrets. A stolen token holds the keys to the cluster. The same goes for a pod, since its service account token is mounted inside the pod itself.
What helps: RHACS lists every user, group and service account with that privilege, finds unused roles and ranks deployments by risk. Kangaroot sets clusters up with least privilege from the start. -
K03: Secrets management failures
In practice: a database password sits in clear text in the Git repository of a GitOps deployment and is loaded as an environment variable.
Why it matters: credentials also end up in images, unencrypted etcd and chat tools such as Teams, so a well-secured cluster can still be compromised through a chat account or a mailbox.
What helps: RHACS helps only partly. It detects bad handling and alerts on secret access through the OpenShift audit log, but it is not a secret store and doesn't rotate secrets. Kangaroot pairs it with HashiCorp Vault or OpenBao, running outside the cluster, uses the External Secrets Operator and enables etcd encryption. -
K04: Lack of cluster-level policy enforcement
In practice: nothing stops a developer from deploying an unscanned
:latestimage from Docker Hub into production.
Why it matters: without central rules, security settings drift across teams and clusters.
What helps: this is the core of RHACS: one policy engine across build, deploy and runtime that can block:latesttags, untrusted registries and images with critical CVEs that already have a fix. Policies can be managed as code with Argo CD, but somebody still has to implement that. Kangaroot does it together with the rest of the cluster configuration. -
K05: Missing network segmentation controls
In practice: after an incident on application A, nothing stops the attacker from connecting to the database of application B.
Why it matters: by default, any pod can talk to any other pod, and OpenShift projects don't isolate traffic on their own. Few people write NetworkPolicies by hand.
What helps: the RHACS network graph shows the actual traffic and generates a policy from it. Kangaroot implements namespace isolation by default, allows ingress and monitoring, and hardens further from there. -
K06: Overly exposed Kubernetes components
In practice: a cluster component, an admin tool or an internal application is reachable from the public internet.
Why it matters: it is an easy target for attackers. OpenShift runs its API on a separate IP from the ingress, but a misconfiguration can still expose it.
What helps: check which routes, services, node ports and load balancers are reachable from outside, and whether that is intended. The RHACS network graph and default policies reveal the exposure. In Kangaroot's OpenShift managed service, we make sure components are only reachable from the subnets you choose. -
K07: Misconfigured and vulnerable cluster components
In practice: cluster components run outdated versions, and some containers have run for months without being redeployed with patches.
Why it matters: a vulnerable platform affects every workload on it, however secure the workloads are.
What helps: RHACS lists CVEs for the platform, the nodes and your workloads, keeps scanning running images after deployment and shows how old they are. The Compliance Operator checks the CIS benchmark on a schedule. Kangaroot implements the benchmark and delivers updates according to an SLA. -
K08: Cluster-to-cloud lateral movement
In practice: a compromised pod calls the node's cloud metadata endpoint and picks up its IAM credentials.
Why it matters: this risk is new on OWASP's 2025 list. Workers often get a broad cloud IAM role, and long-lived credentials end up in secrets or images, so the impact can reach well beyond the cluster.
What helps: RHACS helps to a certain extent. It flags unusual commands such as a call to the metadata endpoint and can generate egress policies. In the cloud, Kangaroot can block access to the node's metadata service with an egress policy, which limits this form of lateral movement. -
K09: Broken authentication mechanisms
In practice:
kubeadminis still enabled, or a whole operations team uses it.
Why it matters: shared credentials can't be revoked per person, and nobody can tell who did what.
What helps: the CIS benchmark checks thatkubeadminis gone, and the Compliance Operator runs that check on a schedule. Remove it only once an identity provider is in place. Kangaroot implements the benchmark and keeps checking it. -
K10: Inadequate logging and monitoring
In practice: someone runs
execinto a production pod and copies data out, and nobody notices.
Why it matters: without logs and alerts there is no forensic evidence, and compliance with ISO 27001 (8.15 logging, 8.16 monitoring) and NIS2 suffers.
What helps: RHACS alerts on policy violations, process deviations and file activity, and sends events over syslog. Kangaroot integrates this in your SIEM, which for our clients is Elastic.
What this adds up to
RHACS covers the central risks well. For secrets (K03) and cluster-to-cloud movement (K08) it helps only partly: it detects bad handling and unusual behaviour, but it is not a secret store and does not replace a proper cloud identity set-up. And for all ten there is the same catch: the tool shows you the risk, and somebody still has to implement the fix and follow it up.
Questions from the webinar
-
How do you handle the volume of security logs without drowning in noise and storage costs?
Manage events actively: even an idle cluster generates events through its API. Tune the audit rules and filter on the SIEM side so you only keep what matters, which differs per organisation. Image quality plays a role too: bloated images pulled from the internet cause far more runtime alerts than images from Red Hat or distroless images.
-
How does the Compliance Operator fit in, and should we implement the whole CIS benchmark?
The Compliance Operator is part of OpenShift. Install it, select a profile and you get reports on demand, with RHACS adding insight on top. Don't implement the benchmark blindly: check every control against how your environment works, or things will break.
-
Writing NetworkPolicies by hand is painful. What do you recommend?
Use the RHACS network graph. Deploy your application in a dev cluster, let RHACS observe the traffic, generate a policy and review it manually before you apply it.
-
If we remove kubeadmin, how do we keep access in a break-glass scenario?
Removing it is good practice once an identity provider is in place. Keep a break-glass option for emergencies, such as the original kubeconfig or an escape hatch in your identity provider (for example Keycloak). Don't let the whole team use it and don't keep it on a network share: keep it offline with a few trusted on-call engineers.
Buying a tool doesn't buy you security
Someone has to watch the tool, tune the rules and respond to alerts, sometimes at night, and those people are very hard to find. ISC2 counts around 4.8 million unfilled cybersecurity jobs worldwide. That is why Kangaroot built Kangasec, our security practice for Linux and open source.
For RHACS we run the tool as a managed service: real analysts follow up daily, triage alerts, prioritise CVEs by exploitability, tune policies, implement the CIS benchmark and integrate with your SIEM and CI/CD, so findings turn into action.
Where to start
You don't need to fix all ten at once. Start with the war room questions. If you can't answer them for your clusters today, that shows where your biggest gap is.