---
title: >-
  AWS managed IAM policies that allow full administrative privileges should not
  be attached
description: Datadog, the leading service for cloud-scale monitoring.
breadcrumbs: >-
  Docs > Datadog Security > OOTB Rules > AWS managed IAM policies that allow
  full administrative privileges should not be attached
---

> For the complete documentation index, see [llms.txt](https://docs.datadoghq.com/llms.txt).

# AWS managed IAM policies that allow full administrative privileges should not be attached
 
## Description{% #description %}

AWS accounts should not have IAM roles, users, or groups with an attached AWS managed policy that allows all actions (`*`) on all resources (`*`), such as `AdministratorAccess`. Full administrative access lets any compromised identity take over the account, so grant only the permissions each identity requires. This rule produces one finding per account. A policy fails when its default version document has an `Allow` statement for action `*` on resource `*`; `AdministratorAccess` fails even when its document is not collected. As in the CIS audit, roles that IAM Identity Center creates for permission sets are evaluated like any other role. An account with a missing or empty account ID fails because its identities cannot be matched to the account. Customer managed policies are evaluated by the rule "IAM policies should adhere to least-privilege".

## Remediation{% #remediation %}

1. In the affected account, identify the roles, users, and groups that have an AWS managed policy granting full administrative privileges attached.
1. Detach the policy from each identity, and attach a policy that grants only the actions and resources the identity requires, as described in [Adding and removing IAM identity permissions](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_manage-attach-detach.html).

## References{% #references %}

- [Adding and removing IAM identity permissions](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_manage-attach-detach.html)
- [AWS managed policies for job functions](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_job-functions.html)
- [CIS Amazon Web Services Benchmarks](https://www.cisecurity.org/benchmark/amazon_web_services)
