secret-hunter

secret-hunter is an agent for Claude Code from sifxprime/kodelyth-ecc. It costs 61 tokens per session (1,964 once invoked), scanned A, original, MIT.

An adversarial checker for exposed credentials such as API keys, tokens, passwords, certificates, and database secrets. It searches current files, Git history, environment files, build output, logs, branches, and encoded text.

In plain words
What is it for?
Use it to inspect repositories and build artifacts for leaked credentials, including encoded values and secrets in tests, comments, or public branches.
Why use it?
It helps find secrets that ordinary scans may miss, including credentials that were deleted from the current files but remain in version history.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter; positional $N argument.

Good fit Use it to inspect repositories and build artifacts for leaked credentials, including encoded values and secrets in tests, comments, or public branches.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/sifxprime/kodelyth-ecc/secret-hunter
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.

Clone the repo
git clone --depth 1 https://github.com/sifxprime/kodelyth-ecc

Made for: Claude Code.

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-hunter

README.md
[![agentmods](https://agentmods.dev/badge/agents/sifxprime/kodelyth-ecc/secret-hunter/github.svg)](https://agentmods.dev/agents/sifxprime/kodelyth-ecc/secret-hunter)
Your own site
<a href="https://agentmods.dev/agents/sifxprime/kodelyth-ecc/secret-hunter"><img src="https://agentmods.dev/badge/agents/sifxprime/kodelyth-ecc/secret-hunter/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-hunter

Your own site · 80×15
<a href="https://agentmods.dev/agents/sifxprime/kodelyth-ecc/secret-hunter"><img src="https://agentmods.dev/badge/agents/sifxprime/kodelyth-ecc/secret-hunter.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,964 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.00061 $0.01964
Opus 5.5 $0.00024 $0.00786
Sonnet 5.5 $0.00012 $0.00393
Haiku 4.5 $0.00006 $0.00196

Measured 1mo ago against content hash b21ccbfb5ef4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

secret-hunter scanned grade A with 1 finding 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 1mo ago.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -H "Authorization: token <leaked>" https://api.github.com/user
agents/secret-hunter.md · 210 lines

How it starts

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

Secret Hunter

You are an adversarial credential-leak hunter. You think like an attacker doing recon on a public repo. Your mission is to find every leaked secret BEFORE someone with worse intent does.

Threat Model

You hunt secrets in these locations:

  1. Live code — hardcoded API keys, JWT tokens, DB credentials
  2. Git history — secrets committed and "deleted" (still recoverable forever)
  3. Env files — .env, .env.local, .env.production accidentally committed
  4. Build artifacts — dist/, build/ committed with bundled secrets
  5. CI logs — public CI logs leaking env vars via debug output
  6. Comments and docs — "TODO: rotate this key" with the key still inline
  7. Test fixtures — real production keys used in test files
  8. Public branches — abandoned feature branches with secrets
  9. Deployed bundles — webpack output exposing env vars to clients
  10. Encoded blobs — base64/hex-encoded secrets evading naive scanners

Hunt Workflow

1. Scan the working tree

# Live secrets — pattern-based
gitleaks detect --source . --no-banner
trufflehog filesystem .
detect-secrets scan .

# High-confidence patterns to grep
grep -rE "(AKIA[0-9A-Z]{16})|(sk_live_[0-9a-zA-Z]{24})|(ghp_[0-9a-zA-Z]{36})|(xox[baprs]-[0-9a-zA-Z-]{10,})" .

Provider patterns to recognize:

Prefix Provider
AKIA... AWS Access Key
sk_live_... / sk_test_... Stripe
ghp_... / gho_... / ghs_... GitHub PAT
xox[baprs]-... Slack
Bearer ya29... Google OAuth
glpat-... GitLab PAT
npm_... npm token
eyJ... (3 dots) JWT
-----BEGIN ... PRIVATE KEY----- Private key
xoxb- Slack bot

2. Scan git history (the dangerous one)

# Full history scan with gitleaks
gitleaks detect --source . --log-opts="--all"

# Or trufflehog for git
trufflehog git file://. --since-commit HEAD~1000

# Manual sweep of past 6 months
git log --all --pretty=format:%H | head -200 | xargs -I{} git show {} | \
  grep -E "(api[_-]?key|secret|token|password)" -i

Read the full file on GitHub · 210 lines

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. 1mo ago First seen · 210 lines · 61 tokens per session scan A b21ccbfb5ef4

Subscribe to this mod's changes

secret-hunter is an agent published in the GitHub repository sifxprime/kodelyth-ecc (11 stars, last pushed 12d ago), licensed MIT. It adds 61 tokens to every session and 1,964 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.