Repository navigation
SecretHound v1.0.0
SecretHound v1.0.0
New Features
- Expanded Pattern Library: Introduced new pattern categories including PII (Personally Identifiable Information) and Web3 (e.g., Ethereum/Bitcoin addresses, private keys), increasing total patterns to over 60.
- URL/Domain Extraction Mode: Added
--scan-urlsflag to exclusively scan for URL and domain patterns, overriding other category filters. - Grouped Output Format: Introduced
--group-by-sourceflag to group found secrets by their source URL/file in TXT and JSON output formats, improving readability for large scans. - Pattern Category Control: Implemented
--include-categoriesand--exclude-categoriesflags to allow users to specify which pattern categories to use or ignore during scans.
Improvements
- Enhanced Pattern Accuracy: Iteratively refined numerous existing patterns (IPv4, Bitcoin Address, Email Address, MAC Address, Generic Domain, Session Token) to significantly reduce false positives and improve detection of legitimate secrets based on extensive real-world test cases.
- Log Custom Headers: Initial configuration log now indicates if custom HTTP headers (
-H) are being used. - Queue Logic & Rate Limiting: Improved URL processing queue logic and refined the auto mode for rate limiting for more efficient and considerate scanning.
- CLI Options Refinement: Corrected and improved behavior of
--silentand--no-progressflags. - Regex Engine Compatibility: Added internal logging for regex compilation errors and refactored incompatible regex syntax (e.g., unsupported lookaheads) to ensure all patterns load correctly with Go's standard regex engine.
Bug Fixes
- JSON Output Formatting: Addressed issues to ensure valid JSON output, especially when no secrets are found or in raw mode.
- Progress Bar Rendering: Fixed a bug where the progress bar would sometimes only update when new logs were printed, ensuring it now refreshes independently and consistently.
- Execution Deadlocks: Resolved potential deadlocks and improved goroutine management for more stable execution during long scans.
- Pattern Loading: Fixed an issue where the incorrect number of loaded patterns was reported when using category filters, ensuring accurate reflection of active patterns.
Installation
Download the appropriate binary for your platform and make it executable.
For Go users:
go install github.com/rafabd1/SecretHound/cmd/secrethound@latest
Documentation
See the documentation for usage details.