AWS Builder Center
AWS Root Account Security: Best Practices You Cannot Ignore

AWS Root Account Security: Best Practices You Cannot Ignore

The specific steps every AWS account owner should take to lock down the root user.

Series: AWS Security 30 Days, 30 Articles Challenge (31 articles)

  1. …
  2. 7
    AWS Root Account Security: Best Practices You Cannot Ignore This article
Welcome to Day 6 of the 30 Days AWS Security Challenge. Yesterday we set up MFA. Today we focus that effort specifically on the root user, the one identity in your AWS account that can do absolutely anything, including things you cannot undo with a policy change.

Why Root Is Different From Every Other User

The root user is created automatically the moment you open an AWS account, tied to the email address you signed up with. Unlike every IAM user we've discussed this week, root permissions cannot be restricted by a policy. Root can close your account, change billing, delete resources, and override almost anything. There is no ceiling on what it can do.
This is exactly why root should not be your everyday login. If root credentials are ever compromised, the damage is close to total, and undoing it is far harder than revoking a normal user's access.

Step One: Lock Root Behind MFA

If you did nothing else from yesterday's article, do this one. Root without MFA is a single password away from a total account takeover. Go to your account settings, find Root user MFA, and set up a virtual MFA device the same way you would for any IAM user. This alone closes most of the realistic risk.

Step Two: Stop Using Root Day to Day

Once MFA is set up, the next move is to stop logging in as root altogether. Create an IAM user (or better, use a role through federated access) with administrator permissions for your daily work. Save root exclusively for the small handful of tasks that actually require it, like changing your support plan or closing the account.
A simple habit that helps: if you find yourself reaching for the root login more than once every few months, something in your permission setup needs fixing.

Step Three: Remove Root Access Keys

Root access keys let someone authenticate programmatically as root, with no password or console prompt in the way. Most accounts never need this. Check whether root has any active access keys under My Security Credentials, and if you find any you are not actively using, delete them. Fewer standing credentials means fewer things that can leak.

Step Four: Use a Strong, Unique Password

This sounds basic, but it matters more for root than anywhere else. Use a long, unique password generated by a password manager, never reused from another site. Since root cannot be restricted by policy, a strong password paired with MFA is your entire line of defense if someone tries to log in directly.

Step Five: Set Up Alerts for Root Activity

Even with everything above in place, it helps to know immediately if root is ever used. You can set up a CloudWatch alarm tied to CloudTrail that notifies you (through something like an SNS email or Slack alert) any time the root user signs in or takes an action. Root activity should be rare enough that any alert is worth investigating right away.

Step Six: Use AWS Organizations for Multi Account Setups

If you manage more than one AWS account, consider using AWS Organizations, which lets you centrally manage accounts under a management account instead of juggling separate root logins everywhere. This reduces the number of root credentials you need to protect in the first place. We'll cover Organizations properly tomorrow.

Key Takeaways

  • Root permissions cannot be limited by policy, so protecting root itself is the whole defense
  • MFA on root is non negotiable and takes only a few minutes to set up
  • Use root only for account level tasks, and rely on IAM users or roles for everyday work
  • Delete unused root access keys and use a strong, unique password
  • Set up alerts so you know immediately if root is ever used
Tomorrow we zoom out from a single account to managing multiple accounts safely, with an introduction to AWS Organizations and Service Control Policies.

Series: AWS Security 30 Days, 30 Articles Challenge (31 articles)

  1. …
  2. 7
    AWS Root Account Security: Best Practices You Cannot Ignore This article
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article