Principal Mapper (PMapper), from NCC Group, is a script and library for finding risks in AWS IAM configuration. It models an account's or organization's IAM users and roles as a directed graph, checks for privilege escalation and alternate paths to other principals, and answers questions such as "who can do iam:CreateUser?" with a local simulation of AWS's authorization logic. It's open source under AGPL-3.0.
AccessLens shares the core idea, treating IAM as a graph and looking for paths to power, and packages it with a wider set of checks in a desktop app.
The short version
Choose PMapper if you want a scriptable command-line tool and Python library for IAM graph analysis, open-source code you can extend, and queries you can run from scripts.
Choose AccessLens if you want the trust graph and "who can do X?" queries alongside 251 rules across identity hygiene, policies, trust, resource policies and service posture, with service control policies taken into account, finding triage across scans, CloudTrail alerts and reports, in a desktop app that signs in with IAM Identity Center.
Side by side
| Feature | AccessLens | PMapper |
|---|---|---|
| Form | Desktop app (macOS, Windows, Linux) | Python CLI and library |
| Licence | Free for personal use; work licences coming | Open source, AGPL-3.0 |
| Graph | Accounts, users, roles, external accounts, AWS services, federated providers and *, with can-assume, trusted-by and passes-role edges | Directed graph of IAM users and roles |
| Questions it answers | "Who can do X on this resource?", directly or through role chains, with the path; every path between two principals (up to 8 hops); everything a principal can reach; risky paths from external entry points to admin | "Who can do X?" queries against a local simulation of AWS authorization, and privilege-escalation checks |
| Authorization model | Identity policies, permissions boundaries, explicit denies, service control policies along each account's OU path, and the resource's own policy where collected. Conditions on the principal, its organization, iam:PassedToService and the requested region are evaluated; other conditions mark the answer "depends on conditions" | A local simulation of AWS's authorization behavior |
| Visual output | Interactive graph; SVG, PNG and JSON export | visualize writes SVG or PNG images |
| Beyond the graph | 251 rules, finding lifecycle, CloudTrail alerts, scheduled scans, reports | Focused on IAM graph analysis |
| Latest release | 0.1.0 (first release not yet published) | 1.1.5, released January 13, 2022 |
PMapper details are from its README and PyPI; see Sources.
Where PMapper is ahead
- Scripting. PMapper's queries run from the command line and from your own Python code, so you can build analysis on top of it. AccessLens's "who can" query is in the app, and it has no command line yet.
- A library. You can build your own analysis on top of PMapper in Python.
- Open source under AGPL-3.0.
Where AccessLens helps
- One place for the whole picture: the graph and "who can" queries sit next to findings for MFA, keys, wildcard grants, 27 escalation methods, resource policies and service posture.
- Fewer false paths: a path to admin that a service control policy blocks isn't reported, and one that hinges on MFA or a source IP is marked "depends on conditions" instead of counted as certain.
- Across accounts, every day: scheduled scans, findings that keep their status across scans, and CloudTrail alerts for changed trust policies and new keys.
- A graph you can click through, with the risky paths highlighted for you. See the trust graph docs.
Sources
- PMapper: README on GitHub
- PMapper: PyPI release data
- AccessLens: Trust graph and Rule catalogue