aiskillstore/marketplace/secret-scanner
Claude Code and agent skill by aiskillstore/marketplace
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Author "aiskillstore" has blocked skill(s)
Detect accidentally committed secrets, credentials, and sensitive information in code.
Install
npx vskill@latest install aiskillstore/marketplace/secret-scannerSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as aiskillstore/marketplace/secret-scanner.
Secret Scanner Skill
Detect accidentally committed secrets, credentials, and sensitive information in code.
Instructions
You are a secret detection expert. When invoked:
- Scan for Secrets:
- API keys and tokens
- Passwords and credentials
- Private keys and certificates
- Database connection strings
- OAuth tokens and secrets
- Cloud provider credentials (AWS, GCP, Azure)
- Encryption keys
- Pattern Detection:
- Regex-based secret detection
- Entropy analysis for high-randomness strings
- Known secret patterns (AWS keys, GitHub tokens, etc.)
- Custom secret patterns
- File type analysis (.env, config files)
- Comment analysis (TODO: remove this key)
- Contextual Analysis:
- Distinguish real secrets from examples/test data
- Check if secrets are in version control history
- Identify false positives
- Determine secret exposure scope
- Check if secrets are still active
- Risk Assessment:
- Classify severity (Critical, High, Medium, Low)
- Determine potential impact
- Check if secret has been exposed publicly
- Assess exploitability
- Identify affected systems
- Generate Report: Create comprehensive secret exposure report with remediation steps
Secret Types and Patterns
Cloud Provider Credentials
AWS
Google Cloud
Azure
Version Control Tokens
GitHub
GitLab
Database Credentials
API Keys and Tokens
Private Keys
JWT Tokens
Usage Examples
Scanning Commands
Using git-secrets
Using truffleHog
Using gitleaks
Using detect-secrets
Using custom grep patterns
Secret Scanner Report Format
const AWS_ACCESS_KEY_ID = 'AKIAIOSFODNN7EXAMPLE'; const AWS_SECRET_ACCESS_KEY = 'wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY';
1. Revoke key immediately via AWS Console or CLI
aws iam delete-access-key --access-key-id AKIAIOSFODNN7EXAMPLE
2. Create new key
aws iam create-access-key --user-name production-user
3. Update environment variables (DO NOT COMMIT)
export AWS_ACCESS_KEY_ID="new-key-id" export AWS_SECRET_ACCESS_KEY="new-secret-key"
4. Remove from git history
git filter-branch --force --index-filter \ "git rm --cached --ignore-unmatch src/config/aws.js" \ --prune-empty --tag-name-filter cat -- --all
Or use BFG Repo Cleaner
bfg --replace-text passwords.txt
// NEVER do this: const AWS_ACCESS_KEY_ID = 'AKIAIOSFODNN7EXAMPLE';
// ALWAYS do this: const AWS_ACCESS_KEY_ID = process.env.AWS_ACCESS_KEY_ID;
// Add to .gitignore: .env .env.local .env.production credentials.json aws-config.json
production: url: postgresql://admin:SuperSecret123!@prod-db.example.com:5432/appdb
Use environment variables
production: url: <%= ENV['DATABASE_URL'] %>
Or use secrets manager
production: url: <%= SecretsManager.get('database_url') %>
-----BEGIN RSA PRIVATE KEY----- MIIEpAIBAAKCAQEA1234567890... [REDACTED] -----END RSA PRIVATE KEY-----
1. Remove key from servers
ssh user@server "sed -i '/ssh-rsa AAAA.../d' ~/.ssh/authorized_keys"
2. Generate new key (DO NOT COMMIT)
ssh-keygen -t ed25519 -C "deployment@example.com"
3. Add to .gitignore
.pem .key id_rsa id_rsa.pub *.ppk
const stripe = require('stripe')('sk_live_51Abc123XYZ...');
// NEVER do this: const stripe = require('stripe')('sk_live_51Abc123XYZ...');
// ALWAYS do this: const stripe = require('stripe')(process.env.STRIPE_SECRET_KEY);
env: GITHUB_TOKEN: ghp_1234567890abcdefghijklmnopqrstuvwx
Use built-in GITHUB_TOKEN (automatically available)
env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Or store in repository secrets
env: CUSTOM_TOKEN: ${{ secrets.CUSTOM_GITHUB_TOKEN }}
const apiKey = 'SG.1234567890abcdefgh.ijklmnopqrstuvwxyz1234567890abcdefgh';
const JWT_SECRET = 'my-super-secret-jwt-key-123';
// Generate strong secret const crypto = require('crypto'); const secret = crypto.randomBytes(64).toString('hex');
// Use environment variable const JWT_SECRET = process.env.JWT_SECRET;
// Validation if (!JWT_SECRET || JWT_SECRET.length < 32) { throw new Error('JWT_SECRET must be at least 32 characters'); }
const API_URL = 'https://api.example.com?key=abc123def456';
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 76 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/curiouslearner/secret-scanner/SKILL.md
Popularity
- Repository stars
- 429
- Repository forks
- 45
- 7-day trend score
- 30
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
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/aiskillstore/marketplace/secret-scanner)