Advanced GitHub Dorking & Secret Hunting Tool
DigHub is a CLI tool that scans a GitHub organization or user's public repositories for exposed secrets, credentials, and sensitive files. It ships with 140+ dork patterns — covering cloud, database, payment, and AI/LLM provider keys (OpenAI, Anthropic, Gemini, Hugging Face, Groq, and more) — plus concurrent scanning and multiple output formats (terminal, JSON, CSV, HTML).
go install github.com/ahmetartuc/dighub@latestOr build from source:
git clone https://github.com/ahmetartuc/dighub.git
cd dighub && go build -o dighub# Scan an organization
dighub -org <github-org> -token <your_github_pat>
# Scan a user
dighub -user <github-user> -token <your_github_pat>
# High-priority findings only, exported as HTML
dighub -org myorg -token ghp_xxx -priority high -output html -out-file report.html
# Faster scan, filter to specific categories
dighub -org myorg -token ghp_xxx -workers 10 -include "AWS,GitHub,SSH"Both -flag and --flag syntax work.
| Flag | Description |
|---|---|
-org, -o |
GitHub organization to scan |
-user, -u |
GitHub user to scan (alternative to -org) |
-token, -t |
GitHub Personal Access Token (required) |
-output, -f |
Output format: terminal, json, csv, html (default: terminal) |
-out-file, -w |
Output file path (auto-generated if omitted) |
-priority, -p |
Filter by priority: all, high, medium, low (default: all) |
-include, -i |
Include only these dork categories (comma-separated) |
-exclude, -e |
Exclude these dork categories (comma-separated) |
-workers, -W |
Concurrent workers, 1–20 (default: 5) |
-delay, -d |
Delay between requests in seconds (default: 2) |
-verbose, -v |
Verbose output |
-quiet, -q |
Quiet mode — only show matches |
- Go to Settings → Developer Settings → Personal Access Tokens.
- Generate a classic token with the
public_reposcope. - Pass it with the
-tokenflag.
This tool is intended for authorized security research and educational purposes only. Only scan repositories and organizations you have permission to test, and always comply with applicable laws and GitHub's Terms of Service. The authors are not responsible for misuse.
MIT — see LICENSE. Contributions welcome; see CONTRIBUTING.md.
