Check if S3 buckets have default encryption enabled to ensure data security and compliance.
Rule | S3 bucket default encryption should be enabled |
Framework | NIST 800-53 Revision 5 |
Severity | ✔ Low |
Rule Description:
The rule requires that the default encryption for S3 buckets in the AWS environment should be enabled, ensuring compliance with the NIST 800-53 Revision 5 security controls. Default encryption ensures that all objects stored in the S3 bucket are automatically encrypted at rest using a specified encryption method.
Troubleshooting Steps:
If the default encryption for S3 buckets is not enabled, you may encounter the following issues:
Required Codes:
There are no specific codes required for enabling default encryption for S3 buckets. This configuration can be accomplished through the AWS Management Console or the AWS Command Line Interface (CLI).
Remediation Steps:
To enable default encryption for S3 buckets in compliance with NIST 800-53 Revision 5, follow the steps below:
1. AWS Management Console:
2. AWS CLI:
aws s3api put-bucket-encryption --bucket <bucket-name> --server-side-encryption-configuration '{"Rules": [{"ApplyServerSideEncryptionByDefault": {"SSEAlgorithm": "AES256"}}]}'
aws s3api put-bucket-encryption --bucket <bucket-name> --server-side-encryption-configuration '{"Rules": [{"ApplyServerSideEncryptionByDefault": {"SSEAlgorithm": "aws:kms", "KMSMasterKeyID": "<KMS-master-key-ID>"}}]}'
Note: Replace
<bucket-name>
with the name of your S3 bucket, and <KMS-master-key-ID>
with the ID of your desired KMS master key.Additional Notes:
Enabling default encryption for S3 buckets ensures that any new objects added to the bucket are automatically encrypted. Keep in mind that enabling default encryption does not apply encryption retroactively to existing objects in the bucket. You may need to manually encrypt existing objects or use AWS services/tools to perform bulk encryption if needed.
Regularly monitor your S3 bucket configurations and review any changes or updates to ensure ongoing compliance with NIST 800-53 and other relevant security standards.