Compare

AccessLens and PMapper (Principal Mapper)

PMapper models IAM users and roles as a graph to find privilege escalation, using a local simulation of AWS authorization. How AccessLens compares.

Facts checked against the sources listed at the end.

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

FeatureAccessLensPMapper
FormDesktop app (macOS, Windows, Linux)Python CLI and library
LicenceFree for personal use; work licences comingOpen source, AGPL-3.0
GraphAccounts, users, roles, external accounts, AWS services, federated providers and *, with can-assume, trusted-by and passes-role edgesDirected 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 modelIdentity 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 outputInteractive graph; SVG, PNG and JSON exportvisualize writes SVG or PNG images
Beyond the graph251 rules, finding lifecycle, CloudTrail alerts, scheduled scans, reportsFocused on IAM graph analysis
Latest release0.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

Try it on your own accounts.

Sign in with IAM Identity Center, create one read-only role, and scan. Your findings stay on your machine.