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.sh script 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, and python3. It executes the gitleaks binary locally to analyze repository history, staged changes, and push ranges.
  • [PERSISTENCE]: The install-hooks command writes pre-commit and pre-push scripts to the repository's .git/hooks directory. 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
Risk Level
SAFE
Analyzed
Oct 31, 2026, 10:40 PM