Skip to content

Latest commit

 

History

History
27 lines (23 loc) · 2.53 KB

cloudfront-logging-enabled.md

File metadata and controls

27 lines (23 loc) · 2.53 KB

CloudSploit

AWS / CloudFront / CloudFront Logging Enabled

Quick Info

Plugin Title CloudFront Logging Enabled
Cloud AWS
Category CloudFront
Description Ensures CloudFront distributions have request logging enabled.
More Info Logging requests to CloudFront distributions is a helpful way of detecting and investigating potential attacks, malicious activity, or misuse of backend resources. Logs can be sent to S3 and processed for further analysis.
AWS Link http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/AccessLogs.html
Recommended Action Enable CloudFront request logging.

Detailed Remediation Steps

  1. Log in to the AWS Management Console.
  2. Select the "Services" option and search for CloudFront.
  3. Select the "CloudFront Distribution" that needs to be verified.
  4. Click on the selected Distribution to get into the CloudFront Distribution configuration page.
  5. In the "General" tab scroll down to settings and verify the "Standard logging" feature configuration status. If Logging is "Off" then it cannot create log files that contain detailed information about every user request that CloudFront receives.
  6. To change the status click on "Edit" to get to the "Edit Settings" page. Scroll down to "Standard Logging" and select the "On" option to initiate the Logging feature of CloudFront to log all viewer requests for files in your distribution.
  7. Click on "Bucket for Logs" feature and specify the Amazon S3 bucket in which you want CloudFront to save web access logs.
  8. Click on Log Prefix which is optional for the names of log files.
  9. Scroll down and click on "Save changes" to save the new settings.
  10. Repeat the steps number 3 to 9 to verify if any other "CloudFront Distribution" has Logging enabled or not.