Lesson 2 of 13 · 11m
The Verbs That Escalate
escalate, bind, and impersonate sidestep the permission-holding rule, and pods/exec is a shell grant — the meta-verbs to audit first.
The permission-checking is recursive
Give someone create on clusterroles and you gave them everything, unless the API server stops them. It does — Kubernetes has privilege-escalation prevention built into RBAC itself, and understanding it is the difference between reading a role grant and predicting it.
The rules, from pkg/registry/rbac/escalation_check.go and friends:
- Creating or updating a Role/ClusterRole requires that you already hold every permission the role grants — or that you have the
escalateverb onroles/clusterroles. - Creating a RoleBinding/ClusterRoleBinding requires
bindon the referenced role, or already holding the role's permissions. kubectl --asrequiresimpersonateonusers,groups, orserviceaccounts, optionally narrowed byresourceNames.
escalate, bind, and impersonate are the meta-verbs. They are never in anyone's mental model and they are how a modest grant becomes cluster-admin. An operator who can bind the cluster-admin ClusterRole can hand it to a throwaway service account in one request. Audit for these three verbs explicitly; they should exist only on admin accounts.
Verbs that are shells and credential mints
Some resources are not what they look like:
pods/execandpods/portforwardare interactive shells inside running containers. Grant them and you granted a terminal, not a monitoring hook.pods/ephemeralcontainerspowerskubectl debug— it injects a fresh container into a running pod, sharing its network and process namespaces. Same risk class as exec.serviceaccounts/tokencalls the TokenRequest API — it mints credentials for a service account on demand.kubectl create token ci-botworks precisely because of this verb.certificatesigningrequests/approvalapproves CSRs — signing new client certificates, including ones namingsystem:masters.secretsget/list/watchread every secret in scope. There is no "one secret only" list grant —resourceNamesnarrowsget/update/deletebut is ignored bylistandwatch.nodes/proxytunnels requests through the API server to the kubelet.- Wildcards (
verbs: ["*"],apiGroups: ["*"],resources: ["*"]) are the definition ofcluster-admin. Any custom role containing a wildcard deserves the same scrutiny as cluster-admin itself.
Two quieter escalation paths worth naming: aggregated ClusterRoles and subject impersonation by group. The default admin, edit, and view roles carry an aggregationRule that merges in any ClusterRole labeled to match — an addon can silently expand admin's power. And impersonation can target groups: impersonate on groups with resourceNames: ["system:masters"] is an instant cluster-admin jump, not a typo to wave through.
When the check itself broke
CVE-2018-1002105, disclosed December 2018, CVSS 9.8, was the first critical Kubernetes CVE. A specially crafted request to an aggregated API server — the extension path used by metrics-server and friends — let a caller reuse the API server's own TLS connection to the backend and send arbitrary requests authenticated as the API server. On default RBAC this turned a low-privilege user — and in some configurations an unauthenticated one — into effective cluster-admin. Fixed in 1.10.11, 1.11.5, and 1.12.3. The lesson that survives the patch: privilege boundaries live in code paths, and the aggregated-API path had its own.
What to actually do
kubectl get clusterroles -o json | \
jq -r '.items[] | select(.rules[]? | (.verbs | index("escalate","bind","impersonate")) != null or index("*")) | .metadata.name'Treat that output as sensitive. Audit it, and audit pods/exec-style grants with the same rigor as secrets — a shell in a production pod is a credential-harvesting position, because the pod's service account token and its environment are sitting right there in memory.
The plugin that inverts the audit question is kubectl-who-can (from Aqua Security): kubectl who-can create clusterrolebindings or kubectl who-can get secrets -A answers "who can do this" instead of "what can X do" — exactly the direction you need when hunting the forgotten binding that grants escalate, bind, or impersonate to a service account nobody remembers creating.
Was this lesson helpful?
Keep reading
Related articles from the SudoSecurity blog.
A 257-Byte Password Is the Key: Inside the OpenSSH musl Bypass
CVE-2026-123158 lets an attacker log into a locked account on musl-based systems like Alpine by sending a password nobody set. The trigger is one number, 257, and the reason is a C library returning a single asterisk. I reproduced the exact boundary against musl 1.2.4 and read the fix.
Immich Had Fourteen Advisories and One Bug It Fixed Three Times
Immich's 2026 security record runs to fourteen advisories, and they cluster hard: the sharing features, the OAuth plumbing, and one login redirect parameter that took three separate fixes across eighty-three days. Plus the 3.0 migration traps still waiting for anyone who hasn't jumped yet.
Jellyfin's Threat Model Is Your Brother-in-Law
Four Jellyfin CVEs landed in 2026 and not one of them needs an admin account. One needs only the ability to name a file. Meanwhile Jellyfin 12 shipped in September, the version numbers stopped starting with 10, and every "am I patched" check you wrote is now wrong.
Node.js Fixed 16 Flaws in One Release. Most of Them Live in HTTP/2 and TLS.
The November 11 Node.js security releases fix 16 CVEs across the 26, 24 and 22 lines, seven of them rated high. Nearly all sit in HTTP/2 and TLS, where a remote client can crash a server, leak memory, or get past per-host client-certificate checks.