ladderlore
  • 输入服务名称,例如 S3 或 IAM。

概念 · 基于 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

Tasks that only the root user can do.
  • 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
The MFA types AWS supports. A user can register more than one.

是什么

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.