mcpField
P
performing-gcp-penetration-testing-with-gcpbucketbrute

performing-gcp-penetration-testing-with-gcpbucketbrute

github.com/mukul975Security35.2k54 installsUpdated 8w ago
Repository

About performing-gcp-penetration-testing-with-gcpbucketbrute

A penetration-testing skill for GCP security assessors. It uses GCPBucketBrute to enumerate storage buckets and gcloud CLI to inspect IAM permissions and privilege escalation paths, producing risk-rated findings and remediation recommendations.

Key features

  1. 01Enumerate GCP storage buckets
  2. 02Test bucket read, write, and admin permissions
  3. 03Audit project-level IAM bindings
  4. 04Check service account keys and impersonation
  5. 05Analyze escalation paths and report risks

Use cases

  1. 01Assess bucket exposure in a GCP project
  2. 02Find overly permissive IAM role bindings
  3. 03Review risks from service account keys
  4. 04Compile risk-rated security assessment findings

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/mukul975/anthropic-cybersecurity-skills --skill performing-gcp-penetration-testing-with-gcpbucketbrute

After installing, type/performing-gcp-penetration-testing-with-gcpbucketbrutein Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

LICENSE
references/
api-reference.md
scripts/
agent.py

Details

From the project README

Performing GCP Penetration Testing with GCPBucketBrute

Overview

This skill covers Google Cloud Platform security testing using GCPBucketBrute for storage bucket enumeration and access permission testing, combined with gcloud CLI IAM enumeration to identify privilege escalation paths. The approach tests for publicly accessible buckets, overly permissive IAM bindings, and service account key exposure.

When to Use

  • When conducting security assessments that involve performing gcp penetration testing with gcpbucketbrute
  • When following incident response procedures for related security events
  • When performing scheduled security testing or auditing activities
  • When validating security controls through hands-on testing

Prerequisites

  • Python 3.8+ with google-cloud-storage library
  • GCPBucketBrute installed from RhinoSecurityLabs GitHub
  • gcloud CLI authenticated with test credentials
  • Authorized penetration testing scope for target GCP project
  • google-api-python-client and google-auth libraries

Steps

  1. Enumerate Storage Buckets — Use GCPBucketBrute with keyword permutations to discover accessible GCP storage buckets
  2. Test Bucket Permissions — Call TestIamPermissions API on each discovered bucket to determine read/write/admin access levels
  3. Audit IAM Bindings — Enumerate project-level IAM policies to identify overly permissive role bindings
  4. Check Service Account Keys — Identify service accounts with user-managed keys and test for privilege escalation via impersonation
  5. Test Privilege Escalation Paths — Check for iam.serviceAccounts.actAs, setIamPolicy, and other privilege escalation vectors
  6. Generate Findings Report — Produce a structured security assessment with risk severity ratings

Expected Output

  • JSON report of discovered buckets with permission levels
  • IAM privilege escalation path analysis
  • Service account security assessment
  • Risk-scored findings with remediation recommendations

Comments

Markdown supported