Skip to content
 
 

Latest commit

 

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Claude Bug Bounty Hunter

A Claude Code skill that turns Claude into your AI bug bounty co-pilot. Point it at any target and Claude maps the attack surface, runs your scanners, validates findings, and writes the HackerOne or Bugcrowd report — all from a single conversation.

License: MIT Python 3.8+ Stars

Quick Start · Tools · Pipeline · Claude Prompts · Install

The Trilogy

Repo What It Does
claude-bug-bounty ← you are here AI-assisted web2 + web3 bug bounty — recon, scanning, validation, report writing
web3-bug-bounty-hunting-ai-skills Smart contract security skills for Claude — 10 bug classes, Foundry PoC templates, real Immunefi case studies
public-skills-builder Feed 500 public writeups → get skill files back out

Use all three together: public-skills-builder generates skills → web3-bounty-ai-skills holds the knowledge → claude-bug-bounty runs the hunt.

Also in This Repo

File What's Inside
SKILL.md Installable Claude Code skill — full hunting methodology, recon, validation, reporting
docs/payloads.md Complete payload arsenal — XSS, SQLi, SSRF, XXE, SSTI, SAML, JWT, CSRF, race conditions, and more
docs/smart-contract-audit.md Web3 audit guide — Immunefi workflow, EVM/Solana/CosmWasm, Foundry PoC templates, real paid writeups
web3/ Full smart contract security skill chain — 10 bug classes, Foundry PoC templates, case studies, AI tools
CLAUDE_INTEGRATION.md Claude API integration examples

What It Does

Target → Recon → Intel → Hunt → Validate → Report → Submit

Every step is Claude-assisted. Drop into Claude Code, point it at a target, and it will:

  • Enumerate subdomains, live hosts, and crawl endpoints
  • Pull CVEs and disclosed H1 reports for the detected tech stack
  • Generate a prioritized attack mindmap
  • Run scanners for IDOR, SSRF, XSS, SQLi, OAuth, GraphQL, LLM injection
  • Walk you through the 4-gate validation checklist
  • Write a submission-ready HackerOne or Bugcrowd report

Quick Start

Recommended: Use with Claude Code for the full AI co-pilot experience.

Step 1 — Clone and install tools

git clone https://github.com/shuvonsec/claude-bug-bounty.git
cd claude-bug-bounty
chmod +x install_tools.sh && ./install_tools.sh

Step 2 — Install the Claude Code skill

mkdir -p ~/.claude/skills/bug-bounty
cp SKILL.md ~/.claude/skills/bug-bounty/SKILL.md

Step 3 — Start hunting

claude

Then just talk to Claude:

"Run recon on target.com and tell me what to hunt"
"I found a potential IDOR on /api/invoices — validate it"
"Write a HackerOne report for this SSRF finding"
"What GraphQL bugs should I look for on this target?"

Claude reads your recon files, reasons about the attack surface, and drives the tools.


Or run the pipeline directly (no Claude Code):

# Full automated hunt
python3 hunt.py --target hackerone.com

# Step by step
./recon_engine.sh target.com
python3 learn.py --tech "nextjs,graphql,jwt" --target target.com
python3 hunt.py --target target.com --scan-only
python3 validate.py
python3 report_generator.py findings/

Tool Reference

Core Pipeline

Tool What It Does
hunt.py Master orchestrator — chains recon → scan → report
recon_engine.sh Subdomain enum, DNS resolution, live host detection, URL crawling
learn.py Pulls CVEs + disclosed reports for a tech stack from GitHub Advisory + NVD
mindmap.py Generates a Mermaid attack mindmap with a prioritized test checklist
validate.py Interactive 4-gate validator — scope, impact, duplicate check, CVSS score
report_generator.py Outputs a formatted HackerOne/Bugcrowd markdown report

Vulnerability Scanners

Tool Targets
h1_idor_scanner.py Object-level + field-level IDOR via parameter swapping
h1_mutation_idor.py GraphQL mutation IDOR — cross-account object access
h1_oauth_tester.py OAuth flows — PKCE enforcement, state bypass, redirect_uri abuse
h1_race.py Race conditions — parallel request timing, TOCTOU
zero_day_fuzzer.py Smart fuzzer for novel bugs scanners miss (logic, edge cases, access control)
cve_hunter.py Fingerprints tech stack and matches against known CVEs
vuln_scanner.sh Orchestrates nuclei + dalfox + sqlmap

AI / LLM Testing

Tool Targets
hai_probe.py Probes AI chatbot features for IDOR, prompt injection, data exfil
hai_payload_builder.py Generates prompt injection payloads (direct, indirect, ASCII smuggling)
hai_browser_recon.js Browser-side recon of AI feature endpoints

Utilities

Tool What It Does
sneaky_bits.py JS secret finder + endpoint extractor from JS bundles
target_selector.py Scores and ranks bug bounty programs by ROI
scripts/dork_runner.py Google dork automation for passive recon
scripts/full_hunt.sh Shell wrapper for the full pipeline

Full Hunt Pipeline

# 1. Recon — enumerate subdomains, resolve DNS, find live hosts, crawl URLs
./recon_engine.sh target.com
# → recon/target.com/{subs.txt, live-hosts.txt, urls.txt}

# 2. Intel — pull CVEs and prior disclosures for the tech stack
python3 learn.py --tech "nextjs,graphql,jwt" --target target.com
# → recon/target.com/intel.md

# 3. Attack map — generate prioritized hunting checklist
python3 mindmap.py --target target.com --type api --tech "graphql,jwt"

# 4. Hunt — run all scanners
python3 hunt.py --target target.com --scan-only

# 5. Validate — 4-gate check before writing anything
python3 validate.py --output findings/target-finding.md

# 6. Report — generate submission-ready markdown
python3 report_generator.py findings/

Vulnerability Classes Covered

Web Application

Class Techniques
IDOR Object-level, field-level, GraphQL mutation, UUID enumeration
SSRF Redirect chain bypass, DNS rebinding, cloud metadata (169.254.x), protocol abuse
XSS Reflected, stored, DOM, postMessage, CSP bypass, mXSS
SQLi Error-based, blind, time-based, ORM bypass, second-order
OAuth Missing PKCE, state parameter bypass, redirect_uri abuse, implicit flow downgrade
Race Conditions Parallel requests, TOCTOU, limit overrun, coupon reuse
Cache Poisoning Unkeyed headers, parameter cloaking, fat GET
Business Logic Price manipulation, workflow skip, negative quantity, role escalation
File Upload Extension bypass, MIME confusion, polyglots, path traversal in filename
XXE Classic entity injection, blind OOB via DNS/HTTP
HTTP Smuggling CL.TE, TE.CL, TE.TE, H2.CL request tunneling

AI / LLM Features

Class Techniques
Prompt Injection Direct override, indirect via document/URL, jailbreak chains
Chatbot IDOR Cross-account history access, conversation ID enumeration
System Prompt Leak Extraction via roleplay, encoding bypass, token boundary probing
LLM RCE Code execution via AI tool use, sandboxed environment escape
ASCII Smuggling Invisible unicode characters as covert exfil channels

Web3 / DeFi

Class Techniques
Reentrancy Single-function, cross-function, cross-contract, read-only
Flash Loan Attacks Price oracle manipulation, collateral inflation
Access Control Missing onlyOwner, misconfigured roles, function visibility
Integer Issues Overflow, underflow, precision loss, division before multiplication
Signature Replay Missing nonce, chain ID not included, front-running signatures

Claude Prompts

Copy-paste these into Claude Code after running recon:

# Map the attack surface
"I've run recon on [target]. Here's live-hosts.txt and urls.txt.
What are the highest-priority endpoints to test for IDOR and why?"

# Tech-stack guided hunting
"Target uses NextJS + GraphQL + JWT auth. Rank the top 5 bug classes
I should hunt, ordered by payout likelihood on HackerOne."

# Validate a finding
"I found [vuln]. Here's the request and response. Walk me through
the 4 validation gates. What's the CVSS 3.1 score and business impact?"

# Write the report
"Write a HackerOne report for this [vuln type].
PoC steps: [1, 2, 3]. Target: [URL]. Impact: [what attacker can do]."

# Chain a low finding
"I have an open redirect at [URL]. How can I chain this into
an OAuth code theft or ATO? What conditions do I need?"

Installation

Prerequisites

# macOS
brew install go python3 node jq

# Linux (Debian/Ubuntu)
sudo apt install golang python3 nodejs jq

One-command install

chmod +x install_tools.sh && ./install_tools.sh

Installs: subfinder httpx dnsx nuclei katana waybackurls gau dalfox ffuf anew qsreplace assetfinder gf interactsh-client sqlmap XSStrike SecretFinder LinkFinder + nuclei-templates

Configuration

cp config.example.json config.json
# Add your ProjectDiscovery Chaos API key and HackerOne token

Output Structure

claude-bug-bounty/
├── recon/
│   └── target.com/
│       ├── subs.txt           # All subdomains
│       ├── live-hosts.txt     # Live HTTP(S) hosts with status codes
│       ├── urls.txt           # Crawled URLs
│       └── intel.md           # CVE + disclosed report intel
├── findings/
│   └── target-vuln-type.md   # Validated finding notes
└── reports/
    └── h1-report-YYYYMMDD.md # Submission-ready report

Resources


Legal

For authorized security testing only.

Only test targets within an approved bug bounty scope. Never test systems without explicit permission. Follow responsible disclosure — report to the vendor, not publicly. Read each program's rules of engagement before hunting.


Contributing

PRs are welcome. If you've found a bug class that's missing, have a better Claude prompt, or want to add platform support (YesWeHack, Synack, HackenProof) — open a PR.

Good contributions:

  • New vulnerability scanners
  • Claude prompt templates for specific bug classes
  • Payload additions to docs/payloads.md
  • Real-world hunting methodology improvements
git checkout -b feature/my-contribution
git commit -m "Add: description of what you added"
git push origin feature/my-contribution
# Open a PR with a short description

Questions, ideas, or want to collaborate? Reach out:

Platform Link
Email shuvonsec@gmail.com
GitHub github.com/shuvonsec
LinkedIn linkedin.com/in/shuvonsec
X / Twitter x.com/shuvonsec
Instagram instagram.com/shuvonsec

MIT License · Built by bug hunters, for bug hunters

Star if this helped you find a bug

About

Claude Code skill for AI-assisted bug bounty hunting — recon, IDOR, XSS, SSRF, OAuth, GraphQL, LLM injection, and report generation

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages