GCP Penetration Testing Training

Pwned Labs
  • July 17, 2026

GCP penetration testing depends on Google Cloud's own model: a resource hierarchy where IAM bindings inherit downward, and service accounts as the main non-human identity. Effective training teaches service account impersonation, IAM escalation, Cloud Build and CI/CD abuse, GKE attacks and the Google Workspace to GCP boundary rather than ported AWS or Azure patterns. Pwned Labs teaches these attacks hands-on in live Google Cloud projects, through Academy labs and the Google Cloud Attack and Defense bootcamp that leads to the GCRTP certification.

Google Cloud Platform is the least-covered major cloud provider in offensive security training, which creates both a skills gap and an opportunity. GCP's security model differs from AWS and Azure in fundamental ways, resource hierarchy (organizations → folders → projects), IAM binding inheritance, and the pervasive use of service accounts as the primary non-human identity mechanism. Applying AWS or Azure attack patterns to GCP without understanding these differences leads to missed findings and incomplete assessments.

GCP's attack surface has been publicly demonstrated by researchers and threat actors alike. The Cloud Build privilege escalation (where the default Cloud Build service account could modify its own IAM bindings) represented a systemic design flaw. Google Workspace compromise through service account domain-wide delegation continues to be a high-impact finding on real engagements. These are GCP-specific issues that require GCP-specific training.

Key Takeaway: GCP security depends on its own model, a resource hierarchy, IAM binding inheritance, and pervasive service accounts, so effective GCP penetration testing training teaches Google Cloud-specific attack paths instead of porting AWS or Azure patterns that miss real findings.


GCP Attack Techniques Covered

Pwned Labs teaches these Google Cloud and Google Workspace attack techniques hands-on in live GCP projects, through Academy labs and the Google Cloud Attack and Defense bootcamp that leads to the GCRTP certification.

GCP IAM Exploitation

GCP IAM operates on a resource hierarchy where bindings cascade downward, a role granted at the organization level applies to every project beneath it. Key attack techniques include:

  • Service account impersonation, using iam.serviceAccounts.getAccessToken or iam.serviceAccounts.signBlob to generate tokens for higher-privilege service accounts
  • IAM policy enumeration, identifying overly permissive bindings at project, folder, or organization level using getIamPolicy
  • Custom role abuse, finding custom roles with dangerous permission combinations that don't exist in predefined roles
  • Domain-wide delegation exploitation, service accounts with domain-wide delegation in Google Workspace can impersonate any user, accessing their Gmail, Drive, and Calendar
  • Cross-project service account access, exploiting trust relationships where Project A's workloads can assume service accounts in Project B

Cloud Build Privilege Escalation

Cloud Build is one of the most powerful attack vectors in GCP. The default Cloud Build service account has extensive permissions including the ability to:

  • Read and write to all Cloud Storage buckets in the project
  • Push and pull container images from Container Registry / Artifact Registry
  • Deploy to Cloud Functions, Cloud Run, and App Engine
  • Access secrets from Secret Manager (if configured)

Compromising a Cloud Build trigger, through a poisoned repository, malicious pull request, or CI/CD configuration injection, provides access to all of these capabilities. Build steps execute arbitrary code with the service account's permissions, making Cloud Build a lateral movement goldmine. Google changed the default in 2024, so new projects now use the Compute Engine default service account rather than the broad legacy Cloud Build service account, but many existing projects still run with the legacy default.

GKE Container Attacks

Google Kubernetes Engine deployments expose both Kubernetes-native and GCP-specific attack surfaces:

  • Workload Identity abuse, mapping between Kubernetes service accounts and GCP service accounts creates escalation paths
  • Metadata server access, GKE nodes expose the GCP metadata endpoint (169.254.169.254) to pods by default unless Workload Identity or metadata concealment is configured
  • RBAC misconfiguration, overly permissive ClusterRoleBindings that grant pod-to-pod or pod-to-API-server access
  • Container escape, breaking out of a compromised pod to the underlying GKE node and accessing its service account credentials

BigQuery Data Exfiltration

BigQuery datasets often contain the most valuable data in a GCP environment, analytics data, user records, financial information, and machine learning training data. Attack techniques include:

  • Enumerating BigQuery datasets across all accessible projects
  • Exploiting overly permissive dataset-level or table-level IAM bindings
  • Using BigQuery's data transfer service to exfiltrate data to attacker-controlled projects
  • Accessing BigQuery through compromised service accounts with bigquery.tables.getData permission

Cloud Functions and Cloud Run Abuse

GCP's serverless compute platforms present attack opportunities similar to AWS Lambda but with GCP-specific characteristics:

  • HTTP-triggered functions with missing or misconfigured authentication (allUsers invoker binding)
  • Environment variable and Secret Manager access from function execution context
  • Service account credential extraction from the metadata service within function containers
  • Cloud Run container image inspection for embedded secrets and misconfigurations

Google Workspace Integration Attacks

The boundary between GCP and Google Workspace is porous. Service accounts with domain-wide delegation can access any user's Gmail, Drive, Calendar, and Admin SDK. Compromising a Workspace admin account provides access to the GCP organization through Workspace-GCP identity federation. This cross-product attack surface is unique to Google's ecosystem.


The GCRTP Bootcamp

The Google Cloud Red Team Professional (GCRTP) bootcamp at Pwned Labs focuses specifically on GCP offensive security. Labs run on real GCP projects with real services, not emulated environments.

Curriculum covers:

  • GCP IAM exploitation and service account abuse
  • Cloud Build privilege escalation and CI/CD pipeline attacks
  • GKE container security and Kubernetes attack chains
  • BigQuery data access and exfiltration techniques
  • Google Workspace compromise through domain-wide delegation
  • Cloud Functions and Cloud Run exploitation
  • Detection and monitoring with Cloud Audit Logs and Security Command Center

Tools used include the gcloud CLI for direct API interaction, ScoutSuite and Prowler for multi-cloud configuration assessment, and Pwned Labs' own open-source tooling built for GCP-specific attack paths that generic scanners miss, including google-workspace-enum for Google Workspace enumeration and google-spray for password spraying against Google identities.

The GCRTP certification exam tests practical execution: a multi-stage attack against a live GCP environment covering initial access through data exfiltration, with detection engineering recommendations.


Why GCP-Specific Training Is Critical

Most cloud security training either ignores GCP entirely or covers it as an afterthought. This creates a dangerous skills gap: organizations running production workloads on GCP are being assessed by practitioners trained exclusively on AWS or Azure. GCP's resource hierarchy, IAM model, and service architecture are different enough that AWS/Azure skills don't transfer cleanly.

The Pwned Labs GCRTP bootcamp fills this gap with practitioner-focused, hands-on training built for the GCP attack surface as it actually exists.

Practice this at Pwned Labs

Pwned Labs runs these Google Cloud techniques as hands-on labs in live GCP projects. The first two labs below are free.

Frequently asked questions

What is GCP penetration testing?

GCP penetration testing assesses a Google Cloud environment the way an attacker would, focusing on service account impersonation, IAM binding inheritance across the resource hierarchy, Cloud Build and CI/CD abuse, GKE attacks, and the boundary between Google Workspace identity and GCP resources.

How is GCP penetration testing different from AWS or Azure?

Google Cloud uses a resource hierarchy where IAM bindings inherit from organization to folder to project, and service accounts are the primary non-human identity, so impersonation and OAuth scope abuse matter more than in AWS or Azure. Applying AWS or Azure attack patterns directly misses GCP-specific findings.

How do I learn GCP penetration testing hands-on?

Attack a real project end to end. Pwned Labs runs GCP labs in live Google Cloud projects, from free Academy labs such as Reveal Hidden Files in Google Storage through to the Google Cloud Attack and Defense bootcamp.

Which certification covers GCP penetration testing?

The Google Cloud Red Team Professional (GCRTP) certification from Pwned Labs is assessed hands-on in a live Google Cloud environment, covering service account abuse, IAM escalation, OAuth scope attacks and the Workspace to GCP boundary. There is no multiple choice section.

What tools does GCP penetration testing use?

Common tools include the gcloud CLI for direct API interaction, ScoutSuite and Prowler for configuration assessment, and the Pwned Labs open-source tools google-workspace-enum and google-spray for Google identity enumeration and password spraying.

About Pwned Labs

Pwned Labs is a hands-on cloud and AI offensive security training platform. It runs real-world attack labs and bootcamps for AWS, Azure, GCP, Kubernetes and AI systems, including the ACRTP, MCRTP, GCRTP, KRTP and AISRTP certifications. Free labs are at pwnedlabs.io/explore.

Related Articles

Meet your ACRTP Bootcamp instructor: Tyler Petty

May 20, 2025
Tyler Petty leads the Amazon Cloud Attack and Defense bootcamp at Pwned Labs, the program that leads to the ACRTP...

GCP Pentesting 101

July 17, 2026
This Pwned Labs guide walks through what you need to get started with Google Cloud security, with a focus on...

Cloud Pentesting Certification: AWS, Azure & GCP

July 17, 2026
A cloud pentesting certification proves you can attack real AWS, Azure or Google Cloud environments, and the most...