Over-privileged cloud identities: wildcards, admin roles, and unused rights
Cloud roles collect permissions faster than they lose them. How to find wildcard policies and unused permissions with IAM Access Analyzer and similar tools, and how to right-size without breaking workloads.
Diagram
Right-sizing a role
Step 1 of 4
Policy
The role grants everything in a service.
{"Effect":"Allow","Action":"s3:*","Resource":"*"}The example on the open step is one illustration, or the fix you can paste into an application you own.
What this page is made of
3 pieces. Each one says what fails, who is affected, what you would notice, and what you change.
Wildcards
- What fails
- Action * or Resource * grants more than anyone reviewed.
- Who is affected
- All data and services in the account.
- What you would notice
- Policies with * in Action or Resource.
- What you change
- List specific actions and resource ARNs.
Privilege escalation paths
- What fails
- Some permissions let a role grant itself more, such as iam:PassRole or iam:PutRolePolicy.
- Who is affected
- The whole account, if a low role can become admin.
- What you would notice
- Roles with IAM write actions they do not need.
- What you change
- Remove IAM write permissions from workload roles.
Unused rights
- What fails
- Permissions granted for a one-time task stay forever.
- Who is affected
- Whatever the role can still reach.
- What you would notice
- Last-accessed data showing services never used.
- What you change
- Remove unused services and review quarterly.
Seeing paths, not just policies
Graph tools show how identities chain together. PMapper for AWS, and BloodHound with AzureHound collection for Entra ID and Azure, map which principals can reach admin. The BloodHound defender lessons in the tool library cover reading those graphs.
Check yourself
Recognition and the fix. Nothing here is a procedure.
Which permission often lets a workload escalate to admin?
Sibling techniques
Pages at the same depth, plus a lab and a glossary card for this one.