![Alt Text](https://github.com/zricethezav/gifs/blob/master/gitleaks1.png) [![Build Status](https://travis-ci.org/zricethezav/gitleaks.svg?branch=master)](https://travis-ci.org/zricethezav/gitleaks) ## Audit git repos for secrets and keys #### Installing ```bash go get -u github.com/zricethezav/gitleaks ``` #### Usage and Explanation ![Alt Text](https://github.com/zricethezav/gifs/blob/master/gitleaks.gif) ```bash ./gitleaks [options] ``` Gitleaks audits local and remote repos by running regex checks against all commits. #### Options ``` usage: gitleaks [options] / Options: Modes -u --user Git user mode -r --repo Git repo mode -o --org Git organization mode -l --local Local mode, gitleaks will look for local repo in Logging --log= 0: Debug, 1: Info, 3: Error -v --verbose Verbose mode, will output leaks as gitleaks finds them Locations --report_path= Report output, default $GITLEAKS_HOME/report --clone_path= Gitleaks will clone repos here, default $GITLEAKS_HOME/clones Other -t --temp Clone to temporary directory --concurrency= Upper bound on concurrent diffs --since= Commit to stop at --b64Entropy= Base64 entropy cutoff (default is 70) --hexEntropy= Hex entropy cutoff (default is 40) -e --entropy Enable entropy -h --help Display this message --token= Github API token --stopwords Enables stopwords ``` ### If you find a valid leak in a repo Please read the [Github article on removing sensitive data from a repository](https://help.github.com/articles/removing-sensitive-data-from-a-repository/) to remove the sensitive information from your history. ### Run me with docker Simply run `docker run --rm --name=gitleaks zricethezav/gitleaks https://github.com/zricethezav/gitleaks` Or build the image yourself to get the latest version : ``` docker build -t gitleaks . docker run --rm --name=gitleaks gitleaks https://github.com/zricethezav/gitleaks ``` ### cypherphunky BTC: 1H2rSXDJZxWcTk2Ugr5P9r9m93m2NhL4xj BCH: qp4mdaef04g5d0xpgecx78fmruk6vgl4pgqtetrl9h ETH: 0xe48b4Fce6A1C1a9C780376032895b06b1709AddF LTC: LRhDzMyGos5CtZMoSTEx5rdLksPUwSrtuz s/o to @jlakowski for the gimp skillz