Removing Root Credentials with Centralised Root Access Management
This lesson explains how centralised root access management removes the long-term root credentials of member accounts, since managing a password and MFA device for each of hundreds of accounts does not scale.
Learning outcomes
After completing this lesson, you will be able to:
- Identify the tasks that require the root user.
- Explain how privileged root tasks are performed without standing credentials.
- Describe how the management account, which these controls do not reach, is protected.
What the root user can do
The root user of an account has complete access, and a few tasks can be performed only by root. In member accounts, the tasks that matter most operationally are unlocking resources whose policies lock everyone out, such as an S3 bucket policy or SQS queue policy that denies all principals, which no IAM principal can then change; and auditing, deleting or recovering the root user's own credentials. A few account-level settings, such as changing the support plan or closing the account outside Organizations, also require root.
Every account created in an organisation historically had a root user with a password that someone had to secure with MFA. Across hundreds of accounts, that means hundreds of powerful standing credentials that are rarely used, hard to audit and attractive to attackers.
Centralized root access for member accounts
Centralized root access management, enabled in IAM from the management account with trusted access for Organizations, removes those standing credentials. The root password, access keys, signing certificates and MFA devices can be deleted from existing member accounts, and accounts created in the organisation afterwards have no root credentials at all.
When a root-only task is needed, an administrator in the management account, or in a delegated administrator account, calls sts:AssumeRoot for the target member account with a task policy that limits the session to one task, such as unlocking an S3 bucket policy, unlocking an SQS queue policy, or auditing or deleting root credentials. The session is short-lived and recorded in CloudTrail. If an account ever genuinely needs its root password again, credential recovery can be allowed for that account. Root therefore changes from hundreds of standing credentials into an audited capability invoked centrally, which is the answer when a question asks to reduce root user risk across an organisation with the least operational overhead.
Protecting the management account
The management account is the one place where these controls do not reach: SCPs never apply to it, so its root user and administrators remain fully privileged over the whole organisation. It therefore needs the strongest protection. It holds no workloads, its root user is protected with hardware MFA held under dual control, and only a small, named group can sign in to it.
Delegating the AssumeRoot capability to a dedicated security account means the management account is used even less. EventBridge rules on CloudTrail events alert the security team to any root sign-in, in any account, and to every AssumeRoot call, so each use of root privileges is reviewed.
A company with 400 member accounts must eliminate long-term root credentials, yet keep the ability to unlock an S3 bucket whose policy accidentally denies all principals. The solution must minimise operational overhead.
Rotating root passwords and MFA devices for 400 accounts fails the overhead constraint. An SCP denying root actions cannot help with the locked bucket, because only root can delete that policy. The answer is centralised root access management: remove root credentials from all member accounts, and use a privileged root session with the unlock-bucket-policy task from the management account or a delegated administrator when needed.
What does centralised root access management allow for member accounts?
Show answer
Removing their root credentials and performing the few root-only tasks, such as deleting a bucket policy that denies everyone, through short-lived privileged sessions started from the management or delegated administrator account.
Exam Tips
Remember for the exam
- Centralized root access removes member account root credentials and replaces them with sts:AssumeRoot task sessions.
- Only root can delete a bucket or queue policy that denies all principals.
- Delegate root sessions to a security account rather than using the management account.
- SCPs never apply to the management account, so keep it free of workloads and tightly controlled.
- Alert on root sign-ins and AssumeRoot calls.