How One Compromised Kubernetes Pod Can Become Full Cluster Control in Minutes
Kubernetes hides much of the underlying infrastructure, but it does not hide risk. CrowdStrike warns that a single compromised pod can be used to gain cluster-admin rights, move between namespaces, steal cloud credentials and set up persistent access, all within minutes.
The company argues that no single data source tells the whole story. The control plane shows who made an API call, but not what ran inside the container. Runtime telemetry shows what ran, but not whether the identity behind it was legitimate. CrowdStrike recommends correlating four layers (code, container, cluster and cloud) using audit logs, sensor data, asset and admission data, and cloud activity logs.
Its worked example begins with a detection at 15:14:43 UTC on a cluster named demo-cluster. A service account called pod-manager-sa, from the test namespace, used an exec call to open a shell in the monitoring-agent pod in the kube-system namespace. Service accounts rarely do this, so it signals lateral movement. Audit log searches showed a test command followed by a read of the pod's service account token. That token let the attacker act as the account linked to that pod, which asset inventory showed was cluster-admin-sa.
The logs show pod-manager-sa reading the token at 15:08:35, and cluster-admin-sa making privileged calls one second later. Those calls created a new CronJob, listed every secret in the cluster and created a new pod, and all succeeded. Because every secret was exposed, CrowdStrike advises rotating any value stored on the cluster and investigating what was taken. The investigators then turned to admission controller data to find which pods used the original service account and where the activity began.
Why it matters
Teams running Kubernetes, including managed services, may assume that separating namespaces contains a breach. Here, an over-permissive service account and a readable token in a kube-system pod removed that boundary in one second. It also shows that audit logs alone cannot tell you whether an identity was abused, so teams relying on a single log source will miss the chain.
What to do
- Alert on exec API calls made by service accounts, especially across namespaces.
- Review which pods run under cluster-admin-level service accounts and remove unneeded privileges.
- Search audit logs for reads of /var/run/secrets/kubernetes.io/serviceaccount/token followed by privileged API calls.
- Rotate all secrets stored on a cluster if a cluster-admin identity is compromised.