Menu

Kubernetes RBAC: Detecting Hidden Privilege Escalation Paths in Your ClusterRoles
πŸ“°

Kubernetes RBAC: Detecting Hidden Privilege Escalation Paths in Your ClusterRoles

DEV Community: kubernetesΒ·Florient DOGBEΒ·about 1 month ago
#GEGjR2vO
#devtokubernetes#devto#dev#rbac#system
Long article (2331 words) β€” no AI summary yet.
Reading 0:00
15s threshold

Most clusters do not get compromised through a zero-day in the kubelet. They get compromised because a CI ServiceAccount was granted create on deployments in kube-system , or because a "read-only auditor" ClusterRole quietly contains secrets: ["get","list"] . RBAC failures are rarely a single obviously-wrong rule β€” they are a chain of individually reasonable rules that compose into a path to cluster-admin .

This article is about finding those chains before an attacker does: which verbs are actually dangerous, how to enumerate them mechanically, how to verify effective permissions instead of reading YAML, and how to turn least privilege into something you can assert in CI.

Why RBAC escalation stays invisible

Kubernetes RBAC has three properties that make manual review unreliable:

It is purely additive. There is no deny rule. Effective permissions for a subject are the union of every Role and ClusterRole bound to it, directly or through any group it belongs to β€” including system:authenticated .…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.