Secret Scanner
Detect exposed API keys, passwords, tokens, and private keys in source code using pattern matching and entropy analysis, with remediation guidance for each finding.
Overview
scan your codebase for exposed secrets, API keys, passwords, and other sensitive credentials. It helps you identify and remediate potential security vulnerabilities before they are committed or deployed.
How It Works
- Initiate Scan: Claude activates the
secret-scanner plugin.
- Codebase Analysis: The plugin scans the codebase using pattern matching and entropy analysis.
- Report Generation: A detailed report is generated, highlighting identified secrets, their locations, and suggested remediation steps.
When to Use This Skill
This skill activates when you need to:
- Scan your codebase for exposed API keys (e.g., AWS, Google, Azure).
- Check for hardcoded passwords in configuration files.
- Identify potential private keys (SSH, PGP) accidentally committed to the repository.
- Proactively find secrets before committing changes.
Examples
Example 1: Identifying Exposed AWS Keys
User request: "Scan for AWS keys in the codebase"
The skill will:
- Activate the
secret-scanner plugin.
- Scan the codebase for patterns matching AWS Access Keys (AKIA[0-9A-Z]{16}).
- Generate a report listing any found keys, their file locations, and remediation steps (e.g., revoking the key).
Example 2: Checking for Hardcoded Passwords
User request: "Check for exposed credentials in config files"
The skill will:
- Activate the
secret-scanner plugin.
- Scan configuration files (e.g.,
database.yml, .env) for password patterns.
- Generate a report detailing any found passwords and suggesting the use of environment variables.
Best Practices
- Regular Scanning: Schedule regular scans to catch newly introduced secrets.
- Pre-Commit Hooks: Integrate the
secret-scanner into your pre-commit hooks to prevent committing secrets.
- Review Entropy Analysis: Carefully review results from entropy analysis, as they may indicate potential secrets not caught by pattern matching.
Integration
This skill can be integrated with other security tools, such as vulnerability scanners, to provide a comprehensive security assessment of your codebase. It can also be combined with notification plugins to alert you when new secrets are detected.
Prerequisites
- Access to codebase and configuration files in ${CLAUDE_SKILL_DIR}/
- Security scanning tools installed as needed
- Understanding of security standards and best practices
- Permissions for security analysis operations
Instructions
- Identify security scan scope and targets
- Configure scanning parameters and thresholds
- Execute security analysis systematically
- Analyze findings for vulnerabilities and compliance gaps
- Prioritize issues by severity and impact
- Generate detailed security report with remediation steps
Output
- Security scan results with vulnerability details
- Compliance status reports by standard
- Prioritized list of security issues by severity
- Remediation recommendations with code examples
- Executive summary for stakeholders
Error Handling
If security scanning fails:
- Verify tool installation and configuration
- Check file and directory permissions
- Validate scan target paths
- Review tool-specific error messages
- Ensure network access for dependency checks
Resources
- Security standard documentation (OWASP, CWE, CVE)
- Compliance framework guidelines (GDPR, HIPAA, PCI-DSS)
- Security scanning tool documentation
- Vulnerability remediation best practices
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: scanning-for-secrets-23description: Detect exposed secrets, API keys, and credentials in code. Use when auditing for secret leaks. Trigger with 'scan for secrets', 'find exposed keys', or 'check credentials'. Use when this capability is needed.4---5# Secret Scanner67Detect exposed API keys, passwords, tokens, and private keys in source code using pattern matching and entropy analysis, with remediation guidance for each finding.89## Overview1011scan your codebase for exposed secrets, API keys, passwords, and other sensitive credentials. It helps you identify and remediate potential security vulnerabilities before they are committed or deployed.1213## How It Works14151. **Initiate Scan**: Claude activates the `secret-scanner` plugin.162. **Codebase Analysis**: The plugin scans the codebase using pattern matching and entropy analysis.173. **Report Generation**: A detailed report is generated, highlighting identified secrets, their locations, and suggested remediation steps.1819## When to Use This Skill2021This skill activates when you need to:22- Scan your codebase for exposed API keys (e.g., AWS, Google, Azure).23- Check for hardcoded passwords in configuration files.24- Identify potential private keys (SSH, PGP) accidentally committed to the repository.25- Proactively find secrets before committing changes.2627## Examples2829### Example 1: Identifying Exposed AWS Keys3031User request: "Scan for AWS keys in the codebase"3233The skill will:341. Activate the `secret-scanner` plugin.352. Scan the codebase for patterns matching AWS Access Keys (AKIA[0-9A-Z]{16}).363. Generate a report listing any found keys, their file locations, and remediation steps (e.g., revoking the key).3738### Example 2: Checking for Hardcoded Passwords3940User request: "Check for exposed credentials in config files"4142The skill will:431. Activate the `secret-scanner` plugin.442. Scan configuration files (e.g., `database.yml`, `.env`) for password patterns.453. Generate a report detailing any found passwords and suggesting the use of environment variables.4647## Best Practices4849- **Regular Scanning**: Schedule regular scans to catch newly introduced secrets.50- **Pre-Commit Hooks**: Integrate the `secret-scanner` into your pre-commit hooks to prevent committing secrets.51- **Review Entropy Analysis**: Carefully review results from entropy analysis, as they may indicate potential secrets not caught by pattern matching.5253## Integration5455This skill can be integrated with other security tools, such as vulnerability scanners, to provide a comprehensive security assessment of your codebase. It can also be combined with notification plugins to alert you when new secrets are detected.5657## Prerequisites5859- Access to codebase and configuration files in ${CLAUDE_SKILL_DIR}/60- Security scanning tools installed as needed61- Understanding of security standards and best practices62- Permissions for security analysis operations6364## Instructions65661. Identify security scan scope and targets672. Configure scanning parameters and thresholds683. Execute security analysis systematically694. Analyze findings for vulnerabilities and compliance gaps705. Prioritize issues by severity and impact716. Generate detailed security report with remediation steps7273## Output7475- Security scan results with vulnerability details76- Compliance status reports by standard77- Prioritized list of security issues by severity78- Remediation recommendations with code examples79- Executive summary for stakeholders8081## Error Handling8283If security scanning fails:84- Verify tool installation and configuration85- Check file and directory permissions86- Validate scan target paths87- Review tool-specific error messages88- Ensure network access for dependency checks8990## Resources9192- Security standard documentation (OWASP, CWE, CVE)93- Compliance framework guidelines (GDPR, HIPAA, PCI-DSS)94- Security scanning tool documentation95- Vulnerability remediation best practices9697---98> Converted and distributed by [TomeVault](https://tomevault.io/claim/jeremylongshore) — claim your Tome and manage your conversions.99<!-- tomevault:4.0:skill_md:2026-04-11 -->