GCPBucketBrute is a script to enumerate Google Storage buckets, determine what access you have to them, and determine if they can be privilege escalated.
TL;DR Summary
Requirements
Installation
$ git clone https://github.com/RhinoSecurityLabs/GCPBucketBrute.git
$ cd GCPBucketBrute/
$ pip3 install -r requirements.txt or python3 -m pip install -r requirements.txt
Usage
First, determine the type of authentication you want to use for enumeration between a user account, service account, or unauthenticated. If you are using a service account, provide the file path to the private key via the -f
/--service-account-credential-file-path
argument.
If you are using a user account, don’t provide an authentication argument. You will then be prompted to enter the access token of your user account for accessing the GCP APIs. If you want to scan completely unauthenticated, pass the -u
/--unauthenticated
argument to hide authentication prompts.
python3 gcpbucketbrute.py -k test -u
python3 gcpbucketbrute.py -k test -f ../sa-priv-key.pem -o ./out.txt
python3 gcpbucketbrute.py -k test -s 10
Available Arguments
-k
/--keyword
--check
-k
/--keyword
and accepts a single string. It allows you to check your permissions on a particular bucket, rather than generating a list of permutations based on a keyword. This may be repeated to check several buckets. Credit: @BBerastegui --check-list
-k
/--keyword
and --check
. It allows you to check permissions of a list of buckets in a file. They should be listed one-per-line in a text file. To read from standard input, pass -
as the filename. -s
/--subprocesses
-f
/--service-account-credential-file-path
-u
/--unauthenticated
-o
/--out-file
Pingora is a cutting-edge Rust framework designed to build fast, reliable, and programmable networked systems.…
DockerSpy is a powerful tool designed to perform Open Source Intelligence (OSINT) on Docker Hub,…
Anki is a powerful, open-source flashcard software designed to enhance learning and memory retention through…
Rolldown is an innovative JavaScript/TypeScript bundler written in Rust, designed to revolutionize the development workflow…
Invoke-ArgFuscator is an open-source, cross-platform PowerShell module designed to obfuscate command-line arguments for system-native executables.…
Morgan is an advanced JavaScript security analyzer designed to detect and mitigate sensitive data exposure…