Secret scan

From Miosa-osa/canopy · View interactive version

Secret scan is an AI agent skill from the GitHub repository Miosa-osa/canopy. > Detect exposed credentials, API keys, and sensitive data in the codebase.

How to use this skill

Skill file

/secret-scan

Detect exposed credentials, API keys, and sensitive data in the codebase.

Usage

/secret-scan [path] [--git-history] [--fix]

What It Does

Scans the codebase (and optionally git history) for exposed secrets: AWS credentials, API keys, private keys, database connection strings, JWT tokens, and other sensitive data. Reports findings with exact file locations and remediation steps.

Implementation

  1. Scan current files -- regex patterns for common secret formats:
  1. Scan git history (if --git-history) -- check previous commits for secrets that were later removed.
  2. Check .gitignore -- verify .env, credential files, and key files are ignored.
  3. Report -- location, secret type, severity, and remediation.
  4. Fix (if --fix) -- add entries to .gitignore, suggest secret rotation.

Examples

# Scan current codebase
/secret-scan

# Include git history
/secret-scan --git-history

# Scan and auto-fix .gitignore
/secret-scan --fix

# Scan specific directory
/secret-scan config/
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.