trufflesecurity/trufflehog
Find and verify leaked credentials
What
Scans git history, filesystems, S3, CI logs and more for secrets, and checks whether each found credential is still live.
How to use
brew install trufflehog
trufflehog git https://github.com/your-org/your-repo --results=verified
trufflehog filesystem .Reach for it when
Before open-sourcing a repo or after a suspected key leak.