← All posts IAM

AWS IAM Access Analyzer: what each analyzer finds

Summary

  • IAM Access Analyzer is several distinct capabilities inside AWS IAM. It uses automated reasoning to answer who outside your account can reach a resource, which access is unused, and whether a policy is safe to ship.
  • The external access analyzer is free and reads resource-based policies per Region. The unused access analyzer is paid and reads last-accessed data for roles and users across Regions. An internal access analyzer and custom policy checks are also paid.
  • Policy validation and policy generation are free and help you write and tighten policies.
  • Access Analyzer reasons about one policy or one resource boundary at a time. Which in-use permissions chain across principals into a path to administrator or data is a separate question, and that is where Pathbreak validates the real paths and gives the single change that breaks the most.

AWS IAM Access Analyzer is one of the most useful free things in IAM, and one of the most misread, because people treat it as a single feature. It is really several capabilities built on automated reasoning, the same provable-security approach AWS uses to answer questions about policies with math rather than heuristics. Different parts of it answer different questions: who outside your account can reach a resource, which permissions an identity is not using, and whether a policy you are about to deploy is safe. This post walks through each one, what it costs, and the question it leaves open.

The analyzers

Access Analyzer runs as one or more analyzers in an account or across an organization. There are three kinds.

  • External access. Reads resource-based policies, such as an S3 bucket policy, a KMS key policy, an IAM role trust policy, or an SQS queue policy, and uses automated reasoning to show which resources can be reached by a principal outside your account or organization. It is free and runs per Region, so you enable it in each Region where you have resources.
  • Unused access. Reads IAM last-accessed data to flag roles that have gone idle, access keys and passwords that are unused, and permissions an active role or user has not exercised in a window you set. Because IAM roles and users are global, one analyzer per account covers every Region. This one is paid.
  • Internal access. A newer analyzer that shows which principals inside your organization can reach critical resources you nominate, such as specific S3 buckets, DynamoDB tables or RDS resources. It is paid, priced per resource monitored.

Findings from any analyzer can be routed to Amazon EventBridge for automation and aggregated in AWS Security Hub alongside your other security findings.

The policy tooling

Alongside the analyzers, Access Analyzer ships three capabilities aimed at the policies themselves.

  • Policy validation. Runs more than a hundred checks against a policy and returns security, error, warning and suggestion findings as you author it. Free.
  • Custom policy checks. Use automated reasoning to answer a specific question in CI, for example whether a proposed policy grants access the old one did not (CheckNoNewAccess), or whether a named action is ever allowed (CheckAccessNotGranted), or whether a resource policy could grant public access (CheckNoPublicAccess). Billed per API request.
  • Policy generation. Reads CloudTrail activity for a role and generates a least-privilege policy based on what the role used. Free.

What each part covers and how it is priced

CapabilityWhat it checksHow it is priced
External access analyzerResource-based policies, to show resources reachable from outside the account or organization.Free. One analyzer per Region.
Unused access analyzerLast-accessed data, to flag unused roles, keys, passwords and permissions.Paid, by IAM role or user analyzed per month. Whole accounts, and tag-identified roles and users, can be excluded.
Internal access analyzerWhich internal principals can reach the critical resources you nominate.Paid, per resource monitored.
Policy validationA single policy, against 100-plus correctness and security checks.Free.
Custom policy checksA specific question about a policy, such as whether it grants new or named access, run in CI.Paid, per API request.
Policy generationCloudTrail activity, to draft a least-privilege policy from real usage.Free.

As published figures, AWS lists the unused access analyzer at 0.20 US dollars per IAM role or user per month and custom policy checks at a fraction of a cent per request, while external access, policy validation and policy generation are free. The unused access analyzer, the internal access analyzer and custom policy checks reached the AWS GovCloud (US) Regions in 2025. Pricing is set on the IAM Access Analyzer pricing page and can change, so confirm the current rates there.

The question Access Analyzer leaves open

Each part of Access Analyzer reasons about one policy or one resource boundary at a time. That is a deliberate design choice, and it is what makes the answers provable: the external analyzer can state that a bucket policy does or does not admit an outside principal, and policy validation can state that a document does or does not grant a named action. An unused permission the analyzer flags is worth removing, and an externally shared resource it reports is worth closing.

A permission that is in use is harder to judge from a single policy. iam:PassRole on its own reads as ordinary in a review. 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. Each grant, seen alone, looks fine. The chain across them is what reaches administrator, and a chain spans more policies and principals than any single-policy check looks at.

ACCESS ANALYZERexternal: not sharedunused: flaggedpolicy: validin useover-permissionedreaches?Administrator
A principal that holds iam:PassRole and lambda:CreateFunction creates a function, hands it a privileged role, and runs as that role. Access Analyzer can prove the function's resource policy is not shared outside the account and flag either permission if it goes unused. Whether the two chain into a path to administrator is a separate question.

That separate question is what Pathbreak is built to answer. It 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.

Pathbreak is not a replacement for Access Analyzer. The two do different jobs and work well together. Access Analyzer removes the access nobody uses and proves your resource policies are not exposed outside the account. Pathbreak takes the access that remains and shows which of it chains into a path that reaches administrator or data.

How to use them together on AWS today

  1. Turn on the external access analyzer in every Region where you have resources. It is free and reports anything shared outside the account or organization.
  2. Turn on the unused access analyzer and set it to alert on new findings, then scope out the accounts and roles you do not need to watch. Pair it with IAM Access Advisor on your highest-privilege roles to prune toward what they use.
  3. Add custom policy checks to CI so a change that grants new access fails the build before it ships.
  4. Run pathbreak-audit, a free read-only CLI, to list the principals in one account that hold abusable permissions and toxic combinations, with the least privilege change for each. Install it with pip install pathbreak-audit.
  5. Validate the paths with Pathbreak on one account to see which in-use permissions reach admin or data, ranked by blast radius, with the one change that breaks the most.

For a reference of the specific AWS permissions attackers chain and the change that breaks each one, see the AWS privilege escalation map.

Frequently asked questions

Is IAM Access Analyzer free?

Parts of it are. External access analysis, policy validation and policy generation are provided at no additional charge. The unused access analyzer, the internal access analyzer and custom policy checks are paid. Pathbreak complements Access Analyzer by validating which of the permissions that remain chain into a path that reaches administrator or data.

What is the difference between the external and unused access analyzers?

The external access analyzer reads resource-based policies and uses automated reasoning to show which resources can be reached from outside your account or organization. It is free and runs per Region. The unused access analyzer reads last-accessed data to flag roles, access keys, passwords and permissions that have not been used in a window you set. It is paid and runs once per account across Regions.

Does IAM Access Analyzer detect privilege escalation?

Access Analyzer reasons about one policy or one resource boundary at a time, which is what makes its answers provable. It proves whether a resource is exposed externally and flags access that is unused. A privilege escalation path usually spans several policies and principals, so that question sits outside a single-policy check. Pathbreak validates which in-use permissions chain across principals and services into a path to administrator or data.

How much does the unused access analyzer cost?

AWS lists the unused access analyzer at 0.20 US dollars per IAM role or user analyzed each month, per the IAM Access Analyzer pricing page. Since November 2024 you can exclude whole accounts, and roles and users by tag, which reduces both noise and cost. External access analysis and policy validation stay free. Check the AWS pricing page for current figures.

How do I use IAM Access Analyzer with Pathbreak?

Use Access Analyzer to remove the access nobody uses and to prove your resource policies are not exposed externally. Then run pathbreak-audit, a free read-only CLI, to list the principals that hold abusable permissions in one account, and validate the paths with Pathbreak to see which in-use permissions reach admin or data, ranked by the single change that breaks the most.

Related posts

See which over-permissioned identities in your AWS accounts reach admin or data, and the one change that closes each path.

Request a demo Watch the demo