CertGrid CertGrid
Hands-on Lab·Kubernetes and Cloud Native Security Associate

Privilege Escalation Paths in RBAC

Auditing RBAC by reading it does not scale - there are 74 ClusterRoles on a cluster with nothing installed. This guide is the three queries that answer the questions that matter, and what a good answer looks like.

Security Fundamentals Guide 20 of 42 Intermediate

Written against the versions above. The built-in ClusterRoles and bindings are Kubernetes' own, on a kubeadm cluster with no add-ons beyond a CNI. Counts on a real cluster will be higher and the queries are the same.

The cka5001 cluster: one control plane and 3 schedulable workers, on Cilium.
Server NameIP AddressOSRolesCPURAMHDD
CKA5001192.168.0.41Ubuntu 26.04 LTSControl Plane Node (tainted NoSchedule)2 Core4 GB50 GB
CKA5001-NODE01192.168.0.42Ubuntu 26.04 LTSWorker Node2 Core4 GB50 GB
CKA5001-NODE02192.168.0.43Ubuntu 26.04 LTSWorker Node2 Core4 GB50 GB
CKA5001-NODE03192.168.0.44Ubuntu 26.04 LTSWorker Node2 Core4 GB50 GB

Before you start

  1. Who holds cluster-admin

  2. What an unauthenticated caller can reach

  3. Why you query instead of reading

Official sources