Google Cloud projects multiply quietly. A team creates one for a prototype, another for a data pipeline, and a year later nobody is sure which still matter or who can reach them. The CIS Google Cloud Platform Foundation Benchmark gives you a consistent baseline to check every one of them against.
This checklist covers 28 checks drawn from it, grouped by service, with the API call that answers each one. Version 4.0.0 is the latest in NIST's checklist program.
Access you need: a service account with roles/viewer and roles/iam.securityReviewer at the organization level. Then list every active project with the Cloud Resource Manager API and run the checks in each.
1. Identity and access management
| Check | How to test it |
|---|---|
| Only corporate identities hold roles (no @gmail.com members) | projects.getIamPolicy: look for user:*@gmail.com members |
| No role is granted to allUsers or allAuthenticatedUsers | Same policy: public members |
| Service accounts don't hold Owner, Editor or *Admin roles | serviceAccount: members with broad roles |
| Service Account User / Token Creator are not granted project-wide | Bindings for roles/iam.serviceAccountUser and serviceAccountTokenCreator at project level |
| No user-managed service-account keys, or keys under 90 days old | iam.serviceAccounts.keys.list?keyTypes=USER_MANAGED, validAfterTime |
Downloaded service-account keys are the GCP equivalent of long-lived AWS access keys: they end up in laptops and CI logs. Prefer Workload Identity Federation or attached service accounts.
2. Logging and monitoring
- Data Access audit logs (DATA_READ and DATA_WRITE) are enabled for
allServicesin the project's audit config. - A log sink exports all entries (an empty filter) to Cloud Storage, BigQuery or Pub/Sub, ideally at organization level, so logs survive a deleted project.
- Log-based metrics and alerts exist for project ownership changes, audit configuration changes, custom role changes, firewall, route and VPC network changes, Cloud Storage IAM changes and Cloud SQL configuration changes.
3. Networking
- The default network is deleted. It comes with permissive firewall rules, including SSH and RDP open to the internet.
- No legacy networks exist.
- No firewall rule allows SSH (22) or RDP (3389) from 0.0.0.0/0. Restrict to IAP's range (35.235.240.0/20) and use IAP TCP forwarding.
- No firewall rule exposes database ports to the internet.
- VPC Flow Logs are on for every subnet.
4. Compute Engine
- VMs don't run as the default compute service account with the full cloud-platform scope; that gives any process on the VM editor-level access to the project.
- OS Login is enabled for the project, or VMs block project-wide SSH keys.
- Serial port access is disabled and IP forwarding is off unless the VM is a router.
- Shielded VM (Secure Boot, vTPM and integrity monitoring) is on.
GKE-managed nodes are configured by GKE, so a good scanner skips them rather than reporting noise.
5. Cloud Storage, Cloud SQL and BigQuery
- No bucket is public (no allUsers or allAuthenticatedUsers in the bucket IAM policy) and uniform bucket-level access is on.
- Cloud SQL instances don't authorise 0.0.0.0/0, require SSL/TLS, have automated backups and, where possible, use private IP only.
- No BigQuery dataset grants access to allUsers or allAuthenticatedUsers.
What to fix first
- Remove allUsers bindings on projects, buckets and datasets.
- Delete the default network, or at least its SSH and RDP rules.
- Remove @gmail.com members and broad roles on service accounts.
- Delete unused service-account keys and rotate the rest.
- Turn on Data Access logs and an organization-level log sink.
Running the checks continuously
Argyx runs these 28 checks across every project the service account can see, alongside Security Command Center findings when SCC is enabled. An API that is turned off in a project (for example Cloud SQL) counts as nothing to check rather than an error. Each check shows pass or fail with the affected resources and the fix. See cloud security posture, or the checklists for AWS and Azure.