More Info:

Ensure that cloud Storage buckets do not allow All Users to Write (“allUsers” must not have “WRITER” roles)

Risk Level

High

Address

Security

Compliance Standards

NIST

Triage and Remediation

Remediation

Sure, here are the step-by-step instructions to remediate the misconfiguration “Buckets Should Not Allow All Users to Write” for GCP using GCP console:

  1. Open the GCP console and go to the Cloud Storage page.
  2. Click on the name of the bucket that you want to remediate.
  3. Click on the “Edit bucket permissions” button at the top of the page.
  4. Scroll down to the “Add members” section and click on the “Select a role” dropdown menu.
  5. Choose the “Storage Object Creator” role from the list of options.
  6. In the “New members” field, enter the email addresses of the users or groups that you want to grant write access to.
  7. Click on the “Add” button to add the selected users or groups to the “Members” list.
  8. In the “Members” list, select the new members that you just added and click on the “Edit” button.
  9. In the “Edit members” dialog box, select the “Storage Object Creator” role from the “Role” dropdown menu.
  10. Click on the “Save” button to save the changes.
  11. Repeat steps 6-10 for each user or group that needs write access to the bucket.
  12. Click on the “Save” button at the bottom of the page to save the changes.

By following these steps, you have successfully remediated the misconfiguration “Buckets Should Not Allow All Users to Write” for GCP using GCP console.