More Info:
Ensure that AWS Config service is enabled in all regions in order to have complete visibility over your AWS infrastructure configuration changes.Risk Level
HighAddress
SecurityCompliance Standards
- APRA CPS 234 (Australia)
- BSI C5 (Germany)
- Brazil LGPD
- CCPA / CPRA (California)
- CIS Critical Security Controls v8
- CMMC 2.0
- CSA Cloud Controls Matrix v4
- DPDPA
- Digital Operational Resilience Act (EU)
- Essential 8
- ISO/IEC 27017
- ISO/IEC 27018
- ISO/IEC 27701
- KSA PDPL
- MAS Technology Risk Management (Singapore)
- MITRE ATT&CK (Cloud)
- NIS2 Directive
- NIST SP 800-171
- NYDFS 23 NYCRR 500
- SWIFT Customer Security Controls Framework
- Sarbanes-Oxley IT General Controls
- UK NCSC Cyber Assessment Framework
Triage and Remediation
- Remediation
Remediation
Using Console
Using Console
Here are the step-by-step instructions to remediate the AWS Config Should Be Enabled misconfiguration using the AWS console:
- Log in to the AWS Management Console.
- Navigate to the AWS Config service.
- Click on the “Get started” button to begin setting up AWS Config.
- On the “AWS Config” page, select the region you want to enable AWS Config in.
- Choose the resource types that you want AWS Config to monitor for changes.
- For “Amazon S3 bucket for AWS Config snapshots”, choose an S3 bucket to store configuration snapshots.
- For “Amazon SNS topic for AWS Config notifications”, select an SNS topic to receive notifications.
- Click on the “Next” button to proceed to the “Rules” page.
- On the “Rules” page, select the rules that you want AWS Config to evaluate.
- Click on the “Next” button to proceed to the “Review” page.
- Review the settings and click on the “Confirm” button to enable AWS Config.
- Wait for AWS Config to finish setting up and start monitoring your resources.
Using CLI
Using CLI
To remediate the misconfiguration “AWS Config Should Be Enabled” for AWS using AWS CLI, follow these steps:Note: Make sure to replace This command will show you the status of the configuration recorders for AWS Config.
- Open the AWS CLI on your local machine or terminal.
- Run the following command to enable AWS Config:
rule.json with the name of the JSON file that contains the configuration rule. You can create a new JSON file with the following contents:- After running the command, AWS Config will be enabled in your AWS account. You can verify this by going to the AWS Config console and checking the status.
- You can also use the following command to check the status of AWS Config:
- Once you have verified that AWS Config is enabled, you can close the AWS CLI.
Using Python
Using Python
To remediate the misconfiguration “AWS Config Should Be Enabled” for AWS using python, follow these steps:Note: Replace
- Import the boto3 library to interact with AWS services using Python.
- Create a boto3 client for AWS Config.
- Check if AWS Config is enabled. If it is not enabled, enable it using the
put_config_rulemethod.
- Set the delivery channel for AWS Config. This will specify where the AWS Config data will be delivered.
- Confirm that AWS Config is enabled.
123456789012 with your AWS account number and myconfigbucket with the name of your S3 bucket where you want to store the AWS Config data.Using Terraform
Using Terraform
terraform plan should show:- creation of
aws_s3_bucket.config_bucketandaws_s3_bucket_policy.config_bucket - creation of
aws_iam_role.config_roleand itsaws_iam_role_policy_attachment - creation (or in-place update, if they already exist with the same names) of
aws_config_configuration_recorder.default,aws_config_delivery_channel.default, andaws_config_configuration_recorder_status.default, withall_supported = trueandinclude_global_resource_types = true.

