Claude Code CommandSecurity68 installs

Secrets Scanner

Scan codebase for exposed secrets, credentials, and sensitive information

Install with the Claude Code Templates CLI
$ npx claude-code-templates@latest --command="security/secrets-scanner" --yes

Requires Claude Code. The command adds this command to your project's .claudedirectory — nothing runs on ToolZip's servers.

What's inside this command

Component source

Secrets Scanner

Scan codebase for exposed secrets and sensitive information: $ARGUMENTS

Current Repository State

  • Git status: !git status --porcelain | wc -l uncommitted files
  • File types: !find . -name ".js" -o -name ".py" -o -name ".env" -o -name "*.yml" | wc -l scannables
  • Recent commits: !git log --oneline --grep="password\|key\|secret\|token" -5
  • Environment files: @.env or @config/ (if exists)

Task

Perform comprehensive secrets detection and remediation across codebase:

Scan Scope: Use $ARGUMENTS to focus on API keys, passwords, certificates, or complete scan Detection Categories:
  • API Keys & Tokens - GitHub, AWS, Google Cloud, Stripe, third-party services
  • Database Credentials - Connection strings, usernames, passwords
  • Certificates & Keys - Private keys, SSH keys, SSL certificates
  • Authentication Secrets - JWT secrets, session keys, OAuth credentials
  • Configuration Leaks - Hardcoded URLs, internal endpoints, debug settings

Remediation Actions:
  • Identify exposed secrets with file locations and line numbers
  • Provide secure alternatives (environment variables, secret management)
  • Generate .gitignore entries for sensitive files
  • Create secure configuration templates
  • Implement secrets management best practices

Output: Detailed security report with risk levels, immediate actions, and long-term security improvements.
Type
Command
Category
Security
Installs
68
Source
GitHub ↗

Related Claude Code Commands

Catalog data and component content are sourced from the open-source davila7/claude-code-templates project (MIT license). ToolZip curates the listing and writes original descriptions; every component links back to its original source. Claude Code is a product of Anthropic. ToolZip is an independent catalog and is not affiliated with or endorsed by Anthropic.