Best tools to find AWS IAM privilege escalation paths
Summary
- AWS IAM privilege escalation happens when a principal uses the permissions it already holds to gain more, usually by chaining two or three grants that each look ordinary on their own.
- Native AWS tools,
IAM Access AnalyzerandIAM Access Advisor, find unused and over-granted permissions, which is a good first cut. - Open source tools go further on IAM specifically: PMapper models the account as a graph, Cloudsplaining scans policies for actions without resource constraints, and pathbreak-audit lists the principals holding abusable permissions and toxic combinations with a fix for each.
- A scanner tells you a permission could be abused. Pathbreak validates which chains reach administrator or data against the real authorization and ranks the single change that breaks the most.
IAM is where most AWS compromises end up. An attacker who lands a single set of credentials rarely stops there; they look for the permission, or the combination of permissions, that lets them become something more powerful. That is privilege escalation, and in AWS it usually runs through the control plane: creating or editing an IAM policy, passing a privileged role to a service you control, assuming a role that trusts you, or rewriting a trust policy so it does. Each grant can read as reasonable in a policy review. The risk is in the chain.
This guide walks through the tools teams use to find those chains, from the ones AWS ships to the open source projects built for IAM, and where validated attack-path analysis sits alongside them. All of them are worth knowing, and most teams use more than one.
What AWS gives you natively
You can start without buying anything. Two IAM features cover part of the job:
IAM Access Analyzerunused access. It uses last-accessed data to flag permissions that active roles and users have not exercised, and it can generate a refined policy that keeps only what was used. Run it continuously and alert on new findings. It does not run in the AWS GovCloud and China regions, and it measures over a window you set, so a permission shows as unused only after it has gone untouched for that full period.IAM Access Advisor. It shows which services and actions an identity has used, which reveals the gap between what a role is granted and what it needs.
These two are a solid way to cut over-permission. They report on what an identity has or has not used; they do not tell you which of the permissions that remain can be chained into a path that reaches administrator.
Open source IAM tools
Several free, open source projects focus on IAM specifically.
- PMapper (NCC Group). Principal Mapper models the IAM users and roles in an account, and across an AWS Organization, as a directed graph, then runs built-in checks for privilege escalation and for alternate paths a principal could take to reach an action or resource. It is a Python tool and library, installed with
pip install principalmapper. - Cloudsplaining (Salesforce). It scans the IAM policies in an account for actions that lack resource constraints, the kind that can enable escalation or data access, and produces a risk-prioritized HTML report with a triage worksheet and a JSON file. You feed it the account authorization details and run
cloudsplaining scan. - pathfinding.cloud (Datadog). Not a scanner but a community-maintained reference library of documented AWS IAM privilege escalation paths, with the permissions each one needs and how it works. It is the catalog you check a finding against.
- pathbreak-audit (Pathbreak). A read-only CLI that reads the policies attached to each role and user, managed, inline and group, then lists the principals holding abusable permissions and toxic combinations, with the least-privilege change for each and a link to a reference write-up. It makes only read calls to IAM and STS and sends nothing anywhere. Install it with
pip install pathbreak-audit, or runpathbreak-audit --demoagainst a bundled example account first.
From a list of permissions to a validated path
The tools above share a boundary: they analyze the grants as written. That is the right job, and it finds real risk. What static analysis cannot settle on its own is whether a given chain resolves once every policy that applies has its say. iam:PassRole on its own reads as ordinary. Put it next to lambda:CreateFunction and a role that trusts lambda.amazonaws.com, and a principal can create a function, pass the privileged role to it, and run code as that role.
Pathbreak reads your AWS configuration with a read-only role, builds a graph of principals, roles, trust edges and resources, then an agent chains control-plane moves into candidate attack paths. It validates each path end to end against the authorization that applies, including identity and resource policies, permission boundaries, service control policies and trust policies, so the list is the paths that resolve rather than every path that might. Paths are ranked by how many of them each fix breaks, and each one comes with the single change that removes the most risk and the command to apply it. A rescan confirms the path is gone. Nothing is executed in your account. It is built to work alongside the scanners above, not to replace them.
How the tools compare
| Tool | Type | Built for | Access |
|---|---|---|---|
IAM Access Analyzer | Native AWS | Finding unused permissions and external access, generating refined policies | Free, in the AWS console |
IAM Access Advisor | Native AWS | Showing which services and actions an identity has used | Free, in the AWS console |
| PMapper | Open source | Graph analysis of IAM with privilege escalation checks across an account or Organization | Free, MIT |
| Cloudsplaining | Open source | Scanning IAM policies for actions without resource constraints, HTML report | Free, open source |
| pathfinding.cloud | Reference library | A documented catalog of AWS IAM privilege escalation paths | Free, open source |
| pathbreak-audit | Open source CLI | Listing principals that hold abusable permissions and toxic combinations, with a fix for each | Free, MIT |
| Pathbreak | Platform | Validating which chains reach admin or data, ranked by blast radius, with the break | Free trial, then subscription |
Where to start
- Turn on
IAM Access Analyzerunused access and alert on new findings. This clears the permissions nobody uses. - Run an open source scanner on your highest-privilege roles. pathbreak-audit (
pip install pathbreak-audit) lists the principals holding abusable permissions and toxic combinations with the fix for each; PMapper and Cloudsplaining add graph and policy views. - Validate the paths with Pathbreak on one account to see which chains reach admin or data, ranked by blast radius, with the one change that breaks the most.
For a reference of the specific permissions attackers chain and the change that breaks each one, see the AWS privilege escalation map.
Frequently asked questions
What is AWS IAM privilege escalation?
AWS IAM privilege escalation is when a principal uses the permissions it already holds to gain more than it was meant to, for example by creating or editing an IAM policy, passing a privileged role to a service it controls, or assuming a more powerful role. The permissions each look reasonable on their own; the risk is in the chain. Pathbreak validates which of these chains reach administrator or data in your account.
What is the best free tool to check for IAM privilege escalation?
pathbreak-audit is a free, read-only CLI that lists the principals in an AWS account holding abusable permissions and toxic combinations, with the least-privilege fix for each. PMapper and Cloudsplaining are other free options: PMapper models IAM as a graph and includes privilege escalation checks, and Cloudsplaining scans IAM policies for actions without resource constraints. Many teams run more than one.
Does AWS have a built-in tool for privilege escalation?
AWS does not ship a dedicated privilege escalation finder, but IAM Access Analyzer unused access and IAM Access Advisor cover part of the ground by finding permissions an identity has not used. They help you cut over-permission. Pathbreak complements them by validating which of the permissions that remain chain into a path that reaches administrator or data.
What is the difference between PMapper and Cloudsplaining?
PMapper models the IAM users and roles in an account as a directed graph and includes built-in checks for privilege escalation and alternate access paths. Cloudsplaining scans the IAM policies in an account for actions that lack resource constraints and produces a risk-prioritized HTML report. The two take different approaches, and many teams run both. Pathbreak adds validated reachability on top, confirming which chains resolve against the real authorization.
How is Pathbreak different from an IAM scanner?
A scanner lists the permissions and combinations that could allow escalation. Pathbreak validates which of those chains reach administrator or data against the authorization AWS applies, including identity and resource policies, permission boundaries, SCPs and trust policies, then ranks the fixes by how many paths each one breaks and gives the command to apply. It runs read-only and executes nothing.
See which IAM privilege escalation paths in your AWS accounts reach admin or data, and the one change that closes each path.
Request a demo Watch the demo