← ClaudeAtlas

secret-scanninglisted

Detects and handles sensitive information in code. Use when reviewing code for secret leaks and hard-coded credentials.
AppVerk/av-marketplace · ★ 3 · Code & Development · score 79
Install: claude install-skill AppVerk/av-marketplace
# Secret Scanning ## Instruction Perform comprehensive analysis of the provided codebase to identify any sensitive information, such as API keys, passwords, tokens, or other secrets that may have been inadvertently included in the code. Use a combination of pattern matching, keyword searches, and specialized tools to detect potential security risks. --- ## Prerequisites Check **ALWAYS run this check first before scanning:** ```bash # Check if trufflehog is available command -v trufflehog >/dev/null 2>&1 && echo "OK: trufflehog available" || echo "WARNING: trufflehog not installed - using fallback patterns" # Check if jq is available command -v jq >/dev/null 2>&1 && echo "OK: jq available" || echo "WARNING: jq not installed - output will be raw JSON" ``` If tools are missing, install them: ```bash # macOS brew install trufflehog jq # Linux (pip) pip install trufflehog sudo apt-get install jq # Using pipx (recommended) pipx install trufflehog ``` --- ## Primary Method: Trufflehog Scan When `trufflehog` is available, use this as the primary scanning method: ```bash # Scan for verified secrets only (recommended) trufflehog git file://. --json --output-report /tmp/trufflehog-verified.json 2>/dev/null # Scan for ALL secrets (including unverified) trufflehog git file://. --json --output-report /tmp/trufflehog-all.json 2>/dev/null # Scan specific directory trufflehog filesystem ./src --json --output-report /tmp/trufflehog-fs.json 2>/dev/null ``` **After scan:** Read