secret-scanner

secret-scanner is a skill for Claude Code from NovaCode37/claude-security-skills. It costs 72 tokens per session (704 once invoked), scanned A, original, MIT.

A codebase scanner for hardcoded secrets such as API keys, access tokens, passwords, and private keys. It combines known provider patterns with a measure of how random or secret-like a string looks.

In plain words
What is it for?
Use it for repository audits, pre-commit or pre-push checks, leak investigations, and automated scans of source folders, with optional JSON output and test-directory inclusion.
Why use it?
It helps catch credentials accidentally committed to a repository or exposed before publishing it. Findings include locations and redacted values, and a non-zero result can fail a CI check.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the claude-security-skills plugin — 8 skills shipped together

Good fit Use it for repository audits, pre-commit or pre-push checks, leak investigations, and automated scans of source folders, with optional JSON output and test-directory inclusion.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/novacode37/claude-security-skills/secret-scanner
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add NovaCode37/claude-security-skills --skill secret-scanner
Clone the repo
git clone --depth 1 https://github.com/NovaCode37/claude-security-skills

Made for: Claude Code.

Or install claude-security-skills, the plugin that ships this one along with the rest of its 8 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for secret-scanner

README.md
[![agentmods](https://agentmods.dev/badge/skills/novacode37/claude-security-skills/secret-scanner/github.svg)](https://agentmods.dev/skills/novacode37/claude-security-skills/secret-scanner)
Your own site
<a href="https://agentmods.dev/skills/novacode37/claude-security-skills/secret-scanner"><img src="https://agentmods.dev/badge/skills/novacode37/claude-security-skills/secret-scanner/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for secret-scanner

Your own site · 80×15
<a href="https://agentmods.dev/skills/novacode37/claude-security-skills/secret-scanner"><img src="https://agentmods.dev/badge/skills/novacode37/claude-security-skills/secret-scanner.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 72 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 704 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00072 $0.00704
Opus 5 $0.00036 $0.00352
Sonnet 5 $0.00014 $0.00141
Haiku 4.5 $0.00007 $0.00070

Measured 11d ago against content hash 7fdb9abf50ee, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

secret-scanner scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (engine.py, tests/test_engine.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/secret-scanner/SKILL.md · 80 lines

How it starts

The opening of the file, as written. The whole thing — 80 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Secret Scanner

A dependency-free engine that finds committed credentials by combining high-signal vendor regex rules (AWS, GitHub, GCP, Stripe, OpenAI, Anthropic, Slack, …) with Shannon-entropy gating to catch generic secrets while keeping false positives low.

When to use this skill

  • "Are there any secrets / API keys committed in this repo?"
  • "Scan this folder before I open-source it."
  • Pre-commit / pre-push credential checks.
  • Investigating a suspected leak.

How to run it

The engine has no third-party dependencies — just Python 3.9+.

# Human-readable report (default)
python skills/secret-scanner/engine.py .

# Machine-readable JSON (pipe into other tooling)
python skills/secret-scanner/engine.py . --json

# Tune entropy sensitivity (lower = more findings)
python skills/secret-scanner/engine.py src/ --min-entropy 3.0

# Include test directories (skipped by default)
python skills/secret-scanner/engine.py . --include-tests

Exit codes: 0 clean · 1 findings present · 2 usage error. This makes it drop-in for CI: a non-zero exit fails the build.

How to interpret results

Each finding reports severity, rule_id, path:line:column, a redacted preview of the value (never the full secret), and the measured entropy.

Severity guide:

  • critical — live credential material (private keys, cloud secret keys, provider tokens). Rotate immediately.
  • high — access key IDs, third-party API keys.
  • medium — generic password=/secret= assignments.
  • low — JWTs and other context-dependent values; verify before acting.
  1. Run the scanner with --json and parse the findings.
  2. For each finding, open the file at the reported line to confirm it is a real secret and not a placeholder/test fixture.
  3. Report confirmed leaks grouped by severity, and advise the user to rotate the credential (committing a fix does not un-leak git history).
  4. If the secret is in git history, recommend git filter-repo / BFG and credential rotation — deleting the line is not enough.

Read the full file on GitHub · 80 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 80 lines · 72 tokens per session scan A 7fdb9abf50ee

Subscribe to this mod's changes

secret-scanner is a skill published in the GitHub repository NovaCode37/claude-security-skills (11 stars, last pushed yesterday), licensed MIT. It adds 72 tokens to every session and 704 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

owasp-security

Use when reviewing code for security vulnerabilities, implementing authentication/authorization, handling user input, or discussing web application security. Covers OWASP Top 10:2025, ASVS 5.0, LLM Top 10 (2025), and Agentic AI security (2026).

agamm/claude-code-owasp · 62 tokens

report-writing

Bug bounty report writing for H1/Bugcrowd/Intigriti/Immunefi — report templates, human tone guidelines, impact-first writing, CVSS 3.1 scoring, title formula, impact statement formula, severity decision guide, downgrade counters, pre-submit checklist. Use after validating a finding and before submitting. Never use…

Mikacr1138/claude-bug-bounty · 82 tokens

triage-validation

Finding validation before writing any report — 7-Question Gate (all 7 questions), 4 pre-submission gates, always-rejected list, conditionally valid with chain table, CVSS 3.1 quick reference, severity decision guide, report title formula, 60-second pre-submit checklist. Use BEFORE writing any report. One wrong answer…

Mikacr1138/claude-bug-bounty · 87 tokens

web2-recon

Web2 recon pipeline — subdomain enumeration (subfinder, Chaos API, assetfinder), live host discovery (dnsx, httpx), URL crawling (katana, waybackurls, gau), directory fuzzing (ffuf), JS analysis (LinkFinder, SecretFinder), continuous monitoring (new subdomain alerts, JS change detection, GitHub commit watch). Use when…

Mikacr1138/claude-bug-bounty · 103 tokens

security-arsenal

Security payloads, bypass tables, wordlists, gf pattern names, always-rejected bug list, and conditionally-valid-with-chain table. Use when you need specific payloads for XSS/SSRF/SQLi/XXE/IDOR/path-traversal, bypass techniques, or to check if a finding is submittable. Also use when asked about what NOT to submit.

Mikacr1138/claude-bug-bounty · 84 tokens

web2-vuln-classes

Complete reference for 18 web2 bug classes with root causes, detection patterns, bypass tables, exploit techniques, and real paid examples. Covers IDOR, auth bypass, XSS, SSRF (11 IP bypass techniques), SQLi, business logic, race conditions, OAuth/OIDC, file upload (10 bypass techniques), GraphQL, LLM/AI (ASI01-ASI10…

Mikacr1138/claude-bug-bounty · 132 tokens