Kubernetes RBAC Least Privilege: Catching Wildcard & Escalation Traps
Why verbs: ['*'], reading cluster Secrets, pods/exec, and cluster-admin bindings create instant cluster takeover paths.
The four highest-risk RBAC findings
Auditing RBAC manifests locally before review catches the top lateral-movement paths: (1) wildcard verbs/resources/apiGroups ('*'), (2) read access (get/list/watch) to Secrets across a namespace or cluster, (3) pods/exec permissions allowing shell access into privileged or credentialed pods, and (4) escalate, bind, or impersonate verbs that bypass RBAC privilege checks.
Disable automountServiceAccountToken by default
Most web APIs and batch workers never talk to the Kubernetes API server. Setting automountServiceAccountToken: false on both the ServiceAccount and PodSpec removes the mounted JWT token from /var/run/secrets/kubernetes.io/serviceaccount, neutering SSRF-to-K8s-API attacks.