Skill 1.1.1

Applying AWS security best practices to IAM users and root users (for example, multi-factor authentication [MFA])

Key Concepts

The root user is the email address that created the account. It has complete access that IAM policies cannot restrict (only SCPs in an organisation can). Best practice: enable MFA (hardware key or virtual authenticator), do not create root access keys (delete any that exist), use a strong unique password, and sign in as root only for tasks that require it, such as changing account settings, closing the account or restoring IAM permissions. In an organisation you can centrally manage and even remove root credentials for member accounts.

For people, prefer federated access through IAM Identity Center with temporary credentials over long-lived IAM users. Where IAM users are still needed, enforce MFA (a policy can deny actions when aws:MultiFactorAuthPresent is false), set a strong password policy, rotate access keys and remove unused credentials. The IAM credential report and IAM Access Analyzer's unused access findings show stale users, keys and permissions.

Give each person their own identity (never share credentials), grant least privilege through groups or permission sets, and monitor activity with CloudTrail. GuardDuty alerts on unusual API activity such as root credential use.