> 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-role-user-with-unused-cloudtrail-delete-or-full-permission.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# AWS IAM role/user with unused CloudTrail delete or full permission

### Synopsis

| Field               | Value                                                              |
| ------------------- | ------------------------------------------------------------------ |
| Rule Type           | Detection                                                          |
| Finding Type        | AWS IAM role/user with unused CloudTrail delete or full permission |
| Finding ID          | 60000492                                                           |
| Generates a Finding | This detection rule also generates a finding                       |
| Severity            | Informational                                                      |
| Category            | CONFIGURATION                                                      |
| Cloud Providers     | AWS                                                                |
| Platform Module     | CSPM                                                               |
| Asset Types         | AWS\_IAM\_SERVICE\_LAST\_ACCESSED\_DETAILS                         |

### Description

AWS IAM roles or users possessing unnecessary 'cloudtrail:DeleteTrail' or 'cloudtrail:\*' permissions present a significant security risk. These excessive permissions could enable malicious actors to delete CloudTrail logs, hindering forensic investigations and compliance efforts.

CloudTrail logs are crucial for security monitoring and auditing. Unnecessary permissions assigned to 'cloudtrail:DeleteTrail' or 'cloudtrail:PutEvent' allow unauthorized modification or deletion of audit logs, potentially concealing malicious activity. Attackers could exploit this misconfiguration to cover their tracks, making incident response significantly more challenging.

The impact of this misconfiguration is the loss of crucial audit data, jeopardizing security posture and regulatory compliance. Maintaining comprehensive audit trails is vital for identifying and responding to security incidents effectively. Least privilege access ensures that only necessary permissions are granted, minimizing the potential impact of compromised credentials.

Implement a least privilege access model for all IAM roles and users. Regularly review and revoke unused permissions, focusing on removing 'cloudtrail:DeleteTrail' and 'cloudtrail:\*' permissions unless explicitly required for legitimate operational tasks.

### Remediation

If Roles with unused CloudTrail delete permission,

1. Log in to AWS console
2. Navigate IAM service
3. Click on Roles
4. Click on reported IAM role
5. In the Permissions tab, Under the 'Permissions policies' section, Remove the policies which have CloudTrail permissions or Delete role if is not required.

If Users with unused CloudTrail delete permission,

1. Log in to AWS console
2. Navigate IAM service
3. Click on Users
4. Click on reported IAM user
5. In the Permissions tab, Under the 'Permissions policies' section, Remove the policies which have CloudTrail permissions or Delete user if is not required.


---

# 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-role-user-with-unused-cloudtrail-delete-or-full-permission.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.
