Awesome Open Source
Awesome Open Source

License Python version


GitGot is a semi-automated, feedback-driven tool to empower users to rapidly search through troves of public data on GitHub for sensitive secrets.

How it Works

During search sessions, users will provide feedback to GitGot about search results to ignore, and GitGot prunes the set of results. Users can blacklist files by filename, repository name, username, or a fuzzy match of the file contents.

Blacklists generated from previous sessions can be saved and reused against similar queries (e.g., v.s. v.s. Example Org). Sessions can also be paused and resumed at any time.

Read more about the semi-automated, human-in-the-loop design here:

Install Instructions

Manual Instructions

[1] Install the ssdeep dependency for fuzzy hashing.

Ubuntu/Debian (or equivalent for your distro):

apt-get install libfuzzy-dev ssdeep

or, for Mac OSX:

brew install ssdeep

For Windows or *nix distributions without the ssdeep package, please see the ssdeep installation instructions.

[2] After installing ssdeep, install the Python dependencies using pip:

pip3 install -r requirements.txt

Docker Instructions

Run to build the GitGot docker image (if it doesn't already exist) and execute the dockerized version of the GitGot tool.

On invocation, will create and mount logs and states directories from the host's current working directory. If this is executed from the GitGot project directory it will update the docker container with changes to or checks/:

./ -q

(See for specific docker commands)


GitHub requires a token for rate-limiting purposes. Create a GitHub API token with no permissions/no scope. This will be equivalent to public GitHub access, but it will allow access to use the GitHub Search API. Set this token at the top of as shown below:


(Alternatively, this token can be set as the GITHUB_ACCESS_TOKEN environment variable)

After adding the token, you are ready to go:

# Default RegEx list and logfile location (/logs/<query>.log) are used when no others are specified.

# Query for the string "" using default GitHub search behavior (i.e., tokenization). 
# This will find com.example (e.g., Java) or (Website)
./ -q

# Query self-hosted GitHub instance
./ -q -u

# Query for the exact string "". See Query Syntax in the next section for more details.
./ -q '""'

# Query through GitHub gists
./ --gist -q CompanyName

# Using GitHub advanced search syntax
./ -q "org:github cats"

# Custom RegEx List and custom log files location
./ -q -f checks/default.list -o example1.log

# Recovery from existing session
./ -q -r

# Using an existing session (w/blacklists) for a new query
./ -q "Example Org" -r

Query Syntax

GitGot queries are fed directly into the GitHub code search API, so check out GitHub's documentation for more advanced query syntax.

UI Commands

  • Ignore similar [c]ontent: Blacklists a fuzzy hash of the file contents to ignore future results that are similar to the selected file
  • Ignore [r]epo/[u]ser/[f]ilename: Ignores future results by blacklisting selected strings
  • Search [/(mykeyword)]: Provides a custom regex expression with a capture group to searches on-the-fly (e.g., /(secretToken))
  • [a]dd to Log: Add RegEx matches to log file, including all on-the-fly search results from search command
  • Next[<Enter>], [b]ack: Advances through search results, or returns to previous results
  • [s]ave state: Saves the blacklists and progress in the search results from the session
  • [q]uit: Quit

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
python (46,958
security (1,637
security-tools (338
osint (175
github-api (113
reconnaissance (74
security-scanner (74
recon (72
fuzzy-matching (18

Find Open Source By Browsing 7,000 Topics Across 59 Categories