Skip to content

Lesson 13 of 13 · 12m

How Clusters Actually Get Breached

Tesla's open console, TeamTNT's worm, RBAC Buster's disguised bindings, and IngressNightmare — the unauthenticated-endpoint pattern and its checklist.

Nobody 0days their way in

Read enough Kubernetes breach reports and the shape stops being surprising: an unauthenticated or over-permissive endpoint, a harvested credential, a persistence mechanism disguised as infrastructure, and a cryptominer as the payload. The sophistication is in the hygiene failures, not the exploits.

Tesla, February 2018. RedLock reported a Kubernetes administrative console reachable on the internet with no authentication. Attackers walked in, ran cryptomining in the cluster, and exfiltrated AWS S3 credentials stored in pod environment variables. No CVE, no exploit — an open console and secrets in env vars, the two beginner mistakes from lessons 1 and 12 in one incident. Cryptomining stays the payload of choice because it monetizes a foothold without touching data: a pod that never reads your secrets still pays out in CPU.

TeamTNT, 2020–2021. A worm that scanned for exposed kubelet ports and Kubernetes dashboards, then stole AWS credentials from instance metadata and filesystem, and deployed miners. Its Kubernetes-specific variant enumerated cluster credentials via the mounted service account token — the exact file lesson 3 told you to stop mounting. They also shipped malicious Docker Hub images, which is lesson 10's threat model made literal.

RBAC Buster, July 2023. Sysdig's threat team ran honeypot clusters and watched attackers exploit API servers misconfigured to grant system:anonymous real privileges. Once in, they created a ClusterRoleBinding handing cluster-admin to a new service account named to look like a system component — kube-controller-manager-style names that pass a skim of kubectl get clusterrolebindings. Persistence: a DaemonSet named like a kube-system plugin, running a Monero miner. Sixty honeypot clusters got hit. Every step maps to a specific RBAC verb and audit verb from lessons 2 and 11 — anonymous grants, clusterrolebindings create, DaemonSet deploys.

IngressNightmare, March 2025. CVE-2025-1974: the ingress-nginx admission webhook accepted unauthenticated AdmissionReview objects and ran attacker-controlled nginx config — network-reachable RCE as a component that can read every cluster Secret. Lesson 9's warning, weaponized: the admission controller isn't just a policy checkpoint, it's a listener.

Exposed etcd and kubelets. Shodan-driven research through 2018–2020 repeatedly found thousands of etcd endpoints answering on 2379 without client-auth and kubelets on 10250 answering anonymous requests — --anonymous-auth still defaults to true in the kubelet itself; kubeadm and managed providers disable it for you, so the exposed ones are legacy and hand-rolled installs that never overrode the flag. Either endpoint is cluster-total compromise: etcd holds every Secret; an anonymous kubelet runs commands in any pod on its node.

The pattern is a checklist

Look at what none of these needed: a kernel 0day, a container escape (Siloscape remains the exception, and it needed a privileged foothold first). They needed an endpoint that answered without auth, a grant wider than the workload required, or a credential sitting where anyone could read it.

So the hardened-cluster checklist is short and concrete:

  • Nothing unauthenticated: no exposed dashboard/console, anonymous-auth: false on kubelets, etcd behind client-cert TLS and node-only firewalling, --anonymous-auth=false/system:anonymous holding nothing.
  • No standing cluster-admin bindings outside break-glass; alert on clusterrolebindings creates and on grants of escalate, bind, impersonate.
  • PSA enforce: baseline everywhere apps run, restricted where you control images; webhook failurePolicy: Fail and admission components patched.
  • Default-deny egress; 169.254.169.254 unreachable from pods; IMDSv2 hop limit 1.
  • Secrets: kms v2 encryption at rest, no list/watch on secrets, no env-var credentials.
  • Audit log enabled, shipped off-node, alerting on exec/portforward/token-mint/CSR-approve.

Every one of those is a line of configuration you already own. The breaches in this lesson all walked through the gap between "the cluster runs" and "the cluster is governed." Closing that gap is this entire course in one paragraph: identity scoped, pods bounded, network denied by default, admission fail-closed, secrets actually encrypted, and a recorder watching.

Was this lesson helpful?

Sign in to rate

Keep reading

Related articles from the SudoSecurity blog.