APOPS Assurance

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

ScriptGoogle Cloud Security Audit Script (IAM, firewall, logging, storage)
PlatformGoogle Cloud Shell (gcloud)
Audit areaGoogle Cloud
PurposeReviews the security configuration of one Google Cloud project with the viewer and security reviewer roles only, and produces evidence files.
PriceUSD 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
🔒 Unlocks after payment
  • 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

WindowsLinuxmacOSIT asset inventoryComputer Inventory Script (Windows, Linux, macOS)Fills the computer inventory register from the computers themselves, so serial numbers, specs and network details are complete and correct.Windows, Linux, macOSView script →WindowsActive DirectoryActive Directory Audit Script (users, computers, policies, access)Gives an auditor or IT admin the full Active Directory picture in one run: who has access, which accounts are stale or risky, and whether the domain pWindows Server / domain-joined WindowsView script →WindowsWindows endpoints and serversWindows Security Audit Script (users, network, ARP, sign-ins, permissions)Checks one Windows computer or server against common security controls and collects the evidence an IT auditor needs, without changing anything.Windows 10/11, Windows Server 2016+View script →LinuxLinux serversLinux Security Audit Script (users, sudo, SSH, ports, permissions)Checks one Linux server against common hardening controls and collects audit evidence without changing anything.Ubuntu, Debian, RHEL, Rocky, AlmaLinux, CentOS, Amazon LinuxView script →WindowsLinuxFirewallsFirewall Configuration and Rules Audit Script (Windows and Linux)Gives the auditor a complete, dated export of host firewall rules and a list of risky rules to review with the network team.Windows Firewall; Linux ufw, firewalld, nftables, iptablesView script →WindowsLinuxmacOSApplications and databasesDatabase Access Audit Scripts (MySQL, PostgreSQL, SQL Server)Reviews who can reach each database and with what rights, and whether the server settings meet good practice, using SELECT statements only.MySQL/MariaDB, PostgreSQL, Microsoft SQL ServerView script →WindowsLinuxmacOSApplications and databasesWeb Application Security Check Script (Laravel, PHP, JavaScript)Finds the most common, high-impact web application mistakes before an attacker does, without changing code or sending attacks.Laravel, PHP and JavaScript projects (Windows, Linux, macOS)View script →WindowsLinuxmacOSAPIsAPI Security Check Script (safe GET, HEAD and OPTIONS only)Gives a quick, non-intrusive view of an API's exposure before or between penetration tests, without sending data or trying passwords.Any REST or GraphQL API (run from Windows, Linux or macOS)View script →WindowsLinuxmacOSCredential exposureCredential Exposure Scan Script (masked, safe output)Finds secrets stored in plain text so they can be rotated and moved to a secrets manager, without copying the secrets into the audit evidence.Windows, Linux, macOS (folders, code, shared drives)View script →WindowsLinuxCompliance and storageCompliance and Storage Check Script (ISO 27001, GDPR, PCI basics)Turns a set of audit controls into PASS/WARN/FAIL results with the control reference, ready to paste into an audit checklist.Windows 10/11, Windows Server, LinuxView script →WindowsLinuxPerformance improvement (changes settings)Performance Improvement Script (CHANGES SETTINGS, asks before each change)Speeds up slow computers and servers safely, with the user in control of every change and a log for change management.Windows 10/11, Windows Server, LinuxChanges settings · asks first · View script →

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.

Need help to pay?