Check ID:
Provider: Kubernetes
Service:
Severity: HIGH
Categories:
Resource type:
rbac_minimize_wildcard_use_rolesProvider: Kubernetes
Service:
rbacSeverity: HIGH
Categories:
identity-access, cluster-securityResource type:
ClusterRoleWhat this check verifies
Kubernetes RBAC Roles/ClusterRoles are evaluated for wildcard use in ruleresources or verbs. The presence of * means all resources or all actions are granted. This finding highlights roles whose rules include such wildcards.
Risk
Using* broadens access beyond intent:
- Confidentiality: unrestricted reads of sensitive data
- Integrity/Availability: create/update/delete across resources
- Privilege escalation and lateral movement
- Future drift: new APIs/verbs inherit access automatically
Recommendation
Apply least privilege: replace* with explicit resources, verbs, and resourceNames. Split read/write duties, scope Roles to namespaces, use ClusterRoles only when needed, and bind to specific subjects. Periodically review roles to prevent privilege creep as part of defense in depth.
Remediation
- CLI
- Terraform
- Dashboard steps
References
- https://kubernetes.io/docs/reference/access-authn-authz/rbac/
- https://kubernetes.io/docs/reference/access-authn-authz/rbac/#referring-to-resources
Where this check fires
This check runs on every scheduled scan against your Kubernetes account. Findings appear at Cloud Security → Findings filterable byCheck ID = rbac_minimize_wildcard_use_roles. To re-evaluate after a fix, hit Run now on the account’s schedule under Cloud Security → Schedules — the next scan re-checks this control and marks the finding fixed or keeps it persistent.
← Back to Kubernetes checks