
Secret Leak Detector
- 206 installs
- 2 repo stars
- Updated January 25, 2026
- jorgealves/agent_skills
Scan repos, configs, logs, and agent outputs for exposed API keys, tokens, and credentials before commits, reviews, or production deploys.
About
Agent skill that scans codebases, logs, and generated artifacts for accidentally committed secrets like API keys, tokens, and passwords, helping teams block credential leaks during review and before launch.
- API key and token detection
- credential pattern matching
- pre-commit and PR scanning
- agent output review
- leak remediation guidance
Secret Leak Detector by the numbers
- 206 all-time installs (skills.sh)
- +8 installs in the week ending Aug 2, 2026 (Skillselion tracking)
- Ranked #761 of 2,203 Security skills by installs in the Skillselion catalog
- Data as of Aug 2, 2026 (Skillselion catalog sync)
npx skills add https://github.com/jorgealves/agent_skills --skill secret-leak-detectorAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 206 |
|---|---|
| repo stars | ★ 2 |
| Last updated | January 25, 2026 |
| Repository | jorgealves/agent_skills ↗ |
What it does
Scan repos, configs, logs, and agent outputs for exposed API keys, tokens, and credentials before commits, reviews, or production deploys.
Files
Secret Leak Detector
Purpose and Intent
The secret-leak-detector is designed to safeguard repositories by identifying hardcoded sensitive information such as API keys, database credentials, and authentication tokens before they are committed or after they have been accidentally pushed to history.
When to Use
- Pre-commit Checks: Run this skill before committing changes to ensure no secrets are being introduced.
- CI/CD Pipelines: Integrate into automated pipelines to block builds that contain plain-text secrets.
- Legacy Audits: Use with
scan_history: trueto perform a deep audit of a project's entire history to find secrets that were deleted but still exist in git logs.
When NOT to Use
- Production Logs: This tool is for source code and config files; it is not optimized for scanning terabytes of runtime logs.
- Binary Files: It will not effectively detect secrets inside compiled binaries or encrypted blobs.
Input and Output Examples
Input
directory_path: "./config"
scan_history: falseOutput
{
"leaks": [
{
"file": "config/production.yaml",
"line": 45,
"type": "Stripe Secret Key",
"risk_level": "critical",
"snippet": "sk_live_**********"
}
]
}Error Conditions and Edge Cases
- False Positives: High-entropy strings in test data or encrypted hashes may be flagged as secrets.
- Git Repository Required: If
scan_historyis true, the target directory must be a valid git repository. - Permission Denied: The skill will fail if it lacks read permissions for specific files or the
.gitdirectory.
Security and Data-Handling Considerations
- No Persistence: This skill does not store the secrets it finds.
- Masking: Output snippets are masked to prevent the tool itself from becoming a source of leaks in logs or terminal history.
- Local Execution: The skill runs locally and does not phone home or upload code to third-party services.
name: secret-leak-detector
version: 1.0.0
description: Scans source code, configuration files, and git history for hardcoded credentials, API keys, and tokens. Use when auditing repositories for security leaks or ensuring sensitive data is not committed to version control.
inputs:
directory_path:
type: string
description: The root directory to start the scan from.
required: true
scan_history:
type: boolean
description: Whether to scan the full git history or just the current state.
default: false
exclude_patterns:
type: array
items:
type: string
description: Glob patterns of files or directories to ignore (e.g., node_modules).
outputs:
leaks:
type: array
items:
type: object
properties:
file:
type: string
line:
type: integer
type:
type: string
description: The detected secret type (e.g., AWS Key, Private Token).
risk_level:
type: string
enum: [low, medium, high, critical]
snippet:
type: string
description: A masked snippet of the detected secret.
capabilities:
- Regex-based pattern matching for known provider formats.
- Shannon entropy analysis to detect high-entropy strings.
- Git commit history traversal.
constraints:
- Detection only; does not remove secrets.
- Potential for false positives in test files.
security:
- Secrets MUST NOT be logged in plain text.
- Secrets MUST NOT be transmitted to external servers.
- Snippets in output SHOULD be masked.
examples:
- input:
directory_path: "./src"
scan_history: false
output:
leaks:
- file: "src/config.py"
line: 12
type: "AWS Access Key"
risk_level: "high"
snippet: "AKIA**********"