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.

Lesson 13 of 29 · 11 min read · practice only with authorization

Diagram

Right-sizing a role

Follow the path. One example at a time.

Step 1 of 4

Policy

The role grants everything in a service.

Illustration: Policy
{"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.

  1. 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.
  2. 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.
  3. 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.

1 / 3

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.

  1. MapCloud security fundamentals: shared responsibility, identity, and the audit trailWhat the provider secures and what you do, why identity is the cloud perimeter, and the first read-only commands to understand an AWS, Azure, or Google Cloud account you are responsible for.

Practice

  1. LabTenant deskTwo companies, one API. See what changes when the server checks ownership.

Glossary

  1. CardOver-privileged cloud identityA workload or person can create, read, or destroy far more than the job requires, so one stolen token is a wide incident.