Kubernetes RBAC stops a user from granting permissions they do not hold, except when that user has been given the escalate or bind verb, which switch the check off. These two verbs, along with impersonate, are the RBAC permissions that let a subject reach access it was never directly granted. They are often handed out by accident: through a wildcard verb, a copied "namespace admin" role, or a delegated tooling account that was given more than it needed. This guide explains how the API server's escalation check works, what each verb overrides, which role patterns are risky, and how to find, restrict and monitor them. It is written for platform and security engineers who already know Roles, ClusterRoles and bindings. For the basics, see the Kubernetes RBAC Guide.
Key takeaways
- The escalation check lives in the RBAC API itself. Kubernetes refuses to let you create or update a Role or binding that grants more than you hold, and the documentation notes this applies even when the RBAC authoriser is not in use.
escalateremoves the check on roles. A subject withescalateonrolesorclusterrolescan write any permission into a role it can edit, including permissions it does not have.bindremoves the check on bindings. A subject withbindon a role can bind that role to anyone, itself included, without holding the role's permissions.- Wildcards grant these verbs silently.
verbs: ["*"]onrbac.authorization.k8s.ioresources includesescalateandbind, so wildcard roles are where most unintended grants hide. - Restrict with
resourceNames, admission policy and audit. Scopebindto named roles, block new grants of these verbs at admission, and alert on every RBAC write that uses them.
RBAC escalation prevention
The RBAC API applies two rules to every write on RBAC objects. They are separate from the normal authorisation check, which only asks whether you may create or update a Role or binding at all.
- Role create or update: allowed only if you already hold every permission in the role at the same scope (cluster-wide for a ClusterRole, the namespace or cluster-wide for a Role), or you hold the
escalateverb onrolesorclusterrolesin therbac.authorization.k8s.ioAPI group. - RoleBinding or ClusterRoleBinding create or update: allowed only if you already hold every permission in the referenced role at the scope of the binding, or you hold the
bindverb on that referenced role. - Bootstrapping: the first roles in a cluster have to be created by someone who can grant what they do not yet hold. Kubernetes handles this with the
system:mastersgroup, which is bound tocluster-adminby the default bindings. The good practices page warns that members ofsystem:mastersbypass all RBAC checks, that removing bindings cannot revoke this, and that their requests are never sent to an authorisation webhook.
The practical effect is that a namespace owner with the default admin role, which allows creating Roles and RoleBindings inside the namespace, can delegate only the access they already have. That safety property disappears the moment escalate or bind is added.
| Request | Normal check | Escalation check | Verb that overrides it |
|---|---|---|---|
| Create or update a Role | create or update on roles | Requester holds all rules in the Role, in that namespace or cluster-wide | escalate on roles |
| Create or update a ClusterRole | create or update on clusterroles | Requester holds all rules cluster-wide | escalate on clusterroles |
| Create or update a RoleBinding | create or update on rolebindings | Requester holds the referenced Role or ClusterRole's rules in that namespace | bind on the referenced role |
| Create or update a ClusterRoleBinding | create or update on clusterrolebindings | Requester holds the referenced ClusterRole's rules cluster-wide | bind on the referenced ClusterRole |
| Act as another identity | Not part of the escalation check | None: the request is then authorised as the impersonated identity | impersonate on users, groups, service accounts, UIDs or user extras |
The escalate verb
The Kubernetes RBAC good practices page describes escalate as the exception to the rule that users cannot create ClusterRoles with more rights than they possess, and says users with this right can effectively escalate their privileges. Combined with update or patch on a role that is already bound to the subject, it amounts to self-service administrator access.
Legitimate uses are narrow:
- Cluster lifecycle and GitOps controllers that reconcile the full RBAC set of a cluster and therefore need to write roles broader than their own permissions. These are usually already cluster-admin, which makes
escalateredundant for them. - Operators that generate roles for the workloads they manage. Here, prefer giving the operator the exact permissions it writes into those roles, so the normal check passes, rather than
escalate.
Aggregated ClusterRoles deserve a specific look. A ClusterRole labelled rbac.authorization.k8s.io/aggregate-to-admin: "true" or aggregate-to-edit: "true" has its rules added to the default admin or edit role by the control plane. Anyone who can create or edit such a ClusterRole (with matching permissions or escalate) changes what every holder of admin or edit can do across the cluster. Review aggregation labels as part of any escalate review.
The bind verb
The good practices page says bind lets users bypass the built-in protections against privilege escalation by creating bindings to roles with rights they do not already have. Unlike escalate, bind has a well-designed delegation use: letting a team lead or a self-service portal hand out a fixed set of approved roles.
The official RBAC documentation shows the safe pattern: a ClusterRole that allows create on rolebindings and bind on clusterroles with resourceNames: ["admin","edit","view"], granted through a RoleBinding in one namespace. The holder can then grant only those three roles, only in that namespace. The documentation also notes that omitting resourceNames allows binding any ClusterRole, and the general rule is that an empty resourceNames list means everything is allowed.
| Role pattern | Effective reach | Risk | Safer form |
|---|---|---|---|
bind on clusterroles, no resourceNames, plus create on clusterrolebindings | Can bind cluster-admin to any subject cluster-wide | Critical | Remove; route cluster-wide grants through change control |
bind on clusterroles, no resourceNames, plus create on rolebindings in one namespace | Can bind cluster-admin inside that namespace, giving full control of it and the namespace object | High | Add resourceNames limited to approved roles |
escalate plus update on clusterroles | Can rewrite any ClusterRole, including one already bound to itself | Critical | Remove; grant explicit permissions to the controller instead |
verbs: ["*"] on rbac.authorization.k8s.io resources | Includes escalate and bind, and any future verb | Critical | List the verbs needed: usually get, list, watch, create, update, delete |
resources: ["*"], verbs: ["*"] in a namespaced Role | Includes namespaced RBAC escalation and every resource type added later | High | Enumerate resources; bind edit or a custom role |
bind on clusterroles with resourceNames: ["view","edit"], RoleBinding only | Can grant only those roles, only in the namespace | Low, by design | Keep; review the name list when roles change |
Remember that edit is not harmless to delegate. The RBAC documentation states that it cannot view or modify roles or role bindings, but allows reading Secrets and running Pods as any ServiceAccount in the namespace, so it can reach the API access of any ServiceAccount there. Delegated binding of edit should be paired with tight ServiceAccount permissions in the same namespace. See the Kubernetes Service Account Token Guide.
Impersonate and related verbs
impersonate does not bypass the escalation check, it makes it irrelevant: the request is authorised as the impersonated identity. Impersonation uses the Impersonate-User, Impersonate-Group, Impersonate-Uid and Impersonate-Extra- headers, and the impersonator needs impersonate on users, groups or serviceaccounts (core group), or on uids and userextras/<name> in authentication.k8s.io. The documentation shows how resourceNames limits who can be impersonated, for example a single user or the groups developers and admins. It also warns that granting impersonation over ServiceAccounts is namespace scoped, but the impersonated ServiceAccount could act outside the namespace.
Classic impersonation is all or nothing: once you may impersonate a user, you can do anything that user can do. The ConstrainedImpersonation feature adds verbs such as impersonate:user-info, impersonate:serviceaccount and impersonate-on:<mode>:<verb>, so an impersonator can be limited to, for example, list and watch on Pods. The feature gate was alpha (off by default) in Kubernetes 1.35 and beta (on by default) from 1.36, according to the feature gate reference checked in November 2026. Confirm the state on your version before relying on it.
The good practices page lists other permissions that reach the same result by a different route. Review them alongside the three verbs:
| Permission | Why it is escalation-equivalent | CIS Kubernetes Benchmark |
|---|---|---|
escalate, bind, impersonate | Bypass or sidestep the RBAC escalation check | 5.1.8 Limit use of the Bind, Impersonate and Escalate permissions |
create on serviceaccounts/token | Issues tokens for existing service accounts | Review under 5.1 |
create CSRs plus update on certificatesigningrequests/approval for the kubernetes.io/kube-apiserver-client signer | Mints client certificates with arbitrary names, including system component names | Review under 5.1 |
Write on validatingwebhookconfigurations or mutatingwebhookconfigurations | Webhooks can read, and mutating webhooks can change, any admitted object | Review under 5.1 |
get on nodes/proxy | Kubelet API access, including exec into pods, bypassing audit and admission | 5.1.10 Minimize access to the proxy sub-resource of nodes |
create on persistentvolumes | hostPath volumes expose the node filesystem | 5.1.9 Minimize access to create persistent volumes |
patch on namespaces | Can relabel a namespace to a weaker Pod Security level or a more open network policy | Review under 5.1 |
Benchmark item numbers are from the CIS Kubernetes Benchmark as implemented in the open source kube-bench project (cis-1.10 profile); all three are marked Manual. Check the numbering against the benchmark version you assess against.
Auditing and restricting
Find who holds the verbs
- Inventory roles: export all Roles and ClusterRoles and flag any rule where the API group is
rbac.authorization.k8s.ioor*and the verbs includeescalate,bindor*; and any rule withimpersonateor*onusers,groups,serviceaccounts,uidsoruserextras. Note whetherresourceNamesis set. - Resolve subjects: join flagged roles to every RoleBinding and ClusterRoleBinding that references them, then expand groups through your identity provider. A group binding in RBAC is only as narrow as the group's membership.
- Spot-check individuals:
kubectl auth can-i bind clusterroles --as=<subject>,kubectl auth can-i escalate clusterroles --as=<subject>andkubectl auth can-i --list --as=<subject>show the effective answer, including aggregation. Running--asitself needsimpersonate, so do it from an administrator context. - Check aggregation labels: list ClusterRoles carrying
aggregate-to-admin,aggregate-to-editoraggregate-to-viewand confirm each is expected. - Exclude defaults with care: do not edit the built-in
system:roles, which the API server reconciles on restart, but do record which subjects hold them.
To check whether cluster-admin grants have already crept in, see How to audit Kubernetes cluster admin bindings.
Audit log queries
Kubernetes audit events record verb, user, impersonatedUser, objectRef, responseStatus and, at the Request or RequestResponse level, requestObject. Log RBAC resources at RequestResponse so the rules written are captured. Useful detections:
- RBAC object writes:
objectRef.apiGroup = rbac.authorization.k8s.ioandverbin create, update, patch, whererequestObjectcontainsescalate,bind,impersonateor a*verb. Alert on every one outside a change window. - New cluster-admin bindings: create on
clusterrolebindingsorrolebindingswithroleRef.name = cluster-admin. - Self-grant: a binding create where a subject in
requestObjectmatchesuser.usernameor one of its groups. - Impersonation: any event with
impersonatedUserset, grouped by impersonator, with alerts on impersonation ofsystem:identities or of groups bound tocluster-admin. - Denied attempts: RBAC writes with
responseStatus.code = 403, which often indicate probing for the escalation check. The audit annotationsauthorization.k8s.io/decisionandauthorization.k8s.io/reasonhelp explain them.
Policy design and the managed service specifics are covered in the Kubernetes Audit Log Detection Guide.
Policy controls
- Admission policy: a ValidatingAdmissionPolicy (stable since Kubernetes 1.30) or a policy engine can reject Roles and ClusterRoles that contain
escalate,bindwithoutresourceNames,impersonateor wildcard verbs on RBAC resources, with an exception list of named controllers. Policies created through the API cannot intercept ValidatingAdmissionPolicy objects themselves, so protect those with RBAC too. See the Kubernetes Admission Control Guide. - GitOps as the only writer: make the reconciler the sole holder of cluster-wide RBAC write, require review on RBAC manifests, and use
kubectl auth reconcile --dry-run=clientin pipelines to preview changes. - No humans in
system:masters: keep the break-glass certificate offline, and give administrators low-privilege accounts plus scoped impersonation, as the good practices page suggests. - Namespace isolation for delegated admins: delegate with RoleBindings, never ClusterRoleBindings, and keep
bindscoped byresourceNames.
Rollout
- Inventory: run the role and subject analysis above and agree an owner for every flagged grant.
- Turn on audit: log RBAC resources at
RequestResponseand deploy the detections in alert-only mode for two weeks to learn normal controller behaviour. - Admission in warn or audit mode: deploy the admission policy with a non-blocking action (ValidatingAdmissionPolicyBinding supports
WarnandAudit) and fix the hits. - Remediate: replace wildcard RBAC verbs, add
resourceNamestobind, removeescalatefrom controllers that can be given explicit permissions. - Enforce: switch the binding to
Denyin a non-production cluster, then production. - Rollback: keep the previous role manifests in Git; if a controller breaks, restore its role from Git and add it to the policy exception list with an expiry date, rather than removing the policy.
Metrics
- Subjects holding unscoped
bind,escalateorimpersonate, trending to an agreed small set of named controllers. - Roles with wildcard verbs on RBAC resources (target: zero outside
cluster-admin). - Human members of
system:masters(target: zero). - RBAC writes outside the GitOps identity per month, each with a ticket.
- Time from an RBAC escalation alert to triage.
Framework mapping
| Framework | Reference | How it applies |
|---|---|---|
| MITRE ATT&CK | T1098.006 Additional Container Cluster Roles | Adversary adds roles or bindings to keep or raise cluster access |
| MITRE ATT&CK | T1552.007 Container API | Escalated access used to read secrets and tokens through the API |
| NIST SP 800-53 Rev. 5 | AC-6 Least Privilege, AC-6(7) Review of User Privileges, AC-6(9) Log Use of Privileged Functions | Scope the verbs, review holders, log their use |
| NIST CSF 2.0 | PR.AA-05, DE.CM-03 | Permissions defined, enforced and reviewed; activity monitored |
| CIS Controls v8.1 | 5.4 Restrict Administrator Privileges to Dedicated Administrator Accounts; 6.8 Define and Maintain Role-Based Access Control | No standing escalation rights on everyday accounts |
| ISO/IEC 27001:2022 Annex A | 5.15 Access control, 8.2 Privileged access rights, 8.15 Logging | Escalation verbs are privileged access rights |
| CIS Kubernetes Benchmark | 5.1.8, 5.1.9, 5.1.10 | Manual checks on these verbs, PV creation and nodes/proxy |
Common failure patterns
- Wildcard "platform" roles: a ClusterRole with
apiGroups: ["*"]andverbs: ["*"]for a deployment tool, which quietly includesescalate,bindandimpersonate. - Self-service without
resourceNames: a portal service account with unscopedbind, so anyone who can drive the portal, or steal its token, can bindcluster-admin. - Treating
editas low risk: delegatededitin a namespace where a powerful ServiceAccount lives gives that ServiceAccount's access to anyone who can run a Pod. - Unreviewed aggregation: a CRD install adds a ClusterRole with
aggregate-to-adminthat expands every namespace admin's rights. - Break-glass in daily use: administrators working from
system:masterscertificates, which no binding removal can revoke. - No RBAC audit trail: audit policy logs RBAC objects at
Metadataor not at all, so investigators can see that a role changed but not which rules were added.
Practitioner checklist
- List every subject that holds
escalate,bindorimpersonate, directly or through wildcards or groups. - Remove wildcard verbs from any rule covering
rbac.authorization.k8s.io. - Scope every remaining
bindgrant withresourceNamesand deliver it through a RoleBinding. - Replace controller
escalategrants with the explicit permissions the controller writes. - Restrict impersonation with
resourceNames, and evaluate constrained impersonation on supported versions. - Keep human accounts out of
system:mastersand store the break-glass credential offline. - Log RBAC writes at
RequestResponseand alert on escalation verbs, newcluster-adminbindings and impersonation. - Enforce an admission policy against new grants, rolled out from warn to deny.
- Review aggregation labels and escalation-equivalent permissions each quarter.
Standards and references
- Kubernetes: Using RBAC Authorization
- Kubernetes: Role Based Access Control Good Practices
- Kubernetes: User Impersonation
- Kubernetes: Validating Admission Policy
- Kubernetes: Auditing
- MITRE ATT&CK: T1098.006 Additional Container Cluster Roles
- kube-bench: CIS Kubernetes Benchmark policy checks (cis-1.10)
Related NHI Mgmt Group resources: Kubernetes RBAC Guide · Kubernetes NHI Security Guide · Kubernetes Pod Security Standards and Pod Security Admission Guide · Kubernetes Cluster Compromise Playbook