Source: https://github.com/disruptops/
cred_scanner: scanner to look for potential AWS access and secret keys
cred_scanner
A simple command line tool for finding AWS credentials in files. Optimized for use with Jenkins and other CI systems.
Install
git clone https://github.com/disruptops/cred_scanner.git cd cred_scanner pip install -r requirements.txt
Use
python cred_scanner.py
That will scan the local directory and all subdirectories. It will list the files, which ones have potential access keys, and which files can’t be scanned due to the file format. cred_scanner exits with a code of 1 if it finds any potential keys.
Options:
–path TEXT Path other than the local directory to scan
–secret Also look for Secret Key patterns. This may result in many
false matches due to the nature of secret keys.
–help Show this message and exit.