Lion Cipher Lab

Right-size permissions with AWS IAM Access Analyzer (least privilege)

Why it matters

The biggest cloud breaches almost always trace back to an identity with more permissions than it needed — one leaked key that could touch everything. Least privilege is the antidote, and the hard part isn't agreeing with it, it's knowing exactly which permissions are 'needed'. IAM Access Analyzer answers that from real usage data instead of guesswork, turning 'least privilege' from a slogan into a policy you can actually generate and apply. This is a daily task for cloud security and IAM engineers.

What you'll learn

Steps in this lab

  1. Least privilege — the idea, and why it's hard
  2. Set up: an over-broad role and CloudTrail
  3. Generate some real activity
  4. Generate a least-privilege policy from activity
  5. Review, tighten, and apply — with judgment
  6. When least privilege costs more than it's worth (and how to stage it)

Open the full interactive lab →