> 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-root-account-activity-detected-in-last-14-days.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# AWS root account activity detected in last 14 days

### Synopsis

| Field               | Value                                              |
| ------------------- | -------------------------------------------------- |
| Rule Type           | Detection                                          |
| Finding Type        | AWS root account activity detected in last 14 days |
| Finding ID          | 60000874                                           |
| Generates a Finding | This detection rule also generates a finding       |
| Severity            | High                                               |
| Category            | CONFIGURATION                                      |
| Cloud Providers     | AWS                                                |
| Platform Module     | CSPM                                               |
| Asset Types         | AWS\_IAM\_CREDENTIAL\_REPORT                       |
| ATT\&CK Tactic      | TA0004 (TA0004)                                    |
| ATT\&CK Technique   | T1078.004 (T1078.004)                              |

### Description

AWS root account activity within the last 14 days indicates a potential security risk. Excessive root account usage increases the likelihood of credential compromise and unauthorized access to all AWS resources.

The AWS root account possesses complete administrative privileges across all services and resources. Using it for routine tasks violates the principle of least privilege, significantly increasing the attack surface. Compromise of the root account credentials grants attackers complete control, enabling data breaches, service disruptions, and malicious configuration changes.

A compromised root account results in complete account takeover, leading to severe financial and reputational damage. Following the principle of least privilege by minimizing root account usage and employing multi-factor authentication drastically reduces the impact of a potential breach.

Mitigate this risk by creating and using IAM users with least privilege access for day-to-day tasks. Enable multi-factor authentication (MFA) for the root account. Regularly review and rotate access keys, and avoid hardcoding credentials in scripts or applications.

### Remediation

**Manual steps:**

AWS IAM Credential Report - This remediation plan addresses the detection of AWS root account activity within the last 14 days. The AWS root account possesses unrestricted access to all AWS services and resources, making it a high-risk target. Utilizing the root account for routine tasks increases the likelihood of accidental credential exposure or unauthorized modifications. To mitigate this risk, it's crucial to minimize root account usage and implement robust security measures:

1. **Delete Access Keys:** If any access keys are associated with the root account, delete or deactivate according to your requirement. Follow these steps:
   1. Sign in to the AWS Console as the root user.
   2. In the upper right corner of the console, choose your account name or number and then choose 'Security Credentials'.
   3. In the Access keys section, select the access key that you want to delete, and then, under Actions, choose Delete.
   4. On the Delete dialog box, choose Deactivate, enter the access key ID to confirm you want to delete it, and then choose Delete.
2. **Restrict Root Account Console Access:** Limit the use of the root account console to essential administrative tasks. Consider using IAM users with specific permissions for routine operations.

**Note:** Carefully review and test these steps before implementation. Deleting access keys is irreversible and may impact existing applications or services that rely on them. Ensure you have appropriate backup and recovery plans in place. Alternatively, You can temporarily disable an AWS access key by deactivating it, which denies all access until you choose to reactivate it later.

**CLI code:**

AWS IAM Credential Report - This command deletes the access key associated with the root user, reducing the risk of unauthorized access. You must sign in as the AWS account root user, You can't perform these steps as an IAM user or role:

```bash
aws iam delete-access-key --access-key-id ${entity}
```


---

# 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-root-account-activity-detected-in-last-14-days.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.
