For AI agents: A markdown version of this page is available at https://docs.datadoghq.com/security/default_rules/def-000-is1.md. A documentation index is available at /llms.txt.

GCS Bucket with public write at risk of malicious hosting

Description

A Google Cloud Storage bucket is publicly accessible and allows public writes. An attacker could use the bucket’s reputation and bandwidth to host malware or other malicious content, or to overwrite existing objects.

Remediation

  1. Update the bucket’s IAM policy to remove public write access (allUsers and allAuthenticatedUsers with write/owner roles). See the official documentation for more information about disabling public access.
  2. Restrict bucket access to the necessary users or service accounts by reviewing IAM policies and bucket-level permissions. For more information, see the official documentation.