igbuend/grimbard/gitleaks
Claude Code and agent skill by igbuend/grimbard
Trust tier 2
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"},{"type":"config","description":"Configuration overrides"}]
Source check pending
Checking that the SKILL.md file is still in the repository.
Run Gitleaks for hardcoded secrets detection in code and git history. Use when scanning for API keys, passwords, tokens, certificates, or sensitive credentials in source code and commit history.
Install
npx vskill@latest install igbuend/grimbard/gitleaksSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
Gitleaks Secret Detection
When to Use Gitleaks
Ideal scenarios:
- Scanning for hardcoded secrets in source code
- Auditing git history for leaked credentials
- Pre-commit hooks to prevent secret commits
- CI/CD pipeline secret detection
- Finding API keys, passwords, tokens, private keys
- Compliance requirements for credential management
Complements other tools:
- Use before manual code review to catch obvious secrets
- Combine with SARIF Issue Reporter for detailed analysis
- Use alongside Application Inspector for comprehensive security audit
When NOT to Use
Do NOT use this skill for:
- Code vulnerability detection (use Semgrep or CodeQL)
- Dependency scanning (use OSV-Scanner or Depscan)
- IaC security analysis (use KICS)
- Technology profiling (use Application Inspector)
- Finding secrets in binary files or compiled code
Installation
Core Workflow
1. Quick Scan
2. SARIF Output
3. Scan Git History
4. Additional Formats
Configuration
Custom Config File
Create .gitleaks.toml:
Use Custom Config
Ignoring False Positives
Inline Comments
.gitleaksignore File
Create .gitleaksignore:
Baseline Mode
CI/CD Integration (GitHub Actions)
Pre-commit Hook
Install Pre-commit
Manual Git Hook
Common Use Cases
1. Initial Repository Audit
2. Pre-deployment Scan
3. CI/CD Pipeline Integration
4. Remediation Workflow
Understanding Output
SARIF Structure
Gitleaks SARIF v2.1.0 includes:
- Rules: Each secret type (API key, password, token, etc.)
- Results: Specific locations where secrets were found
- Properties:
commit: Git commit hash (if applicable)file: File pathstartLine: Line numberendLine: Line numbermatch: Redacted or full secret (depending on--redact)secret: The detected secret (if not redacted)
JSON Output Example
Advanced Features
Entropy Detection
Custom Rules Only
Scanning Specific Files
Performance Considerations
Limitations
- Binary files: Limited detection in compiled/binary files
- Obfuscation: Misses heavily obfuscated or encoded secrets
- Context-aware: Can't determine if secret is actually valid/active
- False positives: Regex-based, may flag test data or examples
- Git required: Directory scans work, but git history scanning needs .git
Rationalizations to Reject
| Shortcut | Why It's Wrong | |
|---|---|---|
| "Gitleaks found nothing = no secrets" | Obfuscated, encrypted, or dynamically constructed secrets are missed | |
| "Only scan code, skip git history" | Secrets in history can still be exploited; attackers check git logs | |
| "Disable in CI for speed" | Secret leaks are critical; speed should never compromise security | |
| "Mark all as false positive" | Each finding needs review; some may be valid credentials | |
| "Don't use --redact in reports" | Unredacted secrets in reports can leak to logs, artifacts, or dashboards |
References
- Repository: <https://github.com/gitleaks/gitleaks>
- Documentation: <https://gitleaks.io/>
- Default Rules: <https://github.com/gitleaks/gitleaks/blob/master/config/gitleaks.toml>
- SARIF Spec: <https://docs.oasis-open.org/sarif/sarif/v2.1.0/sarif-v2.1.0.html>
- Pre-commit Hook: <https://github.com/gitleaks/gitleaks#pre-commit>
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/gitleaks/SKILL.md
Popularity
- Repository stars
- 4
- Repository forks
- 1
- 7-day trend score
- 8
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 16 Mar 2026, 8 months ago.
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/igbuend/grimbard/gitleaks)