Guides
AWS IAM security guides
Practical, vendor-neutral guides to IAM risks in AWS: how to find each one with the AWS CLI, how to fix it, and where AccessLens can do the checking for you.
Finding iam:PassRole privilege escalation in AWSHow iam:PassRole lets a principal borrow a more powerful role through EC2, Lambda or CloudFormation, how to find broad grants, and how to scope them.Cross-account role trust and the confused deputy problemHow to review IAM role trust policies across AWS accounts, when to use sts:ExternalId, aws:PrincipalOrgID and aws:SourceAccount, and how to list risky trusts.Auditing the CIS AWS Foundations IAM controlsCheck the identity and access controls of the CIS AWS Foundations Benchmark with the AWS CLI and the IAM credential report, control by control, and what to fix.Detecting risky IAM changes with CloudTrail LookupEventsUse CloudTrail event history and the LookupEvents API to spot new access keys, changed trust policies and stopped logging in AWS, with nothing to deploy.
Check every account at once.
Sign in with IAM Identity Center, create one read-only role, and scan. Your findings stay on your machine.