secret-leakage-detector
Skill0 starsChanged 20 days agoMITView on GitHub
Detect likely credentials, private keys, tokens, and secret-bearing configuration before commit or publication. Use for security review, pre-push checks, or suspicious configuration changes.
In this repository42 other files it gives its agents.
- AGENTS.mdAGENTS.md
- completion-claims-auditorSkill
- existing-work-preservationSkill
- mcp-reliability-auditorSkill
- multi-agent-integration-reviewerSkill
- project-context-recoverySkill
- requirement-traceability-auditorSkill
- scope-drift-guardSkill
- architecture-complexity-auditorSkill
- dependency-cycle-auditorSkill
- database-schema-reviewerSkill
- data-consistency-auditorSkill
- migration-safety-reviewerSkill
- loop-breakerSkill
- reproduction-builderSkill
- root-cause-debuggerSkill
- dependency-grounding-auditorSkill
- ci-failure-investigatorSkill
- cross-platform-readiness-auditorSkill
- environment-config-auditorSkill
- environment-parity-auditorSkill
- production-readiness-auditorSkill
- documentation-accuracy-auditorSkill
- token-efficient-workflowSkill
- accessibility-auditorSkill
- dead-feature-detectorSkill
- responsive-design-auditorSkill
- ux-state-completeness-auditorSkill
- release-verification-agentSkill
- agent-tool-trust-auditorSkill
- authentication-security-auditorSkill
- authorization-boundary-auditorSkill
- dependency-vulnerability-auditorSkill
- injection-risk-auditorSkill
- input-validation-auditorSkill
- security-misconfiguration-auditorSkill
- api-contract-auditorSkill
- integration-reality-checkerSkill
- missing-test-detectorSkill
- regression-detectorSkill
- test-quality-auditorSkill
- ui-flow-verifierSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 6 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 16
Only public test fixtures are present and a trusted scanner has already covered the exact diff.
- Distinctive: line 20
Read applicable repository instructions before edits.
- Distinctive: line 34
Check environment/example files for secret values rather than variable names only.
- Distinctive: line 50
Never print, copy, validate by authenticating, or commit a suspected secret.
- Distinctive: line 54
No unresolved high-confidence secret is present in files intended for commit/push.
- Distinctive: line 67
If a value cannot be classified safely, report a redacted potential secret for human review rather than echoing it.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Purpose
Prevent accidental credential publication while keeping false positives reviewable.
When to activate
Files, diffs, logs, or generated configuration may contain secrets.
When not to activate
Only public test fixtures are present and a trusted scanner has already covered the exact diff.
Preconditions
- Read applicable repository instructions before edits.
- Preserve unrelated working-tree changes and establish a baseline when the workflow can modify code.
- Identify which tools and environments are actually available; do not claim unavailable checks ran.
Required inputs
- Git diff or target paths
- Repository ignore rules
- Known test-secret conventions
Workflow
- Scan the changed files and relevant tracked configuration for high-signal credential patterns and private-key markers.
- Review entropy-like findings in context; distinguish synthetic fixtures, public identifiers, and actual secrets.
- Check environment/example files for secret values rather than variable names only.
- Inspect staged/tracked files, not only the working tree, before publication.
- For a real secret, stop publication, remove it from current files, and tell the user that rotation/revocation is required outside the repository.
- Re-scan after remediation.
- Report findings without printing full secret values.
Relevant tools
Secret scanner if installed, version control, repository search; this skill includes a deterministic helper script.
Deterministic helper
For a dependency-free first pass, run python scripts/scan_secrets.py <root>. It reports only file, line, and pattern type and deliberately does not print matched secret values.
Safety restrictions
Never print, copy, validate by authenticating, or commit a suspected secret.
Validation
- No unresolved high-confidence secret is present in files intended for commit/push.
- Reports redact secret values.
- A real exposed credential is treated as compromised rather than merely deleted.
Expected output
- Redacted finding list
- Files/line locations
- Remediation status
- Rotation/revocation action needed
Failure handling
If a value cannot be classified safely, report a redacted potential secret for human review rather than echoing it.
Completion criteria
The skill is complete only when every applicable validation item above has observed evidence or is explicitly marked not executed with the concrete blocker. Do not replace missing evidence with confidence language.
Research mapping
This skill was selected from research problems: P013. See research/vibe-coding-problems.md and research/problem-evidence.csv in the Vibe Coding Skills repository.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

