https://github.com/stefansundin/secrets-scanner
Find API keys in your code. :key:
https://github.com/stefansundin/secrets-scanner
cli security
Last synced: 7 months ago
JSON representation
Find API keys in your code. :key:
- Host: GitHub
- URL: https://github.com/stefansundin/secrets-scanner
- Owner: stefansundin
- License: gpl-3.0
- Created: 2016-05-22T04:33:24.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2021-08-18T14:58:17.000Z (about 4 years ago)
- Last Synced: 2025-03-16T23:12:22.466Z (7 months ago)
- Topics: cli, security
- Language: Go
- Size: 20.5 KB
- Stars: 39
- Watchers: 2
- Forks: 13
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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://h:1i0647a29e4qsp3iefbttnhnca3@example.com:11141'
```Use `-test` to test the found keys automatically. Not supported for all services.
```
$ git log -p | ./secrets-scanner -test
Found Redis URLs:
- 'redis://h:1i0647a29e4qsp3iefbttnhnca3@example.com: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