Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 1.63 KB

bucket-logging.md

File metadata and controls

25 lines (20 loc) · 1.63 KB

CloudSploit

GOOGLE / Storage / Bucket Logging

Quick Info

Plugin Title Bucket Logging
Cloud GOOGLE
Category Storage
Description Ensures object logging is enabled on storage buckets
More Info Storage bucket logging helps maintain an audit trail of access that can be used in the event of a security incident.
GOOGLE Link https://cloud.google.com/storage/docs/access-logs
Recommended Action Bucket Logging can only be enabled by using the Command Line Interface and the log bucket must already be created. Use this command to enable Logging: gsutil logging set on -b gs://[LOG_BUCKET_NAME] -o AccessLog gs://[BUCKET_NAME]

Detailed Remediation Steps

  1. Log into the Google Cloud Platform Console.
  2. Scroll down the left navigation panel and choose "Cloud Storage" to select the "Buckets" option.
  3. On the "Buckets" page, create the log bucket if you dont have one.
  4. Click on the 'cloud shell' icon on the top left of navigation bar ,as bucket logging can only be enabled by using the Command Line Interface.
  5. Enter the command gsutil logging set on -b gs://[LOG_BUCKET_NAME] -o AccessLog gs://[BUCKET_NAME]
  6. Repeat steps number 4-5 to enable logging to all other buckets in the project.