概念 · 基于 CLF-C02
Root user and MFA
Keep root unused, protect it with MFA, and plan how you recover the account without it.
本课尚未翻译,暂以英文显示。
你在云从业者中已学过
- The root user has full access to the account, including billing.
- Protect it with MFA, never create root access keys, and do daily work as an administrative user.
- AWS Organizations can remove root credentials from member accounts.
Close the account
Change root email or password
Manage root access keys
Restore IAM admin access after a lockout
Fix a bucket policy that denies all
Activate IAM access to billing
Passkey or security key
- Example
- FIDO2 key, device passkey
- Note
- Phishing resistant
Virtual authenticator
- Example
- Phone app with one-time codes
- Note
- Free, easy to roll out
Hardware token
- Example
- TOTP key fob
- Note
- Separate device, no phone needed
| Type | Example | Note |
|---|---|---|
| Passkey or security key | FIDO2 key, device passkey | Phishing resistant |
| Virtual authenticator | Phone app with one-time codes | Free, easy to roll out |
| Hardware token | TOTP key fob | Separate device, no phone needed |
是什么
The design goal is simple: nobody uses root day to day, and the account can still be recovered. Root is needed only for a short list of tasks. Everything else works with IAM permissions.
MFA comes in three types: virtual authenticator apps, FIDO2 security keys and passkeys, and hardware TOTP tokens. A user can register several devices, so a lost device does not lock the account. To force MFA for IAM users, add a policy that denies every action except setting up MFA when the aws:MultiFactorAuthPresent condition is not true.
是什么
Plan a break-glass path for the day your identity provider is down. Keep one or two emergency IAM users or roles, with strong passwords and MFA, behind a strict process. Raise an alarm whenever they sign in, using AWS CloudTrail and Amazon EventBridge.
要记住
- Root-only tasks: close the account, change the root email or password, restore IAM permissions after a lockout, and fix a bucket policy that denies everyone.
- Activating IAM access to billing data is also a root task.
- Never create access keys for root. Delete any that exist.
- Force MFA with a Deny policy and the aws:MultiFactorAuthPresent condition.
要记住
- In an organization, remove member-account root credentials and use central root access for the rare root tasks.
- Break-glass: emergency IAM user or role, MFA, and an alarm on use.
考试中
- “Only this task needs the root user” points to account closure, root credentials or a lockout recovery.
- “Users must use MFA before they can call any API” points to a Deny policy with aws:MultiFactorAuthPresent.
- “Reduce the risk of the root user in many accounts” points to central root access management in AWS Organizations.
别和这些弄混
本任务内容 · 1.1
- Shared responsibility model
- Root user and MFA
- Users, groups and roles: authorization model
- Policy evaluation and conditions
- Least privilege in practice
- STS, role switching and cross-account access
- Resource-based policies
- Service control policies
Organizations
Control Tower
IAM Identity Center
- Federating identities into IAM
Directory Service
RAM
- Regions and AZs as the HA building block
- Placing resources