Performing gcp penetration testing with gcpbucketbrute
Skill autohandai/community-skills/performing-gcp-penetration-testing-with-gcpbucketbrute
A collection of curated, useful, and safe skills for Autohand Code CLI Agent
npx -y skills add autohandai/community-skills --skill performing-gcp-penetration-testing-with-gcpbucketbruteAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 9 stars9 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Perform GCP security testing using GCPBucketBrute for storage bucket enumeration, gcloud IAM privilege escalation path analysis, and service account permission auditing
The file declares its own license as Apache-2.0. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
2.1 KB, 327 tokens by cl100k_base, as published. Nobody here has run it
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.
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
- Enumerate Storage Buckets — Use GCPBucketBrute with keyword permutations to discover accessible GCP storage buckets
- Test Bucket Permissions — Call TestIamPermissions API on each discovered bucket to determine read/write/admin access levels
- Audit IAM Bindings — Enumerate project-level IAM policies to identify overly permissive role bindings
- Check Service Account Keys — Identify service accounts with user-managed keys and test for privilege escalation via impersonation
- Test Privilege Escalation Paths — Check for iam.serviceAccounts.actAs, setIamPolicy, and other privilege escalation vectors
- 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
What ships with it: 3 files
21.7 KB alongside SKILL.md, 1 of them executable
references/
- api-reference.md2.3 KB
scripts/
- agent.pyruns8.4 KB
- LICENSE11.0 KB