● Talk to a security engineer: +92 323 8295031info@protonyte.com  ·  PCSF batch enrolling now

Google Cloud security assessment: service accounts and what they inherit

Google Cloud concentrates its risk in two places that do not look dangerous on a diagram. Service accounts accumulate keys that never expire and permissions nobody revokes. And the resource hierarchy means a role granted once at the organization or folder level is inherited by every project underneath it, for ever, usually without anybody remembering that it was.

your account CIS benchmark

ENGAGEMENT SCOPEtypical 1 - 2 week review

IAM bindings across the hierarchyIN SCOPE
Service accounts, keys and impersonationIN SCOPE
Cloud Storage and BigQuery exposureIN SCOPE
VPC, firewall rules and Private Google AccessIN SCOPE
GKE, Cloud Run and Cloud Functions identitiesIN SCOPE
Attack simulation from a footholdOPTIONAL
// the basics

Inheritance is the thing people miss

A grant made at the organization node applies to every folder and every project beneath it, including the ones created after the grant. That is useful, and it means a reviewer who looks only at project-level bindings will report a clean result on a project where a contractor still holds editor through a folder nobody checks.

The second concentration is service accounts. They are easy to create, they are handed keys that do not expire, those keys end up in repositories and build systems, and the account itself can often be impersonated by somebody who should only be able to use it. Reviewing them properly is most of the value of this engagement.

  • 01The whole hierarchyOrganization, folders and projects, because a project-only review reports a clean result that is not true.
  • 02Service accounts taken seriouslyKeys, age, impersonation rights and what each one can actually reach.
  • 03Measured against CISA benchmark score you can hand to an auditor.
  • 04Data services includedBigQuery and Cloud Storage access, which is where the information people care about actually lives.
// coverage

What we go through

Structured on the CIS Google Cloud Platform Foundation Benchmark, with the identity work taken further than the benchmark asks.

// the hierarchy

IAM

Who holds what, and at which level it was granted.

  • Bindings at organization, folder and project
  • Primitive roles still in use
  • Custom roles with excessive permissions
  • External and unmanaged identities
// the accounts

Service accounts

The single most productive area in most GCP estates.

  • Key age, count and location
  • Impersonation and token creation rights
  • Default service accounts with broad scope
  • Workload Identity Federation setup
// the data

Storage and analytics

What is reachable and by whom.

  • Bucket IAM and uniform access
  • Public and allUsers bindings
  • BigQuery dataset and table access
  • Secrets in metadata and build configs
// the edges

Network

What is exposed and what can get out.

  • Firewall rules and default-allow leftovers
  • Public IPs on compute and databases
  • VPC peering and shared VPC
  • Private Google Access and egress
// the workloads

Compute and containers

What a compromised workload can reach.

  • GKE RBAC, Workload Identity and node access
  • Cloud Run and Functions service accounts
  • Metadata server access from workloads
  • Artifact Registry permissions
// the record

Logging and detection

Whether you would know afterwards.

  • Audit log types enabled by service
  • Log sinks, retention and tamper protection
  • Security Command Center coverage
  • Alerting on key IAM events
// methodology

How the work runs

  1. 1

    Read-only access

    Viewer and Security Reviewer at the organization node is enough to start.

    • Organization or folder level viewer
    • Security Reviewer role
    • Written authorisation
    • A contact for questions
  2. 2

    Inventory

    The whole hierarchy, not a project.

    • Organization, folders and projects
    • Every identity and binding
    • Service accounts and their keys
    • Public exposure across the estate
  3. 3

    Measure

    Against the benchmark, so there is a number.

    • CIS GCP Foundation controls
    • Pass, fail or not applicable, with evidence
    • Severity against your actual usage
    • False positives removed by hand
  4. 4

    Find the paths

    From each identity to what it can reach.

    • Impersonation chains between accounts
    • Inherited grants nobody expected
    • Workload to data paths
    • Cross-project movement
  5. 5

    Report and retest

    Fixes ordered by how many paths they close, and a free retest.

    • Benchmark result and gap list
    • Attack paths with evidence
    • Remediation written for Terraform or gcloud
    • Retest and closure summary
// the deliverable

What you are left holding

Two documents and a conversation. Written so the person who signs the invoice and the person who writes the fix can both use them.

  • Executive summary in plain language, with the business risk first
  • Technical findings with the evidence that proves each one
  • CVSS score and a risk rating that reflects your business, not a template
  • Remediation written for the stack you actually run
  • A free retest, and a closure summary you can hand to a customer
  • A debrief call with the tester who did the work, not an account manager
Ask for a sample report
// the standards

Measured against something

The work follows CIS Google Cloud Platform Foundation Benchmark, MITRE ATT&CK for Cloud and NIST SP 800-115, so the coverage can be checked rather than taken on trust, and the report maps to what your auditor or your enterprise customer already recognises.

This page is one part of our cloud security service. Where a finding needs a different kind of engagement to answer properly, we say so in the report rather than selling you the test we happen to be running.

// faq

Common questions

What access do you need?

Viewer and Security Reviewer, granted at the organization node rather than per project - a project-scoped review will report a clean result on a project where somebody holds editor through an inherited folder grant.

Why do you make so much of service accounts?

Because the published telemetry keeps saying so: a large share of Google Cloud service accounts hold an active key more than a year old. Keys that do not expire end up in repositories and build systems, and the account they belong to usually has more permission than its job needs.

Do we need permission from Google?

For penetration testing of your own projects, Google does not require prior approval, and asks that testing stays within its acceptable use and terms of service. We check the current position during scoping and keep the work inside it.

Does this cover Google Workspace?

No. Workspace is a separate administrative domain with its own controls, and we will say that during scoping rather than leaving you to discover it in the report. The link between the two - identities and domain-wide delegation - is in scope.

Is this the same as cloud penetration testing?

No. This measures the whole estate against a benchmark. Cloud penetration testing starts from one foothold and shows what can be reached with it.

// also under cloud securityAWSAzureKubernetesAll cloud security
// start here

Let's protect your business together.

Tell us what you need tested. Our team will reply with a clear scope and quote.

By submitting, you agree to our Terms of Use and Privacy Statement.