pathfinding.cloud is a community library that documents AWS IAM privilege escalation paths: for each one, the permissions an attacker needs and how the escalation works. pathbreak-audit is a free, open source (MIT), read-only CLI that reads the IAM policies on every role and user in an account and lists the principals holding permissions, or combinations of permissions, that allow privilege escalation.

A fair question for any scanner that claims to find privesc: how much of the known catalog does it actually catch? So I measured pathbreak-audit against the whole pathfinding.cloud AWS catalog, path by path, and I am publishing the method and the result so you can check it.

How I measured it (reproducible)

The detection logic in pathbreak-audit is a data file of checks (pathbreak_audit/data/checks.json), each one listing the IAM actions it needs. So the test does not need a live AWS account. For each of the 91 AWS paths in pathfinding.cloud (HEAD 817e9317):

  1. Read the path's permissions.required from its YAML.
  2. Grant exactly those actions to a test principal.
  3. Run them through pathbreak-audit's own matching code (evaluate.py, v0.1.0), once in the default view and once with --include-access.
  4. Check every match by hand against the path description.

This is static grant analysis, the same thing pathbreak-audit does on a real account: it reads what a policy allows. It does not resolve conditions, permission boundaries, SCPs or resource scoping, and it does not traverse role chains. Anyone can reproduce it from the public checks.json and the public pathfinding.cloud YAML.

What the tool outputs

To show it is a real tool and not a lookup table, here is a trimmed pathbreak-audit --demo run (synthetic account, no AWS needed):

PATHBREAK AWS IAM exposure, for defenders v0.1.0 https://pathbreak.io Account: 123456789012 (example data) Scanned 7 principals. 4 hold abusable permissions (6 direct, 3 toxic combinations). ROLE iam-helpdesk arn:aws:iam::123456789012:role/iam-helpdesk * Directly abusable | Attach admin policy to user needs: iam:AttachUserPolicy grants: Can attach the AdministratorAccess managed policy to this user to break it: Remove iam:AttachUserPolicy from the principal. privilege-escalation details: https://pathbreak.io/aws-privilege-escalation-map/iam-attachuserpolicy ROLE octo-deploy arn:aws:iam::123456789012:role/octo-deploy * Toxic combination of 2 | Pass role to EC2 needs: iam:PassRole + ec2:RunInstances grants: Can launch an EC2 instance with this role and run code as it to break it: Remove iam:PassRole for this role or scope it with iam:PassedToService. privilege-escalation details: https://pathbreak.io/aws-privilege-escalation-map/ec2-run-passrole 

The result

Group Paths
Flagged in a default run 81
Flagged only with --include-access (action on Resource *) 4
Not detected 6
Total 91

A sample of the 81 flagged in a default run, with the check that fired:

pathfinding.cloud Permissions pathbreak-audit check
ec2-001 iam:PassRole + ec2:RunInstances ec2-run-passrole
lambda-001 iam:PassRole + lambda:CreateFunction + lambda:InvokeFunction lambda-passrole-create
iam-001 iam:CreatePolicyVersion iam-createpolicyversion
iam-005 iam:PutRolePolicy iam-putrolepolicy
iam-009 iam:AttachRolePolicy iam-attachrolepolicy
cloudformation-001 iam:PassRole + cloudformation:CreateStack cloudformation-passrole-create
sagemaker-002 iam:PassRole + sagemaker:CreateTrainingJob sagemaker-trainingjob-passrole
glue-003 iam:PassRole + glue:CreateJob + glue:StartJobRun glue-createjob-passrole

The full 91-row table is in the write-up linked below.

The 4 that need a flag, and the 6 misses

Four paths only surface with --include-access, and only where the action is granted on Resource *. These are session, command-execution and assume-role actions that are only dangerous depending on what they reach, so they are off by default to avoid noise:

pathfinding.cloud Permissions check
ecs-006 ecs:ExecuteCommand + ecs:DescribeTasks ecs-executecommand-hijack
ssm-001 ssm:StartSession ssm-startsession
ssm-002 ssm:SendCommand ssm-sendcommand
sts-001 sts:AssumeRole sts-assume-role

Six are not detected, for two separate reasons:

  • bedrock-003 to bedrock-007: five Bedrock AgentCore paths (runtime, harness and browser). pathbreak-audit has no checks for these AgentCore primitives yet, so the catalog is ahead of the tool here.
  • iam-012: iam:UpdateAssumeRolePolicy on its own. pathbreak-audit models this technique as two steps, so its check also requires sts:AssumeRole, and the single-action variant does not fire.

I would rather publish the misses than hide them. There is also a structural limit worth being clear about: because it reads policies as written, pathbreak-audit does not resolve condition keys, permission boundaries or SCPs, and it does not traverse role chains. That is the distance between "this policy allows X" and "this is a real path to admin," and it is why a static read is only a first pass.

Reproduce it, or just run it

pip install pathbreak-audit pathbreak-audit --demo # synthetic account, no AWS pathbreak-audit --profile default # your account, read-only 

Disclosure: I'm a co-founder of Pathbreak, which maintains pathbreak-audit.