This rule ensures MFA Delete is enabled on S3 buckets for improved security and compliance.
Rule | Ensure MFA Delete is enabled on S3 buckets |
Framework | cis_v140 |
Severity | ✔ Medium |
Rule Description:
MFA (Multi-Factor Authentication) Delete is a security feature provided by Amazon S3 (Simple Storage Service) that adds an extra layer of protection to prevent accidental or unauthorized deletion of objects in S3 buckets. Enabling MFA Delete requires the use of an additional authentication factor, such as a virtual MFA device, to successfully delete objects from an S3 bucket. This helps to mitigate the risk of data loss or unauthorized modifications.
The rule 'cis_v140' ensures that MFA Delete is enabled on all S3 buckets within the AWS environment. By enforcing this rule, you can enhance the security of your S3 buckets and minimize the potential impact of accidental deletions or unauthorized access.
Troubleshooting Steps:
If the MFA Delete feature is not enabled for an S3 bucket, you may encounter the following issues:
To troubleshoot and enable MFA Delete on S3 buckets, follow the steps below.
Enable MFA Delete on S3 Buckets:
Identify the S3 buckets that do not have MFA Delete enabled.
aws s3api get-bucket-versioning --bucket <bucket-name>
Check the current versioning configuration for each bucket.
aws s3api put-bucket-versioning --bucket <bucket-name> --versioning-configuration Status=Enabled
Enable MFA Delete for each bucket that has versioning enabled.
Validate the MFA Delete configuration.
aws s3api get-bucket-versioning --bucket <bucket-name>
"MFADelete" : "Enabled"
Review and repeat the above steps for all S3 buckets without MFA Delete.
By following these steps, you can enable MFA Delete on S3 buckets, helping to maintain a higher level of security and reducing the risk of accidental data loss or unauthorized modifications.
NOTE: Ensure that you have the necessary permissions to implement changes on S3 buckets and configure MFA Delete.