jwynia/agent-skills/secrets-scan
Claude Code and agent skill by jwynia/agent-skills
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Detect API keys, passwords, tokens, and other secrets in code. Use when you need to find hardcoded credentials and sensitive data in source code.
Install
npx vskill@latest install jwynia/agent-skills/secrets-scanSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as jwynia/agent-skills/secrets-scan.
Secrets Scan
Deep detection of hardcoded credentials and sensitive data in source code.
Quick Start
What This Skill Detects
High-Confidence Patterns
Patterns with very low false positive rates:
| Type | Pattern Example | Provider | |||
|---|---|---|---|---|---|
| AWS Access Key | AKIA... (20 chars) | AWS | |||
| AWS Secret Key | 40 char base64 | AWS | |||
| GitHub Token | ghp_, gho_, ghu_, ghs_, ghr_ | GitHub | |||
| GitLab Token | glpat-... | GitLab | |||
| Slack Token | xoxb-, xoxp-, xoxa- | Slack | |||
| Stripe Key | sk_live_, rk_live_ | Stripe | |||
| Twilio | SK... (34 chars) | Twilio | |||
| SendGrid | SG. followed by base64 | SendGrid | |||
| Private Key | `-----BEGIN (RSA\ | EC\ | DSA)?PRIVATE KEY-----` | Various | |
| Google API Key | AIza... (39 chars) |
Medium-Confidence Patterns
May require context validation:
| Type | Pattern | Notes | |
|---|---|---|---|
| Generic API Key | api[_-]?key.*=.*['"][a-zA-Z0-9]{16,} | Variable names | |
| Generic Secret | secret.*=.*['"][^'"]+ | Context needed | |
| Password | password.*=.*['"][^'"]+ | May be config | |
| Connection String | ://[^:]+:[^@]+@ | DB credentials | |
| Bearer Token | Bearer [a-zA-Z0-9_-]+ | In headers/code |
High-Entropy Detection
Finds potential secrets via entropy analysis:
Detects strings with high randomness that may be:
- Base64-encoded secrets
- Hex-encoded tokens
- Custom API key formats
Detection Patterns
Cloud Provider Keys
Version Control Tokens
Payment & Finance
Communication Services
Database Connection Strings
Private Keys
JWT & Session
Scan Options
Basic Scan
Scans for high-confidence patterns only.
With Entropy Analysis
Adds high-entropy string detection (more findings, some false positives).
Specific Scope
Git History Scan
Scans commit history for secrets that were committed and later removed.
Exclude Patterns
Output Format
Finding Report
Summary Statistics
False Positive Handling
Common False Positives
- Example/placeholder values
AKIAIOSFODNN7EXAMPLE(AWS example)sk_test_...(Stripe test key)your-api-key-here
- Test fixtures
- Mock credentials in test files
- Fixture data
- Documentation
- README examples
- API documentation
Ignore File
Create .secrets-scan-ignore:
Inline Ignore
Remediation Steps
When Secrets Are Found
- Immediate Actions
- Rotate the credential immediately
- Check access logs for unauthorized use
- Remove from code/config
- Clean Git History
```bash # Remove secret from history git filter-branch --force --index-filter \ 'git rm --cached --ignore-unmatch path/to/file' \ --prune-empty --tag-name-filter cat -- --all
# Or use BFG Repo Cleaner bfg --replace-text secrets.txt repo.git ```
- Prevent Future Commits
- Add pre-commit hooks
- Configure secret scanning in CI
Prevention
Integration
CI/CD Pipeline
Pre-Commit Hook
Related Skills
/security-scan- Full security analysis/config-scan- Configuration security/dependency-scan- Package vulnerabilities
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/tech/security/secrets-scan/SKILL.md
Popularity
- Repository stars
- 160
- Repository forks
- 20
- 7-day trend score
- 25
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 18 Mar 2026, 8 months ago.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/jwynia/agent-skills/secrets-scan)