Platform

Platform overview How it works Authorization testing Evidence & reports Private scanning Integrations

Solutions

Security agencies Product teams Regulated industries Partner programme

Learn

Blog Knowledge hub Compare

Resources

Pricing Documentation Help centre FAQ Security & data What we haven’t proved

Company

About Contact Careers Sign in to the platform Start a $199 pilot →

Home / Knowledge hub / IAM role

Knowledge hub

IAM role

A set of cloud permissions that a person or service can temporarily assume.

Illustration explaining IAM role

What it means

An IAM role is a set of permissions in a cloud account that has no password or long-term keys of its own. A person, a server or a service assumes the role when needed and receives temporary credentials. In AWS those credentials come from the Security Token Service.

Two policies define a role. The permissions policy says what the role may do. The trust policy says who may assume it. Both matter. A tight permissions policy does little good if any account on the internet is allowed to take the role.

Why it matters

Roles are how modern cloud systems grant access without scattering long-lived keys through code. Used well, they limit damage, because the credentials expire and each workload gets only what it needs. Used badly, a single role with broad permissions turns any foothold into access to everything.

An over-broad role is a common route for privilege escalation and lateral movement inside a cloud account. It is also a standard audit question: who can reach production data, and why. Without a clean answer, a sales cycle with a larger customer can stall.

How it shows up

You meet roles on servers, containers, functions, pipelines and for people signing in through a company identity provider. The repeated mistakes are wildcard permissions, one shared role for many services, trust policies that allow far too much, and roles that can create or change other roles.

Follow least privilege: one role per workload, only the actions and resources it needs, short session lengths. Review unused permissions, which cloud tools can report. Test by asking what an attacker could do if one workload were compromised, and following the role it holds.

Questions people ask

IAM role, answered

What is the difference between an IAM user and an IAM role?

A user has long-term credentials such as a password or access keys, and belongs to one identity. A role has none and is assumed temporarily by whoever is allowed. AWS recommends temporary credentials over long-term keys where possible.

What is a trust policy?

It is the policy attached to a role that states who is allowed to assume it, such as a service, an account or a federated identity. A loose trust policy lets the wrong party take the role.

Why are wildcard permissions risky?

A wildcard such as all actions on all resources grants far more than the job needs. If the role's credentials leak or the workload is compromised, an attacker inherits all of it. Name specific actions and resources.

Do roles remove the need for secrets?

They remove many long-lived cloud keys, which is a real gain. You still have other secrets, such as database passwords and third-party tokens, and the role's own temporary credentials can still be stolen while valid.

How do we review roles?

List each role, who can assume it, and what it can do. Compare granted permissions with the ones actually used, and remove the rest. Pay most attention to roles that can modify identities or reach sensitive data.

Sources

Where this comes from

Cyberlop mark

What could one stolen role reach?

A broad cloud role turns a small flaw into a large one. Where a finding exposes credentials, we show what they reached and report what we actually exploited. Ask us to run it on one of your applications.

Or start with a $199 pilot on one application: thirty days, success criteria agreed before day one, credited against the annual if you convert.