More Info:

The Amazon S3 buckets associated with your CloudTrail trails should have Object Lock feature enabled in order to prevent the objects they store (i.e. trail log files) from being deleted and meet regulatory compliance.

Risk Level

Medium

Address

Security

Compliance Standards

CBP

Triage and Remediation

Remediation

To remediate the “Object Lock Feature Should Be Enabled” misconfiguration in AWS, you can follow the below steps:

  1. Login to the AWS console.
  2. Go to the S3 service.
  3. Select the bucket for which you want to enable Object Lock feature.
  4. Click on the “Properties” tab.
  5. Scroll down to the “Object Lock” section.
  6. Click on the “Edit” button.
  7. Select the “Enable object lock” radio button.
  8. Choose the “Retention period” as per your requirement. You can choose either “Governance” or “Compliance” mode.
  9. Click on the “Save” button.

Once you have completed the above steps, the Object Lock feature will be enabled for the selected S3 bucket.

Additional Reading: