10 SCPs every AWS organization needs (validated, on GitHub) | Forrict Skip to main content
AWS Security

10 SCPs every AWS organization needs (validated, on GitHub)

Forrict
10 SCPs every AWS organization needs (validated, on GitHub)
Service control policies set limits for all your AWS accounts. Ten SCPs we use as a baseline, how they work, how to roll them out safely, and a validated set on GitHub.

A service control policy (SCP) is a rule you attach to your whole AWS Organization, an OU or an account. What an SCP denies, nobody in that account can do anymore, not even an administrator. That makes SCPs the strongest guardrails you have in AWS.

We use ten SCPs as the baseline for an AWS Organization. They are free on GitHub: Forrict/aws-scp-baseline, checked automatically against the official AWS reference.

How an SCP works

An SCP grants nothing, it sets limits: only what the IAM policy allows and the SCP does not block is allowed. On the right an example of how the ten SCPs can be spread over the root, the Security OU and the Workloads OU

The most important thing to remember: an SCP grants no permissions. AWS says it literally: no permissions are granted by an SCP. An SCP sets the maximum permissions. An action is only allowed if the user’s or role’s IAM policy allows it, and the SCPs don’t block it.

FactWhat it means
Applies to everyone in the accountIncluding the root user of a member account
Doesn’t apply to the management accountUsers and roles there are not affected. That’s why nothing should run there
Doesn’t apply to service-linked rolesAWS services working through such a role are not restricted
FullAWSAccess is still neededWith Deny statements only, you need the default FullAWSAccess policy, or every action fails
Only with “all features”SCPs are not available if your Organization only uses consolidated billing

The limits

LimitValue
Maximum size of one SCP10,240 characters
SCPs directly attached to the root, an OU or an accountat most 10 per target
Elements that are not allowedPrincipal and NotPrincipal

Watch the size: in the console, spaces and line breaks between JSON elements are not counted; through the CLI or an SDK they are.

The ten SCPs

#What it blocksWhy
1An account leaving the organizationAn account that leaves the organization also leaves every guardrail
2All actions by the root user in member accounts, except centrally started root tasksNobody should work as root day to day
3Regional actions outside eu-central-1 and eu-west-1Workloads and data stay in the EU Regions you choose; global services are exempt
4Stopping, deleting or changing CloudTrailAttackers turn off logging first
5Disabling GuardDuty or hiding findingsThreat detection stays on and visible
6Stopping or deleting the AWS Config recorder, delivery channel, rules and conformance packsConfig is your inventory and compliance history
7Disabling Security Hub or Security Hub CSPM, disabling standardsThe central security overview stays complete
8Deleting IAM Access Analyzer analyzers or archiving findingsUnintended external access stays visible
9Creating IAM users, access keys and console passwordsPeople sign in through IAM Identity Center, machines use roles
10Changing the account-level S3 Block Public Access settingA bucket can’t be made public by turning the account setting off

Policy 2 relies on centralized root access: from the management account you can delete the root credentials of member accounts and run short, scoped root tasks with sts:AssumeRoot. Those tasks keep working, because the SCP only blocks root sessions without the aws:AssumedRoot condition key.

Policy 3 resembles the AWS Control Tower Region deny control, and uses the same list of exempt global services. Using Control Tower? Then enable the built-in control instead of this policy. We go into that in a later post.

Exception roles

Policies 3 to 10 don’t apply to two roles: AWSControlTowerExecution, the role Control Tower uses to manage your accounts, and GuardrailAdmin, an example name for your own platform or security role. Replace the latter with the role you actually use. Without such a role, only the management account can still change these settings.

Validated, not just written

An SCP with a typo in an action name doesn’t block what you think it blocks. That’s why the repository checks every policy automatically, on every push and weekly:

CheckAgainst
Valid JSON, no duplicate keysThe JSON specification
SCP grammar: Version 2012-10-17, only allowed elements, no PrincipalAWS documentation on SCP syntax
Size at most 10,240 characters, with and without whitespaceAWS Organizations quotas
Every action, including wildcards, existsThe AWS Service Authorization Reference, the machine-readable list AWS publishes
Every condition key and operator is validThe same reference plus the global IAM keys

The tests also run the checks against deliberately broken policies (a typo in an action, a wrong condition key, a Principal, a policy that is too large) and fail if any of them passes. As a second opinion, a script in the repository can have IAM Access Analyzer validate each policy; that needs AWS credentials.

How to roll them out

  1. Adjust the Regions and the exception role to your own situation.
  2. Attach to a test OU first, with a test account in it. The AWS whitepaper recommends a Policy Staging OU for exactly this purpose.
  3. Look in CloudTrail for AccessDenied errors and fix what you block by accident.
  4. Roll out OU by OU, starting with the least critical.

Mind the limit of 10 SCPs per target. FullAWSAccess is itself a directly attached SCP, so together that’s 11. Spread them over the root and your OUs, or merge a few. The diagram above shows an example split.

Our take

This section is Forrict’s opinion, based on our own experience.

Start with the protective policies. Policies 1, 4 to 8 and 10 protect what is already there and rarely get in the way of daily work. Policies 2, 3 and 9 have more impact and need more preparation.

An SCP doesn’t replace good IAM. It’s a safety net. You still grant the permissions themselves with permission sets and roles.

Test, test, test. An SCP that is too broad can stop every account under an OU in one go.

Want help choosing and rolling them out, or does this fit into a broader landing zone? See AWS landing zones. Want to know where you stand first? That starts with an AWS security assessment.

Go to the SCPs on GitHub →

Sources

F

Forrict

AWS expert and consultant at Forrict, specializing in cloud architecture and AWS best practices for Dutch businesses.

Tags

Service Control Policies AWS Security AWS Organizations Landing Zones

Stay in the loop

Get AWS insights and tips delivered to your inbox.

Stay in the loop

Get AWS insights and tips delivered to your inbox.

Related Articles