> 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-configured-with-virtual-mfa.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# AWS root account configured with Virtual MFA

### Synopsis

| Field               | Value                                        |
| ------------------- | -------------------------------------------- |
| Rule Type           | Detection                                    |
| Finding Type        | AWS root account configured with Virtual MFA |
| Finding ID          | 60000120                                     |
| Generates a Finding | This detection rule also generates a finding |
| Severity            | Medium                                       |
| Category            | CONFIGURATION                                |
| Cloud Providers     | AWS                                          |
| Platform Module     | CSPM                                         |
| Asset Types         | AWS\_IAM\_VIRTUAL\_MFA\_DEVICE               |
| ATT\&CK Tactic      | TA0006 (TA0006)                              |
| ATT\&CK Technique   | T1556.006 (T1556.006)                        |

### Description

AWS root accounts lacking hardware multi-factor authentication (MFA) present a significant security risk. Root accounts possess unrestricted access to all AWS resources, making them prime targets for attackers. Compromising a root account grants complete control over the entire cloud environment.

The AWS root account's configuration utilizes Virtual MFA instead of the recommended hardware MFA. Virtual MFA, while offering some security, is susceptible to various attacks targeting the virtual device or its associated software. This misconfiguration leaves the root account vulnerable to unauthorized access and potential account takeover, facilitating data breaches and service disruptions.

A compromised root account results in complete control of the AWS environment, leading to data exfiltration, unauthorized resource modification, and significant financial losses. Hardware MFA provides stronger security by relying on a physically secured device, reducing the attack surface compared to software-based virtual MFA.

To remediate this misconfiguration, immediately enable hardware MFA for the root account. This involves registering a hardware MFA device (such as a YubiKey or similar) with the AWS account. Additionally, enforce a strong password policy for the root account and implement least privilege access principles, restricting access to only necessary resources.

### Remediation

**Manual steps:**

AWS IAM Virtual MFA Device - Manual remediation steps:

To manage MFA devices for your AWS account, you must use your root user credentials to sign in to AWS. You cannot manage MFA devices for the root user while signed in with other credentials.

1. Sign in to the AWS Management Console with your root user credentials
2. Go to IAM
3. Do one of the following:

   Option 1: Choose Dashboard, and under Security Status, expand Activate MFA on your root account.

   Option 2: On the right side of the navigation bar, select your account name, and then choose My Security Credentials. If necessary, choose Continue to Security Credentials. Then expand the Multi-Factor Authentication (MFA) section on the page.
4. Choose Manage MFA or Activate MFA, depending on which option you chose in the preceding step.
5. In the wizard, choose A hardware MFA device and then choose Next Step.
6. If you have U2F security key as hardware MFA device, choose U2F security key and click on Continue. Next plug the USB U2F security key, when setup is complete click on Close.

   If you have any other hardware MFA device, choose Other hardware MFA device option

   1. In the Serial Number box, type the serial number that is found on the back of the MFA device.
   2. In the Authentication Code 1 box, type the six-digit number displayed by the MFA device. You might need to press the button on the front of the device to display the number.
   3. Wait 30 seconds while the device refreshes the code, and then type the next six-digit number into the Authentication Code 2 box. You might need to press the button on the front of the device again to display the second number.
   4. Choose Next Step. The MFA device is now associated with the AWS account.

Important:

Submit your request immediately after generating the authentication codes. If you generate the codes and then wait too long to submit the request, the MFA device successfully associates with the user but the MFA device becomes out of sync. This happens because time-based one-time passwords (TOTP) expire after a short period of time. If this happens, you can resync the device.


---

# 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-configured-with-virtual-mfa.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.
