secret-scan
Skill9 starsChanged 6 days agoApache-2.0View on GitHub
Hardcoded-secret detection — AWS keys, GitHub PATs, Slack tokens, Stripe keys, generic high-entropy strings. Pre-commit (`--staged-only`), explicit paths, or full repo. Use when guarding `git commit`, auditing a repo for leaked credentials, validating no secrets entered the diff before push, or producing a rotation list for an exposed-secret incident.
8 other projects use a version of this.
Adopted by
Most recently taken up by
- NexaiGuy/nex-ai-skillstheir own version, first seen Nov 8, 2026
- matheuskotayko/skillstheir own version, first seen Nov 1, 2026
- Quality-Max/free-qa-skillstheir own version, first seen Oct 25, 2026
- KaryawanSurga/tokensaver-plugintheir own version, first seen Oct 8, 2026
- PerryLink/dsh-skill-pack-securitytheir own version, first seen Aug 15, 2026
- KhaledSaeed18/dotclaudetheir own version, first seen Jul 4, 2026
Other versions8 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 8
- PerryLink/dsh-skill-pack-security★ 22same name
- Quality-Max/free-qa-skills★ 13same name
- KhaledSaeed18/dotclaude★ 5same name
- kronus-tech/kronus★ 4same name
- KaryawanSurga/tokensaver-plugin★ 1same name
- NexaiGuy/nex-ai-skills★ 1same name
- matheuskotayko/skills★ 0same name
- vbrevik/claude_code_skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository18 other files it gives its agents.
- AGENTS.mdAGENTS.md
- container-scanSkill
- dashboardSkill
- dependency-choiceSkill
- dep-resolveSkill
- detection-rulesSkill
- eol-checkSkill
- exploit-testSkill
- fixSkill
- iac-scanSkill
- license-checkSkill
- repo-impactSkill
- sast-scanSkill
- sbom-generateSkill
- secure-code-writeSkill
- typosquat-checkSkill
- verify-fixSkill
- vex-publishSkill
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
1
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
- Very specific: line 35
Read .vulnetix/capabilities.yaml.
- Distinctive: line 41
Default: changed files vs.
- Distinctive: line 69
If a secret is found in a committed file (not just staged):
“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Vulnetix Secret Scan Skill
Use when
- Pre-commit: confirm no secrets in staged files (
--staged-only). - Pre-push: scan diff vs
origin/HEADfor high-confidence leaks. - Audit: full-repo scan for an exposed-secret incident.
- Producing a rotation list — which provider keys need to be revoked NOW.
- CI gate: block merge if any high-confidence secret detected.
Don't use for
- Vulnerability detection — use
sast-scanorvulnetix scan --sca. - Validating an already-fixed leak — use git filter-repo or BFG to remove from history.
Conventions
Follows skills/_lib/contract.md. In short: use the vulnetix_* MCP tools when the agent has them and the CLI otherwise — both shape their own output, so there is no jq step any more. Independent calls go out as concurrent Bash tool calls in one message. One trailing suggestion, not a playbook. See the contract for surface selection, output style and memory writes.
Step 1: Load capabilities
Read .vulnetix/capabilities.yaml. Note binaries.git (required for --staged-only).
Step 2: Decide scope
--staged-only:git diff --cached --name-onlyfor the file list.--paths: explicit list.- Default: changed files vs. main branch, fallback to whole repo.
Step 3: Run scan
vulnetix secrets --paths "$PATHS" -o json > .vulnetix/secrets.${TIMESTAMP}.jsonOr via integrated scan:
vulnetix scan --evaluate-secrets --paths "$PATHS" -o jsonStep 4: Render
Secret findings: N (high-confidence: M)
| Type | File:Line | Snippet (redacted) | Confidence |For each finding, emit a redacted snippet (replace 60% of the secret with *). Never print the full secret.
Step 5: Remediation guidance
For each unique secret type, surface the standard rotation/revocation steps (AWS, GCP, GitHub PAT, Slack, Stripe, etc.). Do not auto-rotate.
If a secret is found in a committed file (not just staged):
- Suggest
git filter-repoor BFG repo-cleaner - Strongly recommend rotating the credential since it's in git history
Memory update
Append a sanitized record to .vulnetix/secrets/${TIMESTAMP}.summary.yaml (counts by type, file paths, no values).
Edge cases & gotchas
- Output redacts 60% of each detected secret. Never re-print the un-redacted value.
- High-confidence findings include AWS / GitHub PAT / Slack / Stripe patterns. Generic high-entropy strings are medium-confidence; tune your CI gate accordingly.
--staged-onlyreadsgit diff --cached --name-only— files not yet staged are skipped. Run AFTERgit add.- Detection is regex-based; obfuscated secrets (split across vars, base64-wrapped) may be missed. Pair with a hand review for high-stakes audits.
- For secrets ALREADY in git history, this skill detects them on next change only. Use
gitleaks --log-opts="--all"for full history scan, then BFG / filter-repo to remove. - False-positive suppression uses inline comments (
# pix-ignore-secret) on the next line; the suppression is per-line, not per-pattern.
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.

