Tooluck logoTooluck
SKILL.md

github-secret-hunting

Agent skill fromuphiago/recon-skills

Find leaked API keys, tokens, and credentials in public GitHub repositories.

How to install github-secret-hunting

install github-secret-hunting
# install the recon-skills pack with the skills CLI
npx skills add uphiago/recon-skills

# or add only this skill to Claude Code: copy the folder

recon/github-secret-hunting/

# into

~/.claude/skills/github-secret-hunting/ (all projects)

.claude/skills/github-secret-hunting/ (one project)

recon/github-secret-hunting/SKILL.md

MITFull file
1# GitHub Secret Hunting
2
3Scan public GitHub repositories for leaked API keys, tokens, passwords, and internal infrastructure details. Developers accidentally push secrets constantly — this skill uses targeted dorking, automated scanning tools, and real-time monitoring to find credentials before the developer notices and revokes them.
4
5## When to Use
6
7- Target has public repositories under an organization account.
8- JS bundle analysis reveals internal service names — search GitHub for related config files.
9- Need to find valid API keys for cloud services, payment gateways, or third-party integrations.
10- The target uses CI/CD systems that may leak tokens in build logs or workflow files.
11- Want real-time monitoring for new secret leaks from the target org.
12
13## Prerequisites
14
15- `terminal` with python3, curl, git.
16- GitHub Personal Access Token (only `public_repo` scope needed).
17- Tool dependencies: TruffleHog, GitDorker, gitleaks.
18
19## How to Run
20
21```bash
22# Basic GitHub code search for sensitive patterns in target repos
23echo "target.com" | while read domain; do
24 curl --max-time 30 --connect-timeout 10 -s -H "Authorization: token $GITHUB_TOKEN" \
25 "https://api.github.com/search/code?q=$domain+filename:.env" \
26 | jq '.items[]?.html_url'
27done
28```
29
30## Quick Detection
31
32```bash
33# Basic GitHub code search for sensitive patterns in target repos
34echo "target.com" | while read domain; do
35 curl --max-time 30 --connect-timeout 10 -s -H "Authorization: token $GITHUB_TOKEN" \
36…

Excerpt shown under the repository's MIT license.

More skills in recon-skills

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates