More Info:
Ensure that Amazon Config service is referencing an active S3 bucket in order to save configuration information (history files and snapshots) for auditing purposes.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
To remediate the misconfiguration of AWS Config not having S3 bucket configured, please follow the below steps:
- Login to your AWS console.
- Navigate to the AWS Config service.
- Click on the “Settings” button in the left navigation pane.
- Scroll down to the “Amazon S3 Bucket” section and click on the “Edit” button.
- Select the S3 bucket that you want to use for storing AWS Config data.
- If you do not have an S3 bucket, create a new one by clicking on the “Create a new S3 bucket” button.
- Enter a unique name for the bucket and select the region where you want to create it.
- Click on the “Create bucket” button to create the S3 bucket.
- After selecting the S3 bucket, click on the “Save” button to save the changes.
Using CLI
Using CLI
To remediate this misconfiguration in AWS using AWS CLI, you can follow the below steps:Note: Replace Note: Replace After following these steps, AWS Config will be properly configured to monitor and record changes to your AWS resources.
- First, you need to install and configure the AWS CLI on your local machine.
- Once the AWS CLI is installed, you need to run the following command to enable AWS Config in your AWS account:
- After enabling AWS Config, you need to create an S3 bucket to store the AWS Config snapshots. You can use the following command to create an S3 bucket:
<bucket-name> and <region-name> with your desired values.- Once the S3 bucket is created, you need to configure AWS Config to use this bucket. You can use the following command to configure AWS Config:
<bucket-name> with the name of the S3 bucket you created in step 3.- Finally, you need to start the AWS Config recorder by running the following command:
Using Python
Using Python
To remediate the misconfiguration of AWS Config not having S3 bucket configured, you can follow these steps using Python:
- Create an S3 bucket in the desired region where you want to store the AWS Config data. You can use the following Python code to create an S3 bucket:
- Once the S3 bucket is created, you can configure AWS Config to use this S3 bucket as the delivery channel for the configuration data. You can use the following Python code to configure AWS Config:
- Verify that the AWS Config is properly configured by checking the AWS Config dashboard. You should see the S3 bucket as the delivery channel for the configuration data.
Using Terraform
Using Terraform
terraform plan should show that aws_config_delivery_channel.main will have s3_bucket_name set to AWS_CONFIG_BUCKET_NAME (and create/update the S3 bucket and its policy if they do not already match).
