Sub topic 11
Managing many accounts and Regions with delegated administrators
This chapter assumes you can read IAM policies, know how AWS Organizations groups accounts into organizational units (OUs), and have enabled GuardDuty in a single account as shown earlier. It also assumes you know that GuardDuty detectors and Security Hub are Regional services.
Why central management matters
Running GuardDuty and Security Hub in one account is simple. Running them across 50 accounts and 6 Regions is a different problem. You would need to enable the services 300 times, keep settings consistent, and look in 300 places for findings. A new account created next month would have no detection until someone remembered to enable it.
AWS solves this with two roles an account can play:
- The management account is the account that created the organization. It owns billing and can invite or create member accounts.
- The delegated administrator is a member account that the management account designates as the administrator of a specific service. It can enable the service in other accounts, see their findings, and change their settings.
Using a delegated administrator is the recommended pattern. You keep the management account free of day-to-day security tooling, and you give the security team access to a dedicated account (often called a "security tooling" or "audit" account) instead of the account that controls the whole organization.
The relationship between the accounts
Findings flow upward, and configuration flows downward. Each member account still has its own detector. The administrator account does not replace those detectors. It gains permission to read their findings and to manage their settings.
Setting up GuardDuty
Step 1: Allow trusted access and designate the administrator
Run this from the management account. It registers the security account as the GuardDuty delegated administrator in the Region you specify.
aws guardduty enable-organization-admin-account \
--admin-account-id 111122223333 \
--region us-east-1Replace 111122223333 with the ID of your security account. GuardDuty enables trusted access with AWS Organizations on your behalf when you make this call. The account that receives the designation must already have a detector in that Region, or you must create one there first.
Step 2: Enable auto-enrollment from the administrator account
Switch to the delegated administrator account. Look up its detector, then configure the organization so that all existing and new accounts are enrolled automatically.
DETECTOR_ID=$(aws guardduty list-detectors \
--region us-east-1 \
--query 'DetectorIds[0]' --output text)
aws guardduty update-organization-configuration \
--detector-id "$DETECTOR_ID" \
--auto-enable-organization-members ALL \
--region us-east-1The --auto-enable-organization-members option accepts three values:
| Value | Behavior |
|---|---|
| `NEW` | GuardDuty is enabled automatically only for accounts that join the organization after you set this. |
| `ALL` | GuardDuty is enabled for every existing member account and for all new ones. |
| `NONE` | No automatic enrollment. You add each member account yourself. |
For most organizations, ALL is the right choice. NEW leaves existing accounts unprotected unless you enroll them separately, which is a common source of coverage gaps.
Protection plans such as S3 protection, Malware Protection, and Runtime Monitoring have their own organization-level settings. Enabling GuardDuty for members does not necessarily turn on each plan, so check the plan settings with aws guardduty describe-organization-configuration and set them explicitly.
Step 3: Verify enrollment
List the members and check their relationship status.
aws guardduty list-members \
--detector-id "$DETECTOR_ID" \
--region us-east-1 \
--query 'Members[].{Account:AccountId,Status:RelationshipStatus}' \
--output tableAccounts managed through Organizations should show Enabled. A status such as Invited or Removed means the account is not yet fully enrolled. Another status you may see is DisassociatedByOrganizations-style states, which indicate the account was removed from the organization or from administration.
Run aws guardduty get-member-detectors or check the console's account list to see how many accounts have each protection plan active. Coverage reports like these show gaps before an incident reveals them.
Setting up Security Hub
Security Hub follows the same pattern, with some differences in how it is configured.
Delegate the administrator
From the management account:
aws securityhub enable-organization-admin-account \
--admin-account-id 111122223333 \
--region us-east-1Configure organization policies or auto-enable
Security Hub offers two ways to manage member accounts:
- Central configuration lets the delegated administrator create configuration policies. A policy states whether Security Hub is on, which standards are enabled, and which controls are disabled. You attach the policy to the whole organization, to OUs, or to individual accounts.
- Local configuration leaves each account responsible for its own settings, apart from basic enrollment.
Central configuration is better for consistency. A single policy can say "enable the AWS Foundational Security Best Practices standard everywhere, and disable control X in the sandbox OU." Without it, you must configure each account and Region separately.
Aggregating across Regions
Both services keep data in the Region where it was produced. A finding from eu-west-1 is stored in eu-west-1. To avoid checking every Region separately, Security Hub supports a finding aggregator. You pick one home Region, and Security Hub replicates findings, insights, and control status from the linked Regions into it. You then view everything from one place.
aws securityhub create-finding-aggregator \
--region-linking-mode ALL_REGIONS \
--region us-east-1You run this in the Region you want as the home Region. The ALL_REGIONS mode links every current Region. Use SPECIFIED_REGIONS with --regions to choose a subset. Other modes can include future Regions automatically, which matters because AWS adds new Regions over time and an attacker may use one you never enabled.
GuardDuty has no equivalent single-pane aggregator of its own. Its findings still live per Region. The usual approach is to let GuardDuty send findings to Security Hub in each Region, and then use Security Hub's aggregation to combine them.
Common errors and gotchas
- Designating the administrator in only one Region. The designation is Regional. Findings from a Region you forgot will exist but nobody will be watching them.
- Forgetting the administrator's own detector. The delegated administrator account is also a monitored account. Make sure it has its own detector and plans enabled.
- Choosing
NEWand assuming old accounts are covered. UseALL, or enroll existing accounts explicitly. - Mixing central and local configuration in Security Hub. After you adopt central configuration, local changes in member accounts can conflict with or be overridden by policies. Pick one model.
- Missing permissions on the CLI call. The caller needs permissions such as
organizations:EnableAWSServiceAccessandorganizations:RegisterDelegatedAdministrator. AnAccessDeniedExceptionon the designation call usually means one of these is missing in the management account. - Suppression rules are per administrator. Filters you create in the administrator account apply to the findings that account sees from its members. They do not copy into the member accounts' own detectors.
- Assuming one detector per account. Each account has one detector per Region. Counting accounts alone underestimates the number of detectors you must monitor.
Decision criteria
| Situation | Recommendation |
|---|---|
| Small number of accounts, single Region | A delegated administrator is still useful, and it is cheap to set up early. |
| Many accounts under AWS Organizations | Use a dedicated security account as delegated administrator with `ALL` auto-enrollment. |
| Accounts outside the organization | Use the invitation flow, where the administrator sends invitations and the member accepts. This is more manual. |
| Strict separation of duties | Keep the administrator in a separate account with tightly limited access and log all of its activity in CloudTrail. |
Exercise
Your organization has 40 accounts and uses us-east-1 and eu-west-1. You set the GuardDuty delegated administrator and auto-enable ALL in us-east-1 only. A week later, a finding appears in eu-west-1 that nobody noticed. What went wrong, and what two actions fix it?
Show answer
The delegated administrator designation and the auto-enable setting are Regional, so eu-west-1 had no administrator and its member accounts were not enrolled. Fix it by repeating enable-organization-admin-account and update-organization-configuration with --auto-enable-organization-members ALL in eu-west-1. Then, for visibility from one place, create a Security Hub finding aggregator with a home Region so findings from both Regions appear together.
Exercise
Which --auto-enable-organization-members value leaves existing accounts unprotected, and why is it risky?
Show answer
NEW. It enables GuardDuty only for accounts that join after the setting is applied, so accounts already in the organization stay without a detector unless you enroll them separately. This creates a silent coverage gap.