Protego field desk
Identity and Access Management · 16% of exam

L3. IAM Access Analyzer & Permission Boundaries

Video generating

Check back soon for the video lesson on IAM Access Analyzer & Permission Boundaries

Course outlineLesson 3 of 18
AWS Security Specialty Exam Prep: course overview

Use IAM Access Analyzer to find unintended external access and unused permissions, and use permission boundaries to let developers self-serve IAM roles with a protected identity-policy ceiling and explicit review of escalation paths.

What IAM Access Analyzer Does

IAM Access Analyzer uses automated reasoning, a form of mathematical logic that can prove properties about all possible outcomes of a policy, to find resources in your account that are shared with a principal outside a trust zone you define: either your AWS account or your entire AWS Organization. It continuously evaluates resource-based policies on resource types including S3 buckets, KMS keys, IAM roles, Lambda functions, SQS queues, Secrets Manager secrets, and SNS topics, surfacing anything unexpectedly exposed as an external access finding.

This matters because resource-based policies are easy to misconfigure quietly. A single overly broad principal element in an S3 bucket policy can expose data to the entire internet or to an unrelated AWS account without anyone noticing until Access Analyzer flags it.

Beyond External Access: The Other Analyzer Features

Access Analyzer does more than find external exposure:

  • Internal access analysis identifies which principals inside the organization can reach selected resources. External analyzers are regional; unused-access findings do not require duplicating an analyzer in every Region.
  • Policy generation builds a candidate least-privilege IAM policy by analyzing a principal's actual API activity recorded in CloudTrail over a time window you choose. Instead of guessing what permissions a role needs, you let real usage data drive the policy, then review and attach it.
  • Unused access findings flag permissions and entire IAM roles that exist but have not actually been exercised. This supports ongoing least-privilege cleanup long after initial policy generation, since permission needs drift as applications evolve.
  • Policy validation checks a policy document for security warnings, structural errors, and best-practice suggestions before you ever attach it, catching mistakes like overly permissive wildcards early in the authoring process.
Access Analyzer featureWhat it answers
External access findingsIs this resource shared outside my trust zone?
Policy generationWhat permissions has this principal actually used?
Unused access findingsWhat permissions or roles have gone stale?
Policy validationDoes this policy document have errors or bad practices?

Permission Boundaries for Delegated Administration

A recurring exam scenario involves letting developers create their own IAM roles for their own projects, without giving them a path to privilege escalation. Role-creation, policy-attachment and trust-policy permissions can combine into an escalation path if developers can create and assume a role with AdministratorAccess.

The fix is a permissions boundary applied at the point where developers are granted iam:CreateRole. Require the approved boundary with an iam:PermissionsBoundary condition on role creation, and prevent developers from removing or replacing it or modifying the boundary policy. It caps permissions granted by identity-based policies; attaching a boundary to the developer alone does not automatically attach it to new roles. Exam trap: A boundary grants nothing by itself. Identity-policy permissions must also be allowed by the boundary, and explicit denies override allows. Resource-policy grants directly to an IAM user ARN or role-session ARN within the same account are not limited by an implicit boundary deny. A grant to the role ARN is limited by the boundary. Review trust, resource policies, PassRole and boundary-edit permissions together.

References

Continue Learning

Exam Focus Points
  • ✓IAM Access Analyzer identifies resources (S3, KMS, IAM roles, Lambda, SQS, Secrets Manager, SNS) shared with a principal outside your AWS account or organization
  • ✓Access Analyzer policy generation builds a least-privilege IAM policy from a principal's actual CloudTrail activity over a chosen time window
  • ✓Access Analyzer unused access findings flag permissions and roles that have gone unused, supporting ongoing least-privilege cleanup
  • ✓Access Analyzer policy validation checks a policy document for security warnings, errors, and best-practice suggestions before you attach it
  • ✓Permission boundaries are commonly used to let developers create their own IAM roles safely, by requiring and protecting an approved boundary on created roles, limiting identity-policy permissions while reviewing resource-policy and session-grant exceptions
Knowledge Check

1. IAM Access Analyzer reports an "external access" finding on an S3 bucket. What does this finding mean?

2. How does IAM Access Analyzer policy generation help implement least privilege?

3. A company wants developers to be able to create their own IAM roles for new projects, while capping identity-policy grants at an approved ceiling. The team separately reviews trust, resource policies and session-grant exceptions. Which control should it enforce on role creation?