Skip to content

The Quiet Permissions Problem: Cloud IAM Privilege Creep

The Quiet Permissions Problem: Cloud IAM Privilege Creep

Privilege creep is rarely a decision. It is the sum of a thousand small conveniences.

A service account gets `AdministratorAccess` for a one-week migration. The migration finishes. The ticket closes. Two years later, that account still has the keys to the kingdom, and nobody remembers why it exists.

It is not a sophisticated failure. It is a boring one, and that is exactly why it works so well for attackers.

Why it keeps happening

Speed beats review. A developer is blocked, someone grants broad access to unblock them, and the plan is to tighten it later. Later never gets a ticket.

Roles get cloned instead of scoped. It is faster to copy a working role than to work out the minimum permissions a new workload needs. Each copy inherits the sins of the original.

Offboarding covers people but not machines. When an employee leaves, HR triggers a process. When a project dies, nothing triggers anything. The service accounts, access keys, and automation roles it created keep running.

None of this requires negligence. It only requires a busy team and no forcing function.

Why attackers love it

Initial access to a cloud environment is often modest. A leaked key in a repository, a phished developer session, a vulnerable web app with an instance role attached. On its own, that foothold might not matter much.

Over-permissioned identities turn a small foothold into a large incident. The attacker does not need to exploit anything else. They just list what the compromised identity can do, find the permissions that let them go further, and keep walking. There is no malware to detect and no exploit signature to match. The activity looks like legitimate API calls from a legitimate identity, because that is exactly what it is.

This is the blast radius problem. The question is never only whether an identity can be compromised. It is how much damage it can do when it is.

What to hunt first

You do not need a platform purchase to find the worst offenders. Start with four categories.

Orphaned service accounts. Identities with no clear owner and no recent activity. If nobody can tell you what it does, that is your answer. Disable it, wait, and see who complains.

Stale access keys. Long-lived keys older than 90 days that are still active. Many cloud providers expose a last-used timestamp. Anything that has not been used in 90 days is a candidate for removal. Anything that has never been used is almost certainly forgotten.

Wildcard permissions. Policies with `*` in the action or resource field. Some are legitimate, but most are shortcuts. Sort them by what the identity can reach, not by how many there are.

Permissive trust policies. Roles that can be assumed by other accounts or by broad principals. These are the hinges on which cross-account compromise swings. If you cannot explain why an external account can assume a role, treat it as a finding.

Run these four queries and you will have a prioritized list by the end of the day. Expect it to be longer than you want.

Test your assume-role chains like an attacker

Looking at roles one at a time misses the real risk. The danger is in the chains.

Identity A cannot do much. But it can assume role B, which can assume role C, which has write access to your production storage. Each link looks reasonable in isolation. Together they form a path from a low-value identity to a high-value target.

Map these chains. Start from your least trusted identities, such as CI runners, developer sandboxes, and third-party integrations. Ask what each can assume, then what those roles can assume, and follow it until you run out of hops. Open source graph tools can do this well in both AWS and Azure, and the exercise is worth doing by hand at least once so your team understands what the graph is showing them.

When you find a path that ends somewhere sensitive, you have found a real attack path. Fix it by cutting the weakest link, not by adding a detection and hoping.

Make least privilege routine

One cleanup is a project. Staying clean is a process. Without a recurring mechanism, you will be back here in a year.

Review on usage data, not opinion. Reviewers asked whether a permission is still needed will say yes, because saying no feels risky. Show them what was actually used in the last 90 days instead. Cloud providers publish last-accessed data for services and actions. Let that drive the conversation. Unused permissions come off unless someone argues for them.

Use permission boundaries. Boundaries set a ceiling on what an identity can ever be granted, regardless of what policies get attached later. They are especially useful when you delegate role creation to development teams. The team gets autonomy, and the boundary keeps a mistake from becoming an escalation.

Require an owner on every identity. Enforce a tag or label that names a responsible team or person. No owner, no identity. When the owner leaves or the project ends, the tag tells you what to review. This is the cheapest control on this list and the one that pays off the longest.

Set expiry by default. Temporary access should be temporary. Time-bound role assignments and short-lived credentials remove the cleanup problem by making it automatic.

Monday morning checklist

If you have a small team and a full backlog, do these three things this week.

1. Export every identity and its last-used date. Include users, service accounts, roles, and access keys. Sort by oldest activity. Disable anything unused for 90 days, starting with anything that has admin-level access.

2. Find every wildcard admin grant. List all identities with full administrative permissions. For each one, write down who needs it and why. If you cannot, it goes on the removal list.

3. Pick your three least trusted identities and trace their assume-role paths. Document where each can end up. Fix the worst path before the end of the week.

None of this needs new tooling. It needs a few hours and a willingness to break something small on purpose to avoid breaking something large by accident.

The takeaway

Privilege creep is not a vulnerability you patch. It is drift, and drift only reverses when someone owns it. The attackers know that most environments are carrying years of accumulated access nobody has reviewed. They are counting on it.

Get the inventory. Remove what is unused. Trace the chains. Assign owners. Then put it on the calendar so it happens again next quarter.

Photo by Tyler on Unsplash

Leave a Reply