Skip to main content

ClusterRoleBinding to system:authenticated: Cluster-Admin for Free

Critical severityKubernetes About 20 minutes to fixGenerated 12 Jul 2026

Overview

A ClusterRoleBinding scoped to the system:authenticated group hands its permissions to every service account token in the cluster, not just human users. Node compromise, RBAC audits, and NetworkPolicy all fail to catch it because the binding looks like ordinary discovery access until a permissive ClusterRole gets attached underneath it.

At a glance

Symptom
Any pod's mounted ServiceAccount token is used against the API server after compromise, inheriting group-wide permissions with no further authorisation check.
Likely cause
A ClusterRoleBinding grants a permissive ClusterRole to the system:authenticated group instead of named subjects.
Impact
Any authenticated principal, including default ServiceAccount tokens in low-privilege pods, gains cluster-admin-like access across all namespaces.
Verification signal
Re-run the detection test and a controlled negative-path test.
Safe correction
Audit all bindings for system:authenticated or system:unauthenticated subjects and enforce an admission policy rejecting non-default roles bound to those groups.
Rollback or recovery
Restore the exported configuration if the new control blocks required production traffic, then narrow the policy before redeployment.

The Trap

A ClusterRoleBinding (or RoleBinding) whose subject is the built-in group system:authenticated, paired with a ClusterRole that carries write, exec, or secrets-read verbs. Because every principal that presents a valid credential to the API server — including default ServiceAccount tokens mounted into pods, kubelet client certs, and OIDC users — is automatically placed in system:authenticated, binding real permissions to that group grants them cluster-wide to anything that can talk to the API, with zero further authorisation checks.

The Default State

Kubernetes ships three sanctioned bindings to this group: system:discovery, system:basic-user, and system:public-info-viewer, all deliberately read-only and metadata-only. The trap appears when teams migrating off ABAC, or debugging a broken RoleBinding, run something like kubectl create clusterrolebinding quick-fix --clusterrole=edit --group=system:authenticated to unblock a CI pipeline, intending it as temporary. It is never removed. Some older Helm charts for cluster add-ons also shipped ClusterRoleBindings scoped this way to avoid maintaining per-namespace ServiceAccount lists, which is functionally identical to disabling RBAC for that ClusterRole’s verbs.

The Blast Radius

Every pod’s default ServiceAccount token — mounted automatically unless automountServiceAccountToken: false is set — now authenticates as a member of system:authenticated. A single RCE in any low-privilege workload lets the attacker use that in-pod token to list secrets, patch deployments, or exec into pods across every namespace, because the binding does not distinguish between a human OIDC login and a ServiceAccount from a public-facing web frontend. RBAC audit tooling that lists bindings per ServiceAccount subject often misses this because the grant is inherited via group membership, not a direct subject binding. A kubectl auth can-i --list --as=system:serviceaccount:<namespace>:<name> check does reveal it, because impersonating a ServiceAccount adds its groups and system:authenticated.

The Lead Mechanic Fix

Run kubectl get clusterrolebindings,rolebindings -A -o json | jq '.items[] | select(.subjects[]?.name=="system:authenticated" or .subjects[]?.name=="system:unauthenticated")' and treat any result referencing a ClusterRole other than the three built-in read-only ones as an incident. Back up the binding with kubectl get clusterrolebinding <name> -o yaml, confirm which workloads rely on it, then delete it and re-grant access explicitly to named ServiceAccounts or OIDC groups with least-privilege ClusterRoles. Add an OPA Gatekeeper or Kyverno ClusterPolicy that rejects any RoleBinding or ClusterRoleBinding admission where subjects[].name equals system:authenticated unless the referenced role is explicitly allow-listed by name.

3

Apply the safer control

Before you change production

Confirm the affected scope, export the current configuration, and test the replacement control in a non-production environment first.

Fix commands and configuration

kubectl get clusterrolebindings,rolebindings -A -o json | jq '.items[] | select(.subjects[]?.name=="system:authenticated" or .subjects[]?.name=="system:unauthenticated")'
kubectl get clusterrolebinding <name> -o yaml
subjects[].name
4

Verify, roll back or escalate

Verify

Re-run the detection test and a controlled negative-path test. Confirm the unsafe behaviour is blocked while approved traffic still succeeds.

Rollback

Restore the exported configuration if the new control blocks required production traffic, then narrow the policy before redeployment.

Escalate

Escalate when the blast radius is uncertain, the control cannot be tested safely, or remediation requires an outage or security exception.

The KBY Brief

Fixed? Get the next one before it hits you: The KBY Brief

Practical fixes for the systems you run, by email about twice a week. Unsubscribe at any time.

About this page

Credited to

Dates

Published

Last updated

Corrections

No corrections are listed for this page. Some review sweeps corrected pages without naming each one; those are in the corrections log.

Was this useful?

Reports go to the site owner and are used to correct pages. Corrections are listed at /corrections.

After remediation

Further reading stays below the corrective workflow and is selected by platform, category and shared technical keywords.

ClusterRoleBinding to system:authenticated: Cluster-Admin for Free