private-secret-scanning
Pass
Audited by Gen Agent Trust Hub on Oct 31, 2026
Risk Level: SAFEEXTERNAL_DOWNLOADSCOMMAND_EXECUTIONPERSISTENCEDYNAMIC_EXECUTION
Full Analysis
- [EXTERNAL_DOWNLOADS]: The
secret-scan.shscript downloads the Gitleaks binary from its official GitHub releases page. This download is verified using hardcoded SHA-256 checksums for each supported platform (Linux and Darwin on x64 and arm64 architectures) to ensure the integrity of the tool. - [COMMAND_EXECUTION]: The skill utilizes standard system utilities including
git,curl, andpython3. It executes thegitleaksbinary locally to analyze repository history, staged changes, and push ranges. - [PERSISTENCE]: The
install-hookscommand writespre-commitandpre-pushscripts to the repository's.git/hooksdirectory. These hooks automate the execution of the secret scanner during the git workflow to prevent sensitive data from leaving the local machine. - [DYNAMIC_EXECUTION]: An embedded Python script is used within a heredoc to sanitize Gitleaks JSON reports. This script specifically filters findings to keep only metadata (RuleID, File, StartLine, Commit, and Fingerprint) and explicitly redacts the secret values before they are displayed or saved to a report file.
Audit Metadata