More Info:

List all the buckets that have website configuration (this is an informational rule only)

Risk Level

Informational

Address

Operational Maturity, Security

Compliance Standards

CBP

Triage and Remediation

Remediation

To list all buckets which have write configuration in GCP, you can follow these steps:

  1. Open the GCP Console and navigate to the Cloud Storage page.
  2. In the left navigation pane, click on “Storage”.
  3. Click on the “Buckets” tab.
  4. In the “Filter Buckets” search box, type “bindings:writer” and press Enter.
  5. This will list all the buckets with write configuration.

To remediate this misconfiguration in GCP, you can follow these steps:

  1. Open the GCP Console and navigate to the Cloud Storage page.
  2. In the left navigation pane, click on “Storage”.
  3. Click on the bucket that has write configuration.
  4. Click on the “Permissions” tab.
  5. In the “Add members” field, enter the email address of the user or service account that you want to grant access to.
  6. Select the appropriate role for the user or service account from the “Select a role” drop-down menu.
  7. Click the “Add” button to grant the user or service account access to the bucket.
  8. Remove any unnecessary write permissions from the bucket by clicking the “Edit” button next to the relevant member and selecting the appropriate role from the “Select a role” drop-down menu.
  9. Click the “Save” button to save the changes.

Repeat these steps for all the buckets that have write configuration.