Google Cloud Security Audit Script (IAM, firewall, logging, storage)
Read-only gcloud script for Cloud Shell that audits a Google Cloud project: IAM bindings, service accounts and key age, VPC firewall rules, VMs, Cloud SQL, audit logs and sinks, public buckets, organisation policies and essential contacts.
Google Cloud Shell (.sh) USD 3.00 for all versions · read-only · 1 hour 30 minutes to download
Pay via M-Pesa, Airtel Money and local mobile money across East Africa, or by Visa / Mastercard. How to pay
| Script | Google Cloud Security Audit Script (IAM, firewall, logging, storage) |
|---|---|
| Platform | Google Cloud Shell (gcloud) |
| Audit area | Google Cloud |
| Purpose | Reviews the security configuration of one Google Cloud project with the viewer and security reviewer roles only, and produces evidence files. |
| Price | USD 3.00, all platform versions |
Prerequisites
- A Google Cloud project ID
- Google Cloud Shell (opens in the browser with gcloud ready), or any computer with the gcloud CLI signed in
- The roles Viewer and Security Reviewer on the project (or organisation)
What the script checks
- IAM bindings: owners, editors, public members (allUsers), personal accounts, service accounts with basic roles
- Service accounts and user-managed key IDs and their age (never the key material)
- Networks, the default network, subnets and flow logs, firewall rules open to 0.0.0.0/0
- VM instances: public IPs, service accounts, scopes, Shielded VM, OS Login
- Cloud SQL: public access, SSL, backups
- Audit log configuration, log sinks, log-based metrics, alert policies
- Storage buckets: location, public access prevention, uniform access, versioning, public members
- Organisation policies, enabled APIs, Security Command Center, essential contacts
- The full script for Google Cloud Shell
- How to open the correct console, and the permissions it needs (least privilege)
- Step-by-step instructions
- The expected output and how to interpret it
Also included in the zip as README-how-to-run.txt. Follow the audit process guide for scope, authorisation and evidence.
Safe by design
- Read-only: installs nothing and changes no settings.
- Sends nothing to our servers; results stay on your computer.
- Secrets are masked and password hashes are never printed.
- Plain text: open it in any editor and check every line before running it.
Also known as: google cloud audit script, gcp security audit, gcloud iam audit, gcp public bucket check, gcp firewall audit, cloud security configuration review, gcp compliance script, service account key audit.
Templates to use with this script
More audit scripts
Questions
Is the google cloud security audit script safe to run?
Yes. It only reads information and writes its results next to itself. It installs nothing, changes no settings and sends nothing to our servers. Secrets it finds are masked, and password hashes are never printed. It is plain text: open it in any editor to check every line before you run it.
How do I get the script?
Click "Get script", pay USD 3.00 through APOPS Pay (M-Pesa, Airtel Money, local mobile money across East Africa, or Visa / Mastercard payment), then download the Google Cloud Shell version. One payment covers every operating system.
How long can I download it?
For 1 hour 30 minutes after payment, as often as you like. You are told this before you pay. Keep the zip: the script itself never expires.
Do I need administrator rights?
The roles Viewer and Security Reviewer on the project (or organisation)
What do I get after paying?
The full script for each platform, how to open the correct console, the permissions it needs, step-by-step instructions, the expected output and how to read the results. They are shown on this page and included as a README in the zip.