Skip to content

About

A comprehensive, agent-powered bug bounty hunting system

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

51 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hercules-Hunt

An operating system for AI-augmented bug bounty hunting.

Not a tool. Not a scanner. A hunter's operating system — 460+ files across 25 modules, with Python, JavaScript, PowerShell, Bash, MCP, and 2,500+ pages of markdown methodology. Deploys to 18 agentic coding CLIs (OpenCode, Claude Code, Codex CLI, Cursor, Windsurf, Aider, and more) via a single installer.


The Philosophy

Hercules-Hunt treats bug bounty hunting as a craft, not a factory process.

Most frameworks give you a checklist — "test for X, test for Y, write it up." Hercules-Hunt gives you an operating system — agents that remember the methodology, rules that constrain the AI, tools that execute in any language, and a philosophy that keeps you hunting when the signal is gone.

Three forces drive every great hunter:

  • Curiosity — Why does this feature work this way? What shortcut did the developer take?
  • Discipline — 10 minutes per test. 20 if there's signal. Rotate when there isn't.
  • Integrity — Prove it or drop it. No theoretical findings.

Read the full philosophy: soul.md, purpose.md, goal.md


What's Inside

40 AI Agents

Every agent is a complete, self-contained workflow — invoke it and the AI knows exactly what to do:

Agent Role File
recon-agent Subdomain enumeration, live host discovery, tech fingerprinting agents/recon-agent.md
recon-ranker Attack surface prioritization by IDOR likelihood, API surface, tech stack agents/recon-ranker.md
p1-warrior Systematic P1 hunting — delegates to 10 specialist sub-agents agents/p1-warrior.md
chain-builder Exploit chain builder — finds B and C for every A agents/chain-builder.md
chain-validator Validates exploit chains are independently reproducible agents/chain-validator.md
p1-validator Pre-flight validation before reaching primary validator agents/p1-validator.md
scope-enforcer Checks findings against program scope before hunting begins agents/scope-enforcer.md
target-onboarding Gathers initial intelligence on new targets agents/target-onboarding-agent.md
triage-readiness Reviews evidence and PoC reproducibility before submission agents/triage-readiness.md
js-analysis Extracts endpoints, secrets, cloud keys from JS bundles agents/js-analysis.md
js-deobfuscation Reverses webpack bundles, eval-based obfuscation agents/js-deobfuscation.md
report-writer H1/Bugcrowd/Intigriti/Immunefi reports with CVSS scoring agents/report-writer.md
validator 7-Question Gate + 4-gate checklist — kills weak findings fast agents/validator.md
autopilot Autonomous end-to-end hunt loop with checkpoints agents/autopilot.md
orchestrator Recon-to-report pipeline orchestrator agents/orchestrator.md
browser-automator Playwright-based browser automation for complex flows agents/browser-automator.md
exploit-researcher CVE research, PoC matching, exploit development agents/exploit-researcher.md
network-analyst Packet inspection, protocol dissection, IDS rules agents/network-analyst.md
redteam-planner Engagement design, C2, MITRE ATT&CK mapped agents/redteam-planner.md
reverse-engineer Binary analysis, firmware RE, Frida instrumentation agents/reverse-engineer.md
security-reviewer Source code audit against OWASP Top 10 + CWE Top 25 agents/security-reviewer.md
ai-researcher LLM red-teaming, prompt injection, jailbreak techniques agents/ai-researcher.md
token-auditor Meme coin/token security — honeypot, rug pull, LP drain agents/token-auditor.md
web3-auditor Smart contract audit — 10 DeFi bug classes agents/web3-auditor.md
mobile-testing-agent APK/iOS acquisition, decompilation, Frida instrumentation agents/mobile-testing-agent.md
windows-workflow-agent Windows-native hunting with curl.exe, PowerShell, WSL agents/windows-workflow-agent.md
chain-rules-agent Chain philosophy and primitive taxonomy agents/chain-rules-agent.md
+ 10 specialist sub-agents IDOR, SSRF, XSS, auth-bypass, race-condition, business-logic, file-upload, api-misconfig, graphql, ssti agents/*-hunter.md
+ 3 post-hunt agents program-researcher, evidence-reviewer, triage-defender agents/*.md

13 Behavioral Rules

Rules are the AI's guardrails — always-active constraints loaded at session start:

rules/hunting.md · rules/reporting.md · rules/scope.md · rules/recon.md · rules/chain-rules.md · rules/evidence.md · rules/mindset.md · rules/js-analysis.md · rules/js-deobfuscation.md · rules/auth-testing.md · rules/api-testing.md · rules/mobile-testing.md · rules/windows-workflow.md

100+ Executable Tools (4 Languages × 10 Standard + JS Chunk Toolkit + Legacy)

10 standardized tools across all 4 runtimes, plus the JS Chunk Analysis Toolkit (10 analyzers/scripts, 3 PS1 pipeline tools, 5 config/json files), plus legacy scripts:

Standard Tools (10 × 4 = 40 files):

Tool Python JS PS Bash Purpose
extract-apis 889 741 1,058 702 API endpoint discovery
extract-js 902 743 948 633 JS extraction & secret scanning
deep-hunt 1,106 722 1,089 620 Multi-pass systematic hunting
fast-hunt 999 597 815 606 Quick surface probes
https-probing 1,129 676 831 599 TLS/cert/header analysis
extract-parameters 1,303 666 1,007 708 Parameter extraction
extract-functionalities 1,578 1,063 1,286 686 User function mapping
endpoint-fuzzer 1,503 695 929 589 Path/method/extension fuzzing
auth-tester 1,649 930 1,275 578 Auth bypass & session testing
report-builder 1,520 848 1,498 633 CVSS 3.1 report generation

Legacy Tools: curl-hunter, recon-toolkit, fuzzer-toolkit, js-analyzer, evidence-toolkit, powershell-lib, jiggy (PS + Bash), python-hunter.py

JS Chunk Toolkit (20+ executable modules): scripts/deobfuscate.js · scripts/webpack-chunk-extractor.js · scripts/source-map-restore.js · analyzers/vulnerability-analyzer.js · analyzers/function-extractor.js · analyzers/deep-analyzer.js · analyzers/jwt-decoder.js · analyzers/cloud-enum.js · analyzers/graphql-finder.js · scanners/secret-scanner.ps1 · utils/false-positive-filter.js · utils/deduplicator.js · utils/severity-matcher.js · utils/post-processor.js · utils/harden-base.js · scripts/run-all.ps1

Index/loaders: tools/bash/index.sh, tools/powershell/index.ps1, tools/javascript/index.js, tools/python/__init__.py

JS Chunk Analysis Toolkit (40+ files)

Production-grade JS bundle analysis pipeline for bug bounty — deobfuscates, extracts secrets, detects vulnerabilities, and produces initial-analysis.md reports. Runs on Node.js (zero npm deps) + PowerShell 5.1+.

Component File Capabilities
Deobfuscation Engine scripts/deobfuscate.js 30 features — 13 packer detectors, string array/base64/hex/unicode extraction, anti-debug, self-defending, eval strings, nested obfuscation, variable analysis, CFF detection, hidden payloads, unicode attacks, health score
Webpack Chunk Extractor scripts/webpack-chunk-extractor.js 18 features — module map, entry points, dep graph, circular deps, vendor fingerprint, code splitting, async boundaries, plugin fingerprint, scope hoisting, budget analysis, runtime chunk names
Source Map Restorer scripts/source-map-restore.js 11+ features — version validation, minifier fingerprint, VLQ analysis, V3 extensions, variable recovery, source estimation, dependency analysis, auto-download
Vulnerability Analyzer analyzers/vulnerability-analyzer.js 22+ vulnerability classes, 150+ regex patterns, CVSS 3.1 scoring, confidence/risk scoring, data classification, CVE hints, attack vectors, remediation priority, initial-analysis.md reports
Function Extractor analyzers/function-extractor.js 12 function types from minified JS (webpack modules, arrow funcs, class methods, generators, exported funcs), cyclomatic complexity, IIFE/ESM export detection, callback/async analysis, arg distribution, nesting depth
Deep Analyzer analyzers/deep-analyzer.js 20 features — anti-debug bypass, CFF recovery, cloud enumeration, JWT decode, GraphQL introspection, prototype pollution
Secret Scanner scanners/secret-scanner.ps1 45+ secret patterns, context extraction, FP filtering, severity scoring, pattern hit rates
False Positive Filter utils/false-positive-filter.js 48 FP rules across 8 categories — minified libs (40+ libs), HTML impostors, webpack runtime, contextual regex, file patterns, correlation rules, severity downgrade
Deduplicator utils/deduplicator.js Two-pass exact + near-match dedup, MD5 fingerprinting, highest-severity merging, reduction stats
Severity Matcher utils/severity-matcher.js CVSS 3.1 full vector (AV/AC/PR/UI/S/C/I/A), context-aware modifiers from severity-matrix.json
Post-Processor utils/post-processor.js Chains FP filter -> dedup -> severity matcher into single pipeline, intermediate steps preserved
Hardened Utilities utils/harden-base.js ReDoS-safe regex, binary detection, 50MB file limits, circular ref JSON, progress tracking, encoding detection, batch processing
Pipeline Orchestrator scripts/run-all.ps1 8-step pipeline: download -> beautify -> secret scan -> deobfuscate -> chunk extract -> vulnerability scan -> function extract -> post-process

Config: config/patterns.json (22+ vuln classes, 150+ regex), config/patterns_cli.json (CLI keywords), config/false-positive-rules.json (48 rules), config/severity-matrix.json (CVSS calculator)

20 MCP Servers

MCP (Model Context Protocol) servers bridge the AI with external services over JSON-RPC 2.0:

recon-mcp · dns-recon-mcp · url-crawl-mcp · payload-mcp · interactsh-mcp · report-mcp · hercules-hunt-mcp · hackerone-mcp · burp-mcp-client · caido-mcp-client · js-analysis-mcp · deep-hunt-mcp · fast-hunt-mcp · orchestrator-mcp · batch-mcp · hydration-mcp · auth-tester-mcp · https-mcp · evidence-mcp · validation-mcp

8 Shared Python Utilities (utils/)

Zero-dependency utility library shared by all modules: file_utils.py · network_utils.py · crypto_utils.py · logging_utils.py · validation_utils.py · config_utils.py · date_utils.py · report_utils.py

50+ Skills & 15 Hydrate Scripts

Methodology for every bug class, loaded on-demand. Hydration scripts (hydrate.py) in every module folder auto-discover all .md files.

Session Lifecycle Hooks

Hooks fire at key session events. 6 JSON files: hooks.json, autopilot-hooks.json, chain-builder-hooks.json, js-analysis-hooks.json, recon-ranker-hooks.json, security-reviewer-hooks.json.

Memory & Context System

Persistent session memory across memory/ (7 files), storage/ (10 files), context/ (7 files), and task-presistence/ (9 files).


Architecture

                     ┌─────────────────┐
                     │   Hunter (You)    │
                     └────────┬────────┘
                              │
                    ┌─────────▼─────────┐
                    │   AI Agent Layer   │
                    │   (40 agents)      │
                    └─────────┬─────────┘
                              │
         ┌────────────────────┼────────────────────┐
         │                    │                    │
   ┌─────▼─────┐      ┌──────▼──────┐      ┌──────▼──────┐
   │  Rules     │      │  Skills     │      │  Tools      │
   │ (13 files) │      │ (50+ files) │      │ (89 files)  │
   └───────────┘      └─────────────┘      └─────────────┘
         │                    │                    │
   ┌─────▼─────┐      ┌──────▼──────┐      ┌──────▼──────┐
   │  MCP       │      │  Hooks      │      │  Memory     │
   │ (20 srv)   │      │ (6 files)   │      │  + Storage  │
   └───────────┘      └─────────────┘      └─────────────┘

Quick Start

1. Install

# Windows
.\scripts\install.ps1
# Preview first:
.\scripts\install.ps1 -DryRun
# Linux / macOS / WSL
chmod +x scripts/install.sh
./scripts/install.sh

The installer:

  1. Copies all 23 modules (360+ files) to ~/.jiggy/
  2. Installs Python dependencies (pip install -r requirements.txt + 10 MCP server reqs)
  3. Installs Node.js dependencies (npm install for JS tools)
  4. Sources the shell entry point (jiggy.ps1 / jiggy.sh) in your profile
  5. Deploys to all 18 agentic CLI targets via jiggy-adapter.py:
codex       -> ~/.codex/plugins/jiggy-2026/
claude-code -> ~/.claude/
opencode    -> ~/.config/opencode/jiggy-2026/
kilocode    -> ~/.config/kilocode/jiggy-2026/
kimi-code   -> ~/.config/kimi-code/jiggy-2026/
hermes-agent-> ~/.config/hermes-agent/jiggy-2026/
aider       -> ~/.aider/jiggy-2026/
gemini-cli  -> ~/.config/gemini-cli/jiggy-2026/
goose       -> ~/.config/goose/jiggy-2026/
cursor      -> ~/.cursor/jiggy-2026/
windsurf    -> ~/.config/windsurf/jiggy-2026/
cline       -> ~/.config/cline/jiggy-2026/
roo-code    -> ~/.config/roo-code/jiggy-2026/
continue    -> ~/.continue/jiggy-2026/
zed         -> ~/.config/zed/jiggy-2026/
sourcegraph-cody -> ~/.config/sourcegraph-cody/jiggy-2026/
github-copilot   -> ~/.config/github-copilot/jiggy-2026/
jetbrains-ai     -> ~/.config/JetBrains/jiggy-2026/

Standalone adapter usage (if you already have the files):

python scripts/jiggy-adapter.py --target all --apply    # All 18 CLIs
python scripts/jiggy-adapter.py --target claude-code --apply  # Single
python scripts/jiggy-adapter.py --list-targets                # List all

2. Start a Session

# PowerShell: open a new terminal (profile auto-loads jiggy.ps1)
Invoke-ReconPipeline -Domain target.com

# Or manually source:
. "$env:USERPROFILE\.jiggy\tools\powershell\jiggy.ps1"
# Bash: open a new terminal (rc auto-sources jiggy.sh)
source ~/.jiggy/tools/bash/jiggy.sh
jiggy recon target.com

3. Run Recon

# In any agentic CLI that has Hercules-Hunt loaded:
"Run recon on target.com"
# → recon-agent handles subdomain enum, tech fingerprinting, live hosts

4. Hunt

"Hunt target.com for high vulnerabilities"
# → p1-warrior cycles through 10 bug classes via specialist sub-agents

5. Report

"Write report for this IDOR finding on target.com"
# → report-writer generates H1/Bugcrowd/Immunefi format with CVSS 3.1

Key Features

Cross-Platform 4-Language Tools

Every standard tool exists in Python, JavaScript, PowerShell, and Bash — same capabilities, same interface, different runtime.

166 Passing Tests

  • 46 Jest tests for JS tools
  • 120 pytest tests for 15 Python modules
  • CI pipeline: Python syntax → pytest → Jest → Shellcheck → PS syntax

Security-First Design

  • SSL verification enabled by default (--allow-insecure to override)
  • Path traversal protection on all --output parameters
  • Input size limits (8K URLs, 10MB files)
  • Subprocess call safety with argument arrays

Validation Gates

Every finding passes "7-Question Gate" + "4 pre-submission gates" before a word of the report is written.


Project Structure

Hercules-Hunt/
├── AGENTS.md                  (41)    # Agent registry
├── SKILL.md · hydrate.py              # Skill + hydration
├── plugin.json · opencode.json        # Plugin configs
├── Hercules.md                         # Universal AI context
├── requirements.txt                    # Python deps
├── soul.md · purpose.md · scope.md     # Philosophy & scope
├── project-review.md · ENGAGEMENT.md   # Project reviews
├── walkthrough-prompt.md               # Walkthrough guide
├── understanding-user-data-flow.md     # Data flow methodology
├── 0-day-deep-analysis.md              # 0-day research & exploit dev
├── Enhanced-Triage-Anti-Duplicate.md   # Duplicate prevention
├── finding-checklist.md                # Pre-submission validation
├── recon-and-prep.md                   # Recon & preparation
├── waf-identification-bypass.md        # WAF ID & bypass
├── sanitization-validation.md          # Sanitization testing
├── advanced-bypass-techniques.md       # Advanced bypasses
├── exploit-chain-construction.md       # Exploit chain building
├── bug-bounty-research-methodology.md  # Complete methodology
│
├── agents/                  (42)      # AI agent definitions
├── rules/                   (14)      # Behavioral guardrails
├── bug-bounty/              (11)      # Bug bounty methodology
├── security-arsenal/        (16)      # Payloads, bypasses
├── recon/                   (11)      # Recon methodology
├── report-writing/          (7)       # Platform templates
├── triage-validation/       (9)       # Finding validation
├── tasks/                   (16)      # Task blueprints
├── task-presistence/        (11)      # Session continuity
├── context/                 (9)       # Session context
├── memory/                  (9)       # Persistent memory
├── storage/                 (12)      # Data schemas
├── adapters/                (3)       # Cross-CLI adapter manifests
├── config/                  (8)       # JSON runtime configs
├── hooks/                   (7)       # Session lifecycle hooks
├── doc/                    (14)      # Methodology documents
├── js-chunk-toolkit/        (45 files) # JS bundle analysis pipeline
│   ├── scripts/             (4)       # deobfuscate (30 feat), webpack, source-map, run-all.ps1
│   ├── analyzers/           (6)       # vulnerability, function-extractor, deep, JWT, cloud, GraphQL
│   ├── scanners/            (1)       # secret-scanner.ps1
│   ├── config/              (4)       # patterns, FP rules, severity matrix
│   ├── utils/               (5)       # FP filter, dedup, severity, post-process, harden-base
│   └── samples/             (85)      # real Whatnot production bundles
│
├── scripts/                 (6)       # Installers + adapters
│   ├── install.ps1                     # Windows installer
│   ├── install.sh                      # Linux/macOS installer
│   ├── jiggy-adapter.py                # 18-CLI universal adapter
│   └── hunt.sh                         # Hunt launcher
│
├── tools/
│   ├── python/     (29 files)         # Python tool suite
│   ├── javascript/ (31 files)         # Browser + Node.js tools
│   ├── powershell/ (18 files)         # Windows-native tools
│   ├── bash/       (19 files)         # Linux/macOS tools
│   └── markdown/   (1 file)           # Tool index
│
├── utils/                   (9)       # Shared Python library
├── mcp/                    (20 srv)   # MCP servers
│   ├── recon-mcp, dns-recon-mcp, url-crawl-mcp
│   ├── payload-mcp, interactsh-mcp
│   ├── auth-tester-mcp, https-mcp, evidence-mcp
│   ├── deep-hunt-mcp, fast-hunt-mcp, hydration-mcp
│   ├── js-analysis-mcp, batch-mcp, orchestrator-mcp
│   ├── validation-mcp, report-mcp
│   ├── burp-mcp-client, caido-mcp-client
│   ├── hackerone-mcp, hercules-hunt-mcp
│
├── .claude/settings.json               # Claude Code config
├── .github/workflows/ci.yml            # CI pipeline
└── README.md                            # This file

The Feedback Loop

Hunt → Discover → Capture → Refine → Hunt (improved)

The North Star

"Can an attacker do this RIGHT NOW against a real user who has taken NO unusual actions — and does it cause real harm?"


Development

Prerequisites

  • Python 3.8+ (pip install -r requirements.txt)
  • Node.js 18+ (for JS tests)
  • PowerShell 5.1+ (for Windows tools)
  • Bash 4+ (for Linux/macOS tools)

Running Tests

# JS tests (46/46)
npx jest

# Python tests (166/166)
python -m pytest tools/python/tests/

# Python syntax check
python -m py_compile tools/python/*.py

CI Pipeline

.github/workflows/ci.yml (11 steps): Python syntax → pytest → npm ci → Jest → JS require check → Shellcheck → PowerShell syntax


License

MIT

About

A comprehensive, agent-powered bug bounty hunting system

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages