agentleFS
srikanth-manivannansrikanth-manivannan/claude-agent-factory/skills/security/secret-scanner/SKILL.md

secret-scanner

Skill1 starsChanged 5 months agoMITView on GitHub

Use this to detect committed secrets and credentials and produce a safe remediation plan.

5 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 3

    Distinctive

    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
  1. Distinctive:

    After a suspected leak, to find and scope exposed credentials.

    line 23
  2. Distinctive:

    Read access to the codebase (and history, if in scope).

    line 32
  3. Distinctive:

    Confirm authorization: If not confirmed, refuse (/standards/security.md).

    line 45

“Common” is measured: kept by at least 6 in 10 of the 5 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Secret Scanner

Use this to detect committed secrets and credentials and produce a safe remediation plan.

Tech profile — Technology: any · Language: any · Stack: any VCS · Toolchain: any · Domain: security (Scans any codebase/history; defensive, authorized use only.)

When to use this skill

  • Auditing a repo (and its history) for committed secrets before going public.
  • As a pre-release gate or part of the security-audit workflow.
  • After a suspected leak, to find and scope exposed credentials.

When NOT to use this skill

  • Dependency CVEs — use security/dependency-vuln-auditor.
  • Designing secrets storage — use security/secrets-management-setup.

Prerequisites

  • Read access to the codebase (and history, if in scope).
  • Authorization to scan the target (defensive use only).

Inputs

InputRequiredDescription
targetyesRepo/path to scan
scan_historynoWhether to scan VCS history (default: yes)
authorizationyesConfirmation the scan is authorized

Instructions

  1. Confirm authorization. If not confirmed, refuse (/standards/security.md).
  2. Scan working tree + (optionally) history for high-signal patterns: API keys, tokens, private keys, connection strings, cloud credentials, high-entropy strings.
  3. Triage findings. Classify each as confirmed / likely / false-positive; assign severity. Reduce noise — a wall of false positives helps no one.
  4. Do NOT print full secret values. Redact (show a prefix + length); never echo a live credential into logs/output.
  5. Recommend remediation per finding: rotate/revoke the credential first (it is already exposed), then remove from code, then purge from history if needed, then add to ignore + move to a secrets manager.
  6. Recommend prevention: pre-commit hooks, CI secret scanning, a secrets manager (security/secrets-management-setup).
  7. Report severity-ranked findings with redacted evidence and remediation steps.

Output

A severity-ranked report: each finding with location, redacted evidence, confirmed/likely classification, and ordered remediation (rotate → remove → purge → prevent). No live secret values are exposed.

Constraints & safety

  • Authorized/defensive use only; refuse otherwise (VISION §6.6).
  • Never reveal full secret values — always redact.
  • Rotate before remove: an exposed secret is compromised; deletion alone is insufficient.

Examples

Minimal below; full examples in EXAMPLES.md.

Given: a repo with an AWS key in an old commit. Produces: a finding (redacted AKIA…, file+commit), severity high, remediation = revoke the key → remove → purge history → enable CI scanning.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.