All hands-on labs

Premium Hands-on labbeginnerblue teamAWS

Check IAM policies against a deny list with IAM Access Analyzer

IAM Access Analyzer provides an API called CheckAccessNotGranted, which allows you to run custom policy checks to identify whether a new policy grants access to actions or resources that are restricted by your organization’s deny list. Get hands-on experience using CheckAccessNotGranted for evaluating both identity and resource policies.

  • 14 guided tasks

Scenario

Your production environments are locked down tight. No one should be making changes to them without approval and without serious thought and testing. Even then, some changes should never be allowed, such as create long-term access keys. To ensure access keys never get created in your production accounts, the security team wants to implement checks in the CI/CD pipeline against CheckAccessNotGranted to evaluate new policies being deployed to these environments. They also want to make sure that some actions can only be performed against certain secrets stored in Secrets Manager.

What you will learn

  • Run the CheckAccessNotGranted custom policy check with the AWS CLI.
  • Check an IAM policy against a deny list of actions.
  • Check an IAM policy against a deny list of resources.
  • Check actions and resources together in one call.
  • Read a PASS or FAIL result and find the statement that caused a FAIL.
Hands-on lab

Check IAM policies against a deny list with IAM Access Analyzer

Included in Cybr Premium.