DumpsterDiver
DumpsterDiver is a tool to analyze large volumes of data for hardcoded secrets like keys and passwords. It supports custom search rules and detects potential secret leaks.
Description
DumpsterDiver is designed to scan big volumes of data in search of hardcoded secrets such as AWS Access Keys, Azure Share Keys, SSH keys, or passwords. The tool helps identify potential secret leaks in files, making it valuable for security audits and data breach investigations.
It allows users to create simple search rules with basic conditions, for example, reporting only CSV files containing at least 10 email addresses. This flexibility aids in targeted analysis of large datasets.
The tool operates on local paths and provides options for advanced analysis using predefined rules in a YAML configuration file.
How It Works
The tool scans files in a specified local path for high-entropy strings indicative of keys (default min length 20, max 80, entropy threshold 4.3) and passwords (with optional complexity checks). It uses rules from '~/.dumpsterdiver/rules.yaml' when the --advance flag is enabled and supports removal of non-secret files. Analysis includes password strength metering and exclusion of specified files or expressions.
Installation
sudo apt install dumpsterdiverFlags
Examples
DumpsterDiver -hDumpsterDiver.py -p /path/to/filesDumpsterDiver.py -p /path/to/files -rDumpsterDiver.py -p /path/to/files -aDumpsterDiver.py -p /path/to/files -sDumpsterDiver.py -p /path/to/files -s --min-pass 10DumpsterDiver.py -p /path/to/files --entropy 4.5