More Info:

The origin access identity feature should be enabled for all your AWS Cloudfront CDN distributions that utilize an S3 bucket as an origin in order to restrict any direct access to your objects through Amazon S3 URLs.

Risk Level

Medium

Address

Security

Compliance Standards

CBP

Triage and Remediation

Remediation

Sure, here are the steps to remediate the misconfiguration “Origin Access Identity should be enabled for CloudFront distributions” in AWS using AWS console:

  1. Log in to the AWS Management Console.
  2. Navigate to the CloudFront service.
  3. Select the distribution for which you want to enable Origin Access Identity.
  4. Click on the “Behaviors” tab.
  5. Select the behavior for which you want to enable Origin Access Identity.
  6. Click on the “Edit” button.
  7. In the “Origin Settings” section, select “Yes” for “Restrict Bucket Access”.
  8. Select “Create a New Identity” under “Origin Access Identity”.
  9. Provide a name for the new identity and click on the “Create” button.
  10. Click on the “Yes, Edit” button to save the changes.

By following these steps, you have successfully enabled Origin Access Identity for the CloudFront distribution and remediated the misconfiguration.

Additional Reading: