Protecting the Root User and Enabling Multi-Factor Authentication
This lesson explains how to protect the root user, the most powerful identity in an AWS account, and which tasks require it. Both are commonly tested.
Learning outcomes
After completing this lesson, you will be able to:
- Describe the root user and why it needs particular protection.
- Identify the recommended practices for protecting the root user.
- Identify the tasks that only the root user can perform.
- Describe the multi-factor authentication options.
The root user
When an AWS account is created, it has one identity: the root user, which signs in with the account's email address and password. The root user has complete access to every resource and to billing, and IAM policies in the account cannot restrict it. Anyone who obtains the root user's credentials therefore controls the whole account, which is why it must be protected carefully and used as little as possible.
Protecting the root user
The root user has unrestricted access to the account and therefore requires particular protection. The following practices are recommended.
- Enable multi-factor authentication (MFA).
- Use a strong, unique password.
- Do not create access keys for it, and delete any that exist.
- Do not use it for everyday tasks; use an administrative IAM identity or IAM Identity Center instead.
- In AWS Organizations, manage root access to member accounts centrally.
Protecting the root user
Tasks that require the root user
Certain tasks can be performed only by the root user. The following list describes these tasks.
- Changing account settings: account name, root email address, root password.
- Closing the AWS account.
- Changing or cancelling the AWS Support plan.
- Restoring IAM permissions if the only administrator is locked out.
- Signing up for GovCloud.
- Certain S3 settings, such as enabling MFA Delete.
Root user or IAM?
MFA options
Multi-factor authentication (MFA) requires a second proof of identity in addition to the password, so a stolen or guessed password alone is not enough to sign in. It should be enabled for the root user and for every user with console access, especially administrators. AWS supports several kinds of MFA device, which are listed below.
- Virtual authenticator apps on a phone.
- FIDO2 security keys and passkeys.
- Hardware TOTP tokens.
A new account's first hour
A company has just created its AWS account. A security-conscious first hour looks like this:
| Step | Action |
|---|---|
| 1 | Sign in as the root user and turn on MFA for it |
| 2 | Check there are no root access keys (and never create any) |
| 3 | Set up IAM Identity Center or an administrator IAM identity for daily work |
| 4 | Store the root password and MFA device securely; sign out of root |
| 5 | Use the administrator identity from now on; use root only for root-only tasks |
A year later, the company wants to upgrade its AWS Support plan. That is one of the few tasks that requires the root user, along with closing the account and changing the account's root email address.
Name a task that only the root user can perform.
Show answer
For example, changing the account's support plan or closing the account. Everyday work should use other identities.
Exam Tips
Remember for the exam
- Closing the account or changing the support plan requires the root user.
- To protect the root user, enable MFA and do not create access keys for it.
- Use an administrative IAM identity, not the root user, for daily tasks.
- MFA adds a second factor to the password.
- The root user signs in with the account's email address.