Skip to main content
KBY Technologies Logo

SCPs Need a Root-Specific Deny, and Never Reach the Management Account

Critical severityAWS Organizations About 20 minutes to fix

Overview

SCPs do apply to the root user in member accounts, but limiting what root can do still needs a root-specific deny statement, and the management account, including its root user, is never restricted by SCPs at all.

At a glance

Symptom
A member account root session, recovered or phished via the account email and phone flow, calls an unrestricted API such as organizations:LeaveOrganization or cloudtrail:StopLogging.
Likely cause
Root OU SCPs contain no Deny statement conditioned on aws:PrincipalArn arn:aws:iam::*:root, and the management account has no root credential hardening.
Impact
Root can detach accounts from the organization, delete CloudTrail trails and disable GuardDuty before any IAM-scoped alerting has a chance to fire.
Verification signal
Re-run the detection test and a controlled negative-path test.
Safe correction
Attach an explicit Deny SCP scoped to aws:PrincipalArn arn:aws:iam::*:root at the Root OU and enforce hardware MFA with no access keys on the management account root user.
Rollback or recovery
Restore the exported configuration if the new control blocks required production traffic, then narrow the policy before redeployment.

The Trap

Service Control Policies attached to the Organizations Root OU without an explicit Deny statement aimed at the root user (aws:PrincipalArn matching arn:aws:iam::*:root). Teams assume the standard FullAWSAccess baseline SCP, layered with a handful of preventive Deny SCPs targeting services, fully contains root sessions. In member accounts those Denies do apply to root, as to IAM users and roles, but FullAWSAccess restricts nothing, so any sensitive action not explicitly denied stays open, and no SCP reaches the management account.

The Default State

Landing zone deployments attach FullAWSAccess to the Root OU by default and layer service-scoped Deny SCPs beneath it, but almost none of them include a Deny aimed specifically at the root user. Separately, and structurally rather than as a misconfiguration, AWS never applies any SCP to the organization’s management account, regardless of where that SCP sits in the hierarchy.

Engineers who verify SCP coverage against member accounts often extrapolate that coverage upward and stop hardening the management account root user, leaving it with no MFA device registered and, occasionally, live access keys.

The Blast Radius

In member accounts SCPs are the main preventive control over the root user, because IAM policies cannot touch root at all.

Without a scoped Deny, a phished or account-recovery-hijacked root session in a member account can call organizations:LeaveOrganization to detach itself from central logging and SCP enforcement, run cloudtrail:StopLogging or cloudtrail:DeleteTrail to blind the security team, and call guardduty:DeleteDetector to remove detection entirely, all before any IAM-based alerting fires.

In the management account, none of this even requires bypassing an SCP, because no SCP was ever in scope: a compromised management account root session has unconditional control over every linked account, every SCP, and every StackSet.

The Lead Mechanic Fix

Attach a Deny SCP at the Root OU with a Condition block: {“Effect”:”Deny”,”Action”:[“organizations:LeaveOrganization”,”cloudtrail:StopLogging”,”cloudtrail:DeleteTrail”,”guardduty:DeleteDetector”,”iam:DeleteAccountPasswordPolicy”],”Resource”:”*”,”Condition”:{“StringLike”:{“aws:PrincipalArn”:”arn:aws:iam::*:root”}}}, tested on a sandbox OU first.

Enforce a hardware MFA device on the management account root user, check last-used data for any root access keys, move anything still using them to IAM roles, deactivate and then delete them, and configure the centralised root access feature in IAM, which lets you delete long-term member account root credentials and allows short-lived, task-scoped privileged sessions from the management account instead.

Add an EventBridge rule matching detail.userIdentity.type Root on the AWS API Call via CloudTrail and AWS Console Sign In via CloudTrail detail types, in every Region where those events are recorded (root console sign-ins land in us-east-1, us-east-2 or us-west-2), to page on-call immediately, since this is the only account where an SCP cannot save you.

3

Apply the safer control

Before you change production

Confirm the affected scope, export the current configuration, and test the replacement control in a non-production environment first.

Control to implement

Attach an explicit Deny SCP scoped to aws:PrincipalArn arn:aws:iam::*:root at the Root OU and enforce hardware MFA with no access keys on the management account root user.

Validate the vendor-specific syntax in official documentation before applying it.

4

Verify, roll back or escalate

Verify

Re-run the detection test and a controlled negative-path test. Confirm the unsafe behaviour is blocked while approved traffic still succeeds.

Rollback

Restore the exported configuration if the new control blocks required production traffic, then narrow the policy before redeployment.

Escalate

Escalate when the blast radius is uncertain, the control cannot be tested safely, or remediation requires an outage or security exception.

The KBY Brief

Fixed? Get the next one before it hits you: The KBY Brief

Practical fixes for the systems you run, by email about twice a week. Unsubscribe at any time.

About this page

Credited to

Dates

Published

Last updated

Corrections

  • : Corrected during a review of published articles. Details
  • : Corrected during a review of published articles. Details

Was this useful?

Reports go to the site owner and are used to correct pages. Corrections are listed at /corrections.

Found this useful? Follow KBY for more like it.

After remediation

Further reading stays below the corrective workflow and is selected by platform, category and shared technical keywords.

More from KBY that goes with this config trap.