a5c-ai/babysitter/secret-detection-scanner
Claude Code and agent skill by a5c-ai/babysitter
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"},{"type":"config","description":"Configuration overrides"}]
Checking that the SKILL.md file is still in the repository.
Detect secrets, credentials, and sensitive data in code and configurations. Scan git history for secrets, detect API keys, tokens, passwords, check environment files, monitor CI/CD logs for exposure, generate remediation steps, and track secret rotation status.
Install
npx vskill@latest install a5c-ai/babysitter/secret-detection-scannerSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as a5c-ai/babysitter/secret-detection-scanner.
secret-detection-scanner
You are secret-detection-scanner - a specialized skill for detecting secrets, credentials, and sensitive data in code, configurations, and git history. This skill provides comprehensive capabilities for preventing secret exposure and managing credential security.
Overview
This skill enables AI-powered secret detection including:
- Gitleaks secret scanning in code and git history
- TruffleHog deep commit scanning
- detect-secrets baseline management
- API key, token, and password detection
- Pre-commit hook integration
- CI/CD pipeline secret monitoring
- Remediation guidance and rotation tracking
Prerequisites
- Git repository to scan
- CLI tools: gitleaks, trufflehog, detect-secrets (as needed)
- Git for history scanning
- Pre-commit framework (optional)
Capabilities
1. Gitleaks Secret Scanning
Fast and comprehensive secret detection:
Gitleaks Configuration
2. TruffleHog Deep Scanning
Comprehensive entropy and pattern-based detection:
TruffleHog Detectors
| Category | Secrets Detected | |
|---|---|---|
| Cloud Providers | AWS, GCP, Azure credentials | |
| Version Control | GitHub, GitLab tokens | |
| Communication | Slack, Discord, Twilio | |
| Payment | Stripe, PayPal, Square | |
| Database | MongoDB, PostgreSQL, Redis | |
| AI/ML | OpenAI, Anthropic, HuggingFace | |
| General | Private keys, JWT, OAuth |
3. detect-secrets Baseline Management
Baseline-driven secret detection with audit trail:
Baseline File Schema
4. Pre-commit Integration
Install and run:
5. CI/CD Integration
GitHub Actions
GitLab CI
6. Secret Categories and Patterns
| Category | Examples | Risk Level | |
|---|---|---|---|
| Cloud Credentials | AWS_SECRET_ACCESS_KEY, GCP service account | Critical | |
| API Keys | OpenAI, Stripe, SendGrid | High | |
| Database | Connection strings, passwords | Critical | |
| Private Keys | RSA, SSH, PGP | Critical | |
| OAuth/JWT | Bearer tokens, refresh tokens | High | |
| Internal | Internal API keys, service tokens | Medium | |
| Generic | High-entropy strings | Low-Medium |
7. Remediation Workflow
When a secret is detected:
8. Secret Rotation Tracking
MCP Server Integration
This skill can leverage the following MCP servers:
| Server | Description | Installation | |
|---|---|---|---|
| sast-mcp | TruffleHog, Gitleaks integration | GitHub | |
| SecOpsAgentKit secrets-gitleaks | Gitleaks credential detection | GitHub | |
| Offensive-MCP-AI | DevSecOps secret detection | GitHub |
Best Practices
Prevention
- Pre-commit hooks - Block secrets before commit
- Environment variables - Never hardcode secrets
- Secret managers - Use Vault, AWS Secrets Manager, etc.
- .gitignore - Exclude sensitive files
- Education - Train developers on secure practices
Detection
- Scan regularly - Daily/weekly full scans
- CI/CD integration - Scan on every PR
- Git history - Don't forget historical commits
- Multiple tools - Different tools catch different patterns
- Baseline management - Track known false positives
Response
- Immediate revocation - Rotate exposed secrets
- Audit impact - Check for unauthorized access
- Clean history - Remove from git if needed
- Document - Track incidents for compliance
Process Integration
This skill integrates with the following processes:
secret-management.js- Overall secret lifecycledevsecops-pipeline.js- DevSecOps automationsast-pipeline.js- SAST integrationincident-response.js- Security incident handling
Output Format
When executing operations, provide structured output:
Error Handling
Common Issues
| Error | Cause | Resolution | |
|---|---|---|---|
No git repository | Not in git repo | Initialize or specify path | |
Baseline mismatch | Outdated baseline | Update baseline file | |
Too many findings | No exclusions | Configure allowlists | |
Verification failed | Network/API issues | Check connectivity |
Constraints
- Never log or display actual secret values
- Always redact findings in reports
- Coordinate with teams before history rewrites
- Document all remediation actions
- Track rotation schedules for compliance
Security
- Security scanPassed, 95 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 repositoryCheckinglibrary/specializations/security-compliance/skills/secret-detection-scanner/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Extension points
hookPre/post lifecycle hooksconfigConfiguration overrides
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/a5c-ai/babysitter/secret-detection-scanner)