IAM-04.1: IAM policies in deployments are assessed for excessive privileges or misconfigurations that are known to create the risk of privilege escalation. This control objective does not need to be enforced in nonproduction accounts where excessive privileges are often necessary for building and testing.
This is commonly a feature of CSPM tools and there are some OSS tools designed to perform these assessments.
Control automation: Automated
AWS control specification: IAM policies attached to entities in production accounts do not have excessive privileges. Look for "*" on the resource in a policy statement without a conditional. Efforts can focus on IAM actions in this list: https://github.com/primeharbor/sensitive_iam_actions/blob/main/actions.yaml
Azure control specification: none
GCP control specification: none
Third-party (CSPM/CNAPP) control specification: CSPM tool runs scans for excessive privileges or potential privilege escalation, ideally only on deployments flagged as production
Description
Control automation: Automated
AWS control specification: IAM policies attached to entities in production accounts do not have excessive privileges. Look for "*" on the resource in a policy statement without a conditional. Efforts can focus on IAM actions in this list: https://github.com/primeharbor/sensitive_iam_actions/blob/main/actions.yaml
Azure control specification: none
GCP control specification: none
Third-party (CSPM/CNAPP) control specification: CSPM tool runs scans for excessive privileges or potential privilege escalation, ideally only on deployments flagged as production