This rule ensures that S3 buckets have default encryption enabled for better security.
Rule | S3 bucket default encryption should be enabled |
Framework | NIST 800-53 Revision 5 |
Severity | ✔ Low |
Rule Description:
This rule enforces that default encryption is enabled for all Amazon S3 buckets in compliance with the NIST 800-53 Revision 5 security standard. Default encryption ensures that objects stored in the S3 buckets are automatically encrypted using server-side encryption with S3 managed keys (SSE-S3) or AWS Key Management Service (AWS KMS) managed keys (SSE-KMS) when no other encryption options are specified.
Troubleshooting Steps (if default encryption is not enabled):
If default encryption is not enabled for an S3 bucket, follow these troubleshooting steps:
Identify the Bucket: Identify the S3 bucket(s) that do not have default encryption enabled.
Verify Encryption Settings: Check the encryption settings for the identified bucket(s) to determine if default encryption is enabled or if any other encryption options are applied.
Enable Default Encryption: If default encryption is not enabled, proceed to enable it.
Necessary Code:
If you need to enable default encryption for an S3 bucket using AWS CLI, execute the following command:
aws s3api put-bucket-encryption --bucket your-bucket-name --server-side-encryption-configuration '{"Rules":[{"ApplyServerSideEncryptionByDefault":{"SSEAlgorithm":"aws:kms"}}]}'
Replace
your-bucket-name
with the actual name of your S3 bucket.Remediation Steps:
To enable default encryption for an S3 bucket, perform the following steps:
Open the AWS Management Console and navigate to the S3 service.
Select the S3 bucket for which you want to enable default encryption.
Click on the "Properties" tab.
Scroll down to the "Default encryption" section.
Click on the "Edit" button.
Choose either "AES-256" or "AWS Key Management Service (SSE-KMS)" as the default encryption option.
Click on the "Save changes" button to enable default encryption.
Additional Notes: