Google Cloud Platform (GCP)
Publicly Accessible Cloud Storage Bucket
Severity: High
What it means
A Google Cloud Storage bucket is accessible to the public internet. Anyone with the URL can download the files. This is a common source of data leaks.
How to fix
Go to Google Cloud Console >
Cloud Storage>Buckets.Select the bucket.
Go to the
Permissionstab.Remove any entries for
allUsersorallAuthenticatedUsers.To prevent future public access: go to the bucket's
Settingsand enablePrevent public access.
IAM Primitive Roles in Use
Severity: Medium
What it means
Someone in your GCP organization is using primitive roles (Owner, Editor, or Viewer). These are very broad: "Editor" for example grants write access to almost everything in the project. Google recommends using predefined roles instead, which give only the specific permissions needed.
How to fix
Go to Google Cloud Console >
IAM & Admin>IAM.Identify users/service accounts with
Owner,Editor, orViewerroles.Replace them with more specific predefined roles (e.g.,
roles/storage.admininstead ofEditor).Use the IAM Recommender to get suggestions for right-sizing permissions.
Cloud SQL Public Access
Severity: High
What it means
Your Cloud SQL database instance allows connections from any IP address on the internet (0.0.0.0/0). This exposes the database to brute-force attacks and exploitation of any vulnerabilities.
How to fix
Go to Google Cloud Console >
SQL> select your instance.Go to
Connections>Networking.Under
Authorized networks, remove0.0.0.0/0or any overly broad CIDR range.Add only the specific IP addresses that need access.
Better yet, use Cloud SQL Auth Proxy or Private IP to connect securely without exposing the instance publicly.
Last updated
Was this helpful?

