Skip to content

Find API keys in your code. 🔑

License

Notifications You must be signed in to change notification settings

stefansundin/secrets-scanner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

secrets-scanner

Find API tokens and other secrets in your code.

Example: Search Git history including commit messages:

$ git clone https://github.com/stefansundin/secrets-scanner.git
$ cd secrets-scanner
$ go build
$ git log -p | ./secrets-scanner
Found Redis URLs:
- 'redis:https://h:[email protected]:11141'

Use -test to test the found keys automatically. Not supported for all services.

$ git log -p | ./secrets-scanner -test
Found Redis URLs:
- 'redis:https://h:[email protected]:11141'
Connection failed: dial tcp 93.184.216.34:11141: i/o timeout

Supported

  • AWS Access Key ID
  • Google Access Token
  • Google API key
  • Slack xoxp and xoxb tokens
  • Redis URLs
  • Gemfury URLs