Skip to content
Back to skills

Secrets Disclosure

ASecurity

Hunting exposed API keys, tokens, credentials and secrets in JS bundles, responses, headers, source maps and dumped files using regex and trufflehog/gitleaks, then safely validating them. Tier 1. Use after crawling/file discovery on any authorized target.

  • 16 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 17, 2026
securitygoawsgitapidatabasebackendsecurity

Works with

  • cli
  • api

Security analysis

A100/100

Scanned November 17, 2026

npx -y skills add AnandJogawade/Zazy-Pentest-Plugin-for-Claude --skill secrets-disclosure --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Secrets Disclosure?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Secrets Disclosure
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/anandjogawade-secrets-disclosure/badge)](https://www.skillsdirectory.com/skills/anandjogawade-secrets-disclosure)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: secrets-disclosure
description: Hunting exposed API keys, tokens, credentials and secrets in JS bundles, responses, headers, source maps and dumped files using regex and trufflehog/gitleaks, then safely validating them. Tier 1. Use after crawling/file discovery on any authorized target.
---

# Secrets Disclosure (keys & tokens)

A leaked live credential is often the shortest path to impact. Mine everything reachable, then prove the secret works — safely and scope-limited.

## Trigger phrases
`secrets, api keys, leaked tokens, hardcoded credentials, trufflehog, gitleaks, secret scanning, exposed keys`

## Method
1. Collect sources: all JS bundles + `.map` (`getjs`, `xnLinkFinder`), inline HTML/JSON, response headers, cookies, `.env`/config/backup files (from `exposed-files`/`script-source-control`), `.git` dumps, GraphQL/API responses.
2. Scan: `trufflehog filesystem ./loot --only-verified`, `trufflehog git <dumped-repo>`, `gitleaks detect --source ./loot`. Regex JS for provider patterns: AWS `AKIA[0-9A-Z]{16}`, Google `AIza[0-9A-Za-z_-]{35}`, Slack `xox[baprs]-`, Stripe `sk_live_`, GitHub `ghp_`/`github_pat_`, JWTs `eyJ`, private keys `-----BEGIN`, Firebase, Mailgun, Twilio, generic `api_key`/`secret`/`token=`.
3. Context mining: hidden API routes, feature flags, internal hostnames, signing keys done client-side → feed `jwt`, `api-security`, `server-leaks`.
4. **Safe validation** (prove it's live, cause no change): AWS `aws sts get-caller-identity` (read-only); API keys → a benign read/`/me`/quota endpoint; GitHub token `GET /user`; Stripe → read-only `GET /v1/account`. Never create/delete/charge; stop at proof.

## Modern / rare techniques
- **Source-map secret recovery**: `sourcesContent` holds pre-minified code with secrets stripped from the bundle.
- **Heap/actuator dumps**: grep `/actuator/heapdump` and memory dumps for JWTs/keys/`Authorization` → `exposed-actuators`.
- **CI/supply-chain keys**: tokens in exposed workflows/lockfiles → dependency-confusion/CI pivot.

## Escalation / chaining
Live cloud key → `cloud-pentest`; DB creds → `database-enumeration`; signing key → `jwt` forgery; internal endpoints → `api-security`/SSRF. Sourced from `exposed-files`, `source-disclosure`, `script-source-control`, `exposed-actuators`.

## Backend & tooling
Kali/HexStrike (trufflehog/gitleaks/jq) + provider CLIs for read-only validation only.

## Verification (background, before reporting)
Validate each secret out-of-band with a non-mutating call; re-confirm it is active (not rotated/decoy) before reporting. Report only verified-live secrets as confirmed; flag unverified ones separately.

## Evidence
Where found (URL/file/line), redacted secret + fingerprint, read-only proof-of-validity output, scope/impact, remediation (rotate immediately, move to secret store, strip from client, `.map` off in prod).

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in security →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.