1 line
1.7 KiB
JSON
1 line
1.7 KiB
JSON
{"content": "---\nallowed-tools: Read, Bash, Grep, Glob\nargument-hint: [scope] | --api-keys | --passwords | --certificates | --fix\ndescription: Scan codebase for exposed secrets, credentials, and sensitive information\n---\n\n# Secrets Scanner\n\nScan codebase for exposed secrets and sensitive information: **$ARGUMENTS**\n\n## Current Repository State\n\n- Git status: !`git status --porcelain | wc -l` uncommitted files\n- File types: !`find . -name \"*.js\" -o -name \"*.py\" -o -name \"*.env*\" -o -name \"*.yml\" | wc -l` scannables\n- Recent commits: !`git log --oneline --grep=\"password\\|key\\|secret\\|token\" -5`\n- Environment files: @.env* or @config/* (if exists)\n\n## Task\n\nPerform comprehensive secrets detection and remediation across codebase:\n\n**Scan Scope**: Use $ARGUMENTS to focus on API keys, passwords, certificates, or complete scan\n\n**Detection Categories**:\n1. **API Keys & Tokens** - GitHub, AWS, Google Cloud, Stripe, third-party services\n2. **Database Credentials** - Connection strings, usernames, passwords\n3. **Certificates & Keys** - Private keys, SSH keys, SSL certificates\n4. **Authentication Secrets** - JWT secrets, session keys, OAuth credentials\n5. **Configuration Leaks** - Hardcoded URLs, internal endpoints, debug settings\n\n**Remediation Actions**:\n- Identify exposed secrets with file locations and line numbers\n- Provide secure alternatives (environment variables, secret management)\n- Generate .gitignore entries for sensitive files\n- Create secure configuration templates\n- Implement secrets management best practices\n\n**Output**: Detailed security report with risk levels, immediate actions, and long-term security improvements."} |