Sub topic 5
Choosing an MFA Factor
This chapter assumes you know what the AWS root user is and why it needs protection. It also assumes you can use a browser and a terminal. Here you will compare the MFA factor types AWS supports and pick one for the root user. The next chapter walks through turning it on.
What an MFA factor is
Multi-factor authentication (MFA) asks for a second proof of identity after your password. A password is something you know. An MFA factor is something you have, such as a phone, a hardware key, or a code generator. If an attacker steals your password, they still cannot sign in without the factor.
AWS supports three kinds of MFA factor for the root user:
- Passkeys and security keys (FIDO2)
- Virtual authenticator apps (time-based one-time passwords, or TOTP)
- Hardware TOTP tokens
Comparing the options
| Factor | How it works | Phishing resistance | Main risk |
|---|---|---|---|
| Passkey (built-in or in a password manager) | Cryptographic sign-in unlocked by a fingerprint, face, or PIN | High | Lost if the device or manager account is lost |
| Security key (FIDO2 hardware) | A physical key you tap or touch | High | Lost or damaged key |
| Authenticator app (TOTP) | A 6-digit code that changes every 30 seconds | Low | Codes can be typed into a fake site |
| Hardware TOTP token | A small device that shows a code | Low | Battery and shipping time, and codes can be phished |
FIDO2 factors (passkeys and security keys) are phishing resistant. The browser checks the website's domain before the factor answers. A fake sign-in page on another domain gets no valid response. A TOTP code has no such check. A person can be tricked into typing it into a fake page.
Recommendation for the root user
Use a FIDO2 factor if you can. A hardware security key is the strongest choice for the root user. It sits in a drawer most of the time and does not depend on a phone. A passkey stored on your laptop or in a password manager is a good second choice.
If you cannot use FIDO2, an authenticator app is still far better than no MFA. Use one on a device you control.
Register more than one factor
AWS lets you register multiple MFA devices on the root user. Register at least two, and keep them in different places. For example, use one security key at home and a second one in a safe location. If one factor is lost, you can still sign in. Without a backup, recovery means going through AWS account recovery, which takes time.
Avoid these mistakes:
- Keeping the only factor on a phone that you also use for the root email.
- Storing the passkey in the same password manager that holds the root password. A single compromise then exposes both.
- Sharing one authenticator app seed among several people. Root should have one accountable owner, or a controlled process for shared custody.
Checking what you chose
After you register a factor, confirm it exists. This command from the plan reports whether MFA is on for the root user, as 1 or 0:
aws iam get-account-summary \
--query 'SummaryMap.{RootMFA:AccountMFAEnabled,RootAccessKeys:AccountAccessKeysPresent}'A result of "RootMFA": 1 means at least one factor is active. The command does not tell you which type it is. Check the type in the console under Security credentials.
Exercise
Your teammate wants to protect the root user with an authenticator app only, and says it is as safe as a security key. Name one difference that matters, and one extra step you would require either way.
Show answer
A security key (FIDO2) is phishing resistant because the browser checks the site's domain before responding, while a TOTP code can be typed into a fake page. Either way, register a second factor stored in a different place, so a lost device does not lock you out of the root user.