> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/posture-rules/cloud-saas-active-directory-posture-rules/cortex-posture-query-based-rules/detection-rules-by-name/aws-iam-policy-permission-may-cause-privilege-escalation.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# AWS IAM Policy permission may cause privilege escalation

### Synopsis

| Field               | Value                                                    |
| ------------------- | -------------------------------------------------------- |
| Rule Type           | Detection                                                |
| Finding Type        | AWS IAM Policy permission may cause privilege escalation |
| Finding ID          | 60000679                                                 |
| Generates a Finding | This detection rule also generates a finding             |
| Severity            | Medium                                                   |
| Category            | CONFIGURATION                                            |
| Cloud Providers     | AWS                                                      |
| Platform Module     | CSPM                                                     |
| Asset Types         | AWS\_IAM\_POLICY                                         |

### Description

AWS IAM policies granting excessive permissions may lead to privilege escalation, enabling attackers to compromise accounts and systems. This misconfiguration allows unauthorized access and control over resources.

The affected service is AWS Identity and Access Management (IAM). IAM policies define permissions granted to users, roles, and groups. Overly permissive policies, such as those granting 'administrator' or other broad permissions, increase the attack surface. An attacker gaining access to a compromised account with excessive permissions can easily elevate privileges to gain control of the entire AWS environment.

The impact of this misconfiguration includes unauthorized access to sensitive data, modification or deletion of resources, and potential disruption of services. Following the principle of least privilege ensures that only necessary permissions are granted, thereby limiting the potential damage from a compromised account. This practice minimizes the impact of successful attacks.

Mitigate this risk by regularly reviewing and updating IAM policies. Grant only the minimum necessary permissions for each user, role, and group. Employ strong password policies and multi-factor authentication to further enhance security. Regularly audit access logs to identify and address suspicious activities.

### Remediation

Refer to the following URL to remove below listed weak permissions from reported AWS IAM Policies, <https://docs.aws.amazon.com/IAM/latest/UserGuide/access\\_policies\\_manage-attach-detach.html#remove-policies-console>

Below are the permission which can lead to privilege escalation, iam:CreatePolicyVersion iam:SetDefaultPolicyVersion iam:PassRole iam:CreateAccessKey iam:CreateLoginProfile iam:UpdateLoginProfile iam:AttachUserPolicy iam:AttachGroupPolicy iam:AttachRolePolicy iam:PutUserPolicy iam:PutGroupPolicy iam:PutRolePolicy iam:AddUserToGroup iam:UpdateAssumeRolePolicy iam:\*


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://cortex-docs.paloaltonetworks.com/posture-rules/cloud-saas-active-directory-posture-rules/cortex-posture-query-based-rules/detection-rules-by-name/aws-iam-policy-permission-may-cause-privilege-escalation.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
