Governance and loggingService 03 of 139 controls
AWS Security Hub CSPM and AWS Config security hardening
Record configuration with AWS Config everywhere, run Security Hub CSPM with CIS and FSBP across the organization, and audit CIS independently with Prowler.
On this page
AWS Config records the configuration of your resources over time, and AWS Security Hub CSPM evaluates those configurations against standards such as the CIS AWS Foundations Benchmark and AWS Foundational Security Best Practices (FSBP). Together they catch drift: a security group opened to 0.0.0.0/0 for a demo, a bucket policy loosened during an incident and never tightened, a new account created without default EBS encryption. At defaults you get none of this. Config is off, Security Hub CSPM is off, and when teams do turn them on they often do it in one Region of one account, which leaves exactly the unused Regions attackers like to launch cryptomining instances in. This page sets both up at organization scale, keeps the findings readable, and adds a Prowler CIS audit as an independent check.
Baseline controls
- 0101AWS Config recording in every account and Region
Most Security Hub CSPM controls are Config rules and cannot evaluate where nothing is recorded.
How to check:aws configservice describe-configuration-recorder-status --region eu-west-1Mapping: Config.1, CIS 4.3 - 0202Global IAM resource types recorded in one Region
Recording IAM everywhere multiplies cost and produces the same finding in every Region.
How to check:aws configservice describe-configuration-recorders --region us-east-1 - 0303Organization Config aggregator in the security account
Gives one place to query the configuration of every account during audits and incidents.
How to check:aws configservice describe-configuration-aggregators - 0404Security Hub CSPM delegated administrator set
Keeps day-to-day security tooling out of the management account.
How to check:aws securityhub list-organization-admin-accountsMapping: CIS 2.1.6 - 0505Every account and Region configured centrally
New accounts get the scanner on day one and members cannot switch it off.
How to check:aws organizations list-policies --filter SECURITYHUB_CSPM_POLICYMapping: CIS 5.16 - 0606FSBP and CIS v5.0.0 standards enabled
CIS satisfies auditors; FSBP catches the service misconfigurations CIS never mentions.
How to check:aws securityhub get-enabled-standards - 0707Consolidated findings aggregated into one Region
One finding per control and one Region to triage keeps automation and people sane.
How to check:aws securityhub list-finding-aggregators - 0808Exceptions suppressed with a documented reason
Unexplained ignored findings hide the real failures and cannot be defended in an audit.
How to check:aws securityhub list-automation-rules - 0909Scheduled independent CIS audit with Prowler
A second tool that does not depend on Config catches gaps in your own pipeline.
How to check:prowler aws --compliance cis_5.0_aws --status FAIL
Record configuration with AWS Config
Security Hub CSPM runs most of its controls as service-linked AWS Config rules. If Config is not recording a resource type in a Region, the matching controls cannot evaluate. That is why control Config.1 (CIS v7.1.0 recommendation 4.3, requirement 3.3 in the v5.0.0 standard that Security Hub CSPM runs) checks that Config is enabled, records the resources your enabled controls need, and uses the AWSServiceRoleForConfig service-linked role.
Record configuration in every Region
Record in every enabled Region of every account, including Regions you think are unused. Deploy the recorder with CloudFormation StackSets (service-managed permissions) or AWS Control Tower rather than by hand. Control Tower already deploys a recorder in governed Regions; if you use it, adjust its settings instead of adding a second one, because each account and Region can have only one customer managed recorder.
Point a delivery channel at the log archive bucket and start recording:
aws configservice put-delivery-channel \
--delivery-channel name=default,s3BucketName=org-config-111122223333
aws configservice start-configuration-recorder \
--configuration-recorder-name default
Two cost levers are worth knowing. You can set recordingMode to DAILY for noisy resource types so Config records a daily snapshot instead of every change; Config.1 results are not affected by daily versus continuous recording. And you can exclude high churn types you do not evaluate. Never exclude types that your enabled controls depend on: AWS publishes the list of required resources per control.
Note: When both the new AWS Security Hub and Security Hub CSPM are enabled, Config.1 always passes, because Security Hub CSPM then reads configuration items through its own service-linked recorder. Keep your own recorder anyway: you still need Config history for investigations and for any custom rules.
Verify
aws configservice describe-configuration-recorder-status --region eu-west-1 \
--query 'ConfigurationRecordersStatus[].[name,recording,lastStatus]'
Run it in every Region, or query the aggregator described below.
Record global resource types once
The common mistake is recording IAM resources in every Region. IAM is global, so every Region produces the same configuration items and the same findings, and you pay for each copy. Record global types once, in your home Region (the Region you also use for Security Hub CSPM aggregation):
aws configservice put-configuration-recorder \
--configuration-recorder '{
"name": "default",
"roleARN": "arn:aws:iam::111122223333:role/aws-service-role/config.amazonaws.com/AWSServiceRoleForConfig",
"recordingGroup": {
"allSupported": true,
"includeGlobalResourceTypes": true
}
}'
In every other Region, record everything except the global IAM types:
aws configservice put-configuration-recorder \
--configuration-recorder '{
"name": "default",
"roleARN": "arn:aws:iam::111122223333:role/aws-service-role/config.amazonaws.com/AWSServiceRoleForConfig",
"recordingGroup": {
"allSupported": false,
"recordingStrategy": { "useOnly": "EXCLUSION_BY_RESOURCE_TYPES" },
"exclusionByResourceTypes": {
"resourceTypes": [
"AWS::IAM::User",
"AWS::IAM::Group",
"AWS::IAM::Role",
"AWS::IAM::Policy"
]
}
}
}'
Config.1 is designed for this split: in a linked Region it does not require IAM global resources to be recorded. Disable the IAM controls in those Regions (see the policy below) so they do not return meaningless default results.
Aggregate Config in the security account
Register the security tooling account as delegated administrator for Config, then create an organization aggregator there:
# From the management account
aws organizations register-delegated-administrator \
--account-id 111122223333 \
--service-principal config.amazonaws.com
# From the security account
aws configservice put-configuration-aggregator \
--configuration-aggregator-name org-aggregator \
--organization-aggregation-source \
RoleArn=arn:aws:iam::111122223333:role/ConfigAggregatorRole,AllAwsRegions=true
Advanced queries over the aggregator answer audit questions across every account in one call:
aws configservice select-aggregate-resource-config \
--configuration-aggregator-name org-aggregator \
--expression "SELECT accountId, awsRegion, resourceId WHERE resourceType = 'AWS::EC2::SecurityGroup' AND configuration.ipPermissions.ipRanges.cidrIp = '0.0.0.0/0'"
Conformance packs for company rules
Conformance packs bundle Config rules and remediation actions into one deployable unit, and AWS publishes sample templates for CIS and NIST. They overlap heavily with Security Hub CSPM standards, so pick one source of truth per control. A reasonable split: Security Hub CSPM for the standard controls, and an organization conformance pack only for rules specific to your company, such as required tags or approved AMIs:
aws configservice put-organization-conformance-pack \
--organization-conformance-pack-name company-baseline \
--template-s3-uri s3://org-config-templates/company-baseline.yaml
Run Security Hub CSPM across the organization
In June 2025 AWS launched a new service under the Security Hub name, focused on correlating findings and exposures, and renamed the original service AWS Security Hub CSPM. The CSPM service runs standards like CIS and FSBP and produces control findings in the AWS Security Finding Format (ASFF); the new Security Hub uses it for posture data. The API namespace is still securityhub.
Delegate administration to the security account
From the management account, designate the security tooling account. Security Hub and Security Hub CSPM share the same delegated administrator:
aws securityhub enable-organization-admin-account \
--admin-account-id 111122223333
Configure every account centrally
Without central management, Security Hub CSPM uses local configuration: the delegated administrator can only auto-enable it in new accounts in the current Region, existing accounts are untouched, and members can change their own settings. You have two ways to do better, and they are mutually exclusive.
Declarative policies (recommended for new setups). An AWS Organizations policy of type SECURITYHUB_CSPM_POLICY enables Security Hub CSPM, standards, controls and control parameters for every account and Region in scope. AWS now recommends it over central configuration. Attaching any such policy, even to one account, disables central configuration for the whole organization, so if you already use central configuration, run the import tool in the Security Hub CSPM console first.
aws organizations enable-aws-service-access \
--service-principal securityhub.amazonaws.com
aws organizations enable-policy-type \
--root-id r-examplerootid111 \
--policy-type SECURITYHUB_CSPM_POLICY
This baseline enables Security Hub CSPM in every supported Region, runs FSBP and CIS v5.0.0, and keeps the global IAM controls only in the home Region eu-west-1:
{
"securityhub_cspm": {
"cspm_enablement": {
"enable_in_regions": { "@@assign": ["ALL_SUPPORTED"] },
"disable_in_regions": { "@@assign": [] }
},
"cspm_standards_controls": {
"default": {
"enabled_standards": {
"@@assign": [
"aws-foundational-security-best-practices/v/1.0.0",
"cis-aws-foundations-benchmark/v/5.0.0"
]
},
"controls_configuration": {
"default_control_association_status": { "@@assign": "ENABLED" },
"disabled_controls": {
"@@assign": ["IAM.1", "IAM.2", "IAM.3", "IAM.4", "IAM.6", "IAM.9"]
}
}
},
"eu-west-1": {
"enabled_standards": {
"@@assign": [
"aws-foundational-security-best-practices/v/1.0.0",
"cis-aws-foundations-benchmark/v/5.0.0"
]
},
"controls_configuration": {
"default_control_association_status": { "@@assign": "ENABLED" }
}
}
}
}
}
Check the standard identifiers against the Organizations syntax reference before attaching, and extend the disabled list to every global IAM control you enable. Then attach at the root:
aws organizations create-policy \
--name securityhub-cspm-baseline \
--type SECURITYHUB_CSPM_POLICY \
--description "FSBP and CIS v5.0.0 in all Regions" \
--content file://securityhub-cspm-baseline.json
aws organizations attach-policy \
--policy-id p-examplepolicyid \
--target-id r-examplerootid111
Central configuration (legacy). Central configuration does the same job from inside Security Hub CSPM: the delegated administrator picks a home Region and linked Regions, writes configuration policies, and associates them with the root, OUs or accounts. Centrally managed accounts cannot change their own settings. AWS documents it as legacy, but it still works and you will find it in many existing organizations:
aws securityhub update-organization-configuration \
--no-auto-enable --auto-enable-standards NONE \
--organization-configuration ConfigurationType=CENTRAL
aws securityhub create-configuration-policy \
--name org-baseline \
--configuration-policy '{"SecurityHub": {"ServiceEnabled": true,
"EnabledStandardIdentifiers": [
"arn:aws:securityhub:eu-west-1::standards/aws-foundational-security-best-practices/v/1.0.0",
"arn:aws:securityhub:eu-west-1::standards/cis-aws-foundations-benchmark/v/5.0.0"],
"SecurityControlsConfiguration": {"DisabledSecurityControlIdentifiers": []}}}'
aws securityhub start-configuration-policy-association \
--configuration-policy-identifier <policy-id> \
--target RootId=r-examplerootid111
Either way, governed accounts cannot switch the scanner off, and new accounts inherit the configuration when they join. That closes the classic gap where a new account runs for weeks before anyone enables the scanner.
Verify
aws securityhub describe-organization-configuration
aws organizations list-policies --filter SECURITYHUB_CSPM_POLICY
With a declarative policy attached, describe-organization-configuration reports central configuration as DISABLED with a message that declarative policies are in use. That is expected.
Enable the CIS and FSBP standards
CIS v5.0.0 is a short list auditors recognise: root MFA, password policy, CloudTrail, Config, default security groups, S3 public access, IMDSv2, EBS default encryption. FSBP is much broader and grows as AWS adds controls for new services. CIS gives you the conversation with auditors; FSBP catches misconfigurations CIS never mentions, such as a public Lambda function URL or an unencrypted OpenSearch domain. Run both.
Security Hub CSPM checks an older CIS version than the latest benchmark. As of November 2026 the newest CIS standard it offers is v5.0.0 (it also keeps v3.0.0, v1.4.0 and v1.2.0), while CIS has published the AWS Foundations Benchmark v7.1.0, which the CIS numbers in the baseline tables on this site cite. The two versions number recommendations differently: AWS Config enabled is 3.3 in v5.0.0 and 4.3 in v7.1.0. Security Hub CSPM findings carry the v5.0.0 numbers, and recommendations added after v5.0.0 are not part of its CIS standard, so cover them with Prowler or manual review.
aws securityhub get-enabled-standards \
--query 'StandardsSubscriptions[].[StandardsArn,StandardsStatus]'
Consolidate findings into one Region
With several standards enabled, one misconfiguration can produce one finding per standard. Consolidated control findings make each control produce one finding regardless of how many standards include it, using security control IDs such as S3.8. New accounts have it on by default; older ones may not:
aws securityhub update-security-hub-configuration \
--control-finding-generator SECURITY_CONTROL
Then link every Region into the home Region so one console and one API call show everything:
aws securityhub create-finding-aggregator \
--region-linking-mode ALL_REGIONS
Keep findings useful
A fresh organization usually lights up with hundreds of failed controls. Readable signal needs three habits.
Disable controls that do not apply, in the policy. If a control conflicts with an accepted design decision, disable it in the declarative or configuration policy with a documented reason, rather than ignoring its findings forever.
Suppress individual findings with a justification. For a known exception, set the workflow status to SUPPRESSED and add a note that points to a ticket:
aws securityhub batch-update-findings \
--finding-identifiers Id=arn:aws:securityhub:eu-west-1:444455556666:security-control/S3.8/finding/abc,ProductArn=arn:aws:securityhub:eu-west-1::product/aws/securityhub \
--workflow Status=SUPPRESSED \
--note Text="Public website bucket behind CloudFront, approved in SEC-142",UpdatedBy=security-team
Use automation rules for patterns. Automation rules, created in the administrator account, update findings as they arrive. A typical rule raises severity for production accounts:
aws securityhub create-automation-rule \
--rule-name "Raise severity for production accounts" \
--rule-order 1 \
--rule-status ENABLED \
--description "Production findings start at HIGH" \
--criteria '{
"AwsAccountId": [{ "Value": "444455556666", "Comparison": "EQUALS" }],
"SeverityLabel": [{ "Value": "MEDIUM", "Comparison": "EQUALS" }]
}' \
--actions '[{
"Type": "FINDING_FIELDS_UPDATE",
"FindingFieldsUpdate": { "Severity": { "Label": "HIGH" } }
}]'
Automation rules do not carry over to the new Security Hub automatically; AWS provides a migration path if you adopt it.
Work the failures by blast radius
Fix in order of exposure, not in the order of the list:
- Root and identity: IAM.4, IAM.6, IAM.9. See Organizations and the root user and IAM Identity Center.
- Logging: CloudTrail.1, CloudTrail.2, CloudTrail.4. See CloudTrail.
- Public exposure: S3.1, S3.8, EC2.53, EC2.54, RDS.2. See S3, VPC and RDS.
- Encryption and instance settings: EC2.7, EC2.8, KMS.4. See EC2 and KMS.
Where you can, prevent instead of detect: S3 Block Public Access at the organization level, EC2 declarative policies for IMDSv2, and SCPs that protect logging. A control that cannot fail beats a finding someone has to read.
Audit CIS independently with Prowler
Prowler is an open source (Apache 2.0) tool that runs hundreds of read-only checks and maps them to compliance frameworks, including every recent CIS AWS version. Security Hub CSPM gives continuous, event-driven evaluation, but it depends on Config, covers fewer requirements than the full benchmark, and supports a subset of CIS versions. Prowler is a point-in-time scan that works without Config and produces a per-requirement CSV auditors like. Run it monthly or before each audit as the independent check.
Install it on Python 3.10 to 3.13 and pick the CIS version you report against:
pipx install prowler
prowler aws --list-compliance | grep -i cis
prowler aws --list-compliance-requirements cis_5.0_aws
At the time of writing Prowler ships mappings from cis_1.4_aws up to cis_7.0_aws. Use cis_5.0_aws so control numbers line up with the Security Hub CSPM standard, or the newest mapping when you report against the latest benchmark (the baseline tables on this site cite v7.1.0), and record the version in your report. Requirements no API can prove (contact details, OU design) appear as MANUAL; collect evidence for those separately.
Create a read-only audit role
Prowler needs the SecurityAudit and ViewOnlyAccess managed policies plus prowler-additions-policy.json from the repository. Create a ProwlerScan role in every account with the CloudFormation template under permissions/templates/cloudformation/, deployed as a service-managed StackSet so new accounts get it automatically. Trust only a runner role in the security account, with an external ID:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": { "AWS": "arn:aws:iam::111122223333:role/ProwlerRunner" },
"Action": "sts:AssumeRole",
"Condition": {
"StringEquals": { "sts:ExternalId": "prowler-audit-7f3c" }
}
}
]
}
Scan every account
Prowler assumes a role per account with -R and -I (external ID). -O names a role in the management account used to enrich findings with account name, email, tags and OU:
#!/usr/bin/env bash
set -euo pipefail
EXT_ID="prowler-audit-7f3c"
ORG_ROLE="arn:aws:iam::999988887777:role/ProwlerOrgReader"
OUT="./reports/$(date +%F)"
aws organizations list-accounts \
--query 'Accounts[?Status==`ACTIVE`].Id' --output text | tr '\t' '\n' |
while read -r acct; do
prowler aws \
-R "arn:aws:iam::${acct}:role/ProwlerScan" -I "$EXT_ID" \
-O "$ORG_ROLE" \
--compliance cis_5.0_aws \
-M csv json-ocsf html -o "$OUT" -F "cis-${acct}" \
--ignore-exit-code-3 || echo "scan failed for $acct"
done
Prowler exits with code 3 when it finds failures; --ignore-exit-code-3 keeps the loop or CI job from treating that as a crash. Run it from CodeBuild or a container in the security account, not a laptop. Do not filter out Regions you think are unused: an unused Region with a default VPC and no flow logs still fails the benchmark. --compliance and --service cannot be combined; while iterating on one area, scan by service (prowler aws --service iam s3) or by check (prowler aws --check ec2_instance_imdsv2_enabled). With -S, Prowler also sends its findings to Security Hub CSPM.
Mute documented exceptions
Record accepted exceptions in a mutelist instead of deleting spreadsheet rows. Muted findings are still reported, flagged as muted, so the exception stays visible:
Mutelist:
Accounts:
"444455556666":
Checks:
"s3_bucket_level_public_access_block":
Regions:
- "eu-west-1"
Resources:
- "public-docs-site"
Description: "Static docs bucket, approved exception SEC-142, review 2027-05"
prowler aws --compliance cis_5.0_aws --mutelist-file ./mutelist.yaml
Resources and tags accept regular expressions, so keep entries narrow, keep the file in version control and require review for changes, exactly like an SCP. The compliance CSV in the compliance/ output folder (one row per requirement and resource) is the file to hand auditors.
Logging and detection
- CloudTrail: alert on the API calls that switch posture tooling off:
StopConfigurationRecorder,DeleteConfigurationRecorder,DeleteDeliveryChannel,DisableSecurityHub,BatchDisableStandards,DeleteFindingAggregator, and OrganizationsDetachPolicyorDeletePolicyon theSECURITYHUB_CSPM_POLICYtype. Better still, deny them with an SCP for everyone except a break-glass role (see Organizations). - EventBridge: Security Hub CSPM publishes
Security Hub Findings - Importedevents in the aggregation Region. Route newCRITICALandHIGHfindings withWorkflow.StatusNEWto a ticket queue, and page only on the controls that signal exposure (S3.8, EC2.53, IAM.4). - Config: the aggregator plus advanced queries is your evidence store for "when did this change and who owned it"; pair configuration timelines with CloudTrail to attribute the change.
- GuardDuty: its findings flow into Security Hub CSPM automatically. Posture tells you what is misconfigured, GuardDuty tells you what is being exploited.
Common mistakes
- Recording IAM in every Region. You pay for identical configuration items and get duplicate IAM findings everywhere. Record global types in the home Region only and disable the IAM controls elsewhere.
- Leaving unused Regions dark. No recorder and no Security Hub CSPM means no evaluation where stolen credentials are most likely to launch resources. Cover all enabled Regions, or disable Regions with an SCP.
- Running local configuration. Auto-enable on new accounts in one Region leaves existing accounts and other Regions unmanaged, and members can turn things off. Use a declarative policy.
- Mixing declarative policies and central configuration. Attaching one Security Hub CSPM policy disables central configuration organization-wide. Import first, then attach.
- Excluding resource types controls depend on. Trimming the recorder for cost silently breaks controls, which then show nothing rather than failing.
- Ignoring instead of suppressing. Findings left
NEWfor months train people to ignore the dashboard. Suppress with a ticket reference or fix them. - Broad Prowler mutelists. A
"*"for checks and resources hides real problems. One check, one resource, one reason, one review date.
References
- Recording AWS resources with AWS Config
- RecordingGroup (AWS Config API Reference)
- Security Hub CSPM controls for AWS Config (Config.1)
- Understanding central configuration in Security Hub CSPM
- Security Hub CSPM policies (AWS Organizations User Guide)
- Security Hub CSPM policy syntax and examples
- CIS AWS Foundations Benchmark in Security Hub CSPM
- AWS Foundational Security Best Practices standard
- CIS Amazon Web Services Benchmarks
- Prowler on GitHub
- Prowler documentation: Compliance
- Prowler documentation: Mutelist
- AWS Config rules and conformance pack samples on GitHub
- NIST SP 800-137: Information Security Continuous Monitoring
Written by
Florian AmetteSecurity engineer writing practical, benchmark-aligned hardening baselines for AWS services, from the organization and identities to data, networks and workloads.