Skip to content

Latest commit

 

History

History
225 lines (177 loc) · 7.46 KB

File metadata and controls

225 lines (177 loc) · 7.46 KB

Bug Bounty Hunter — OpenCode Guide

This repo is a professional bug bounty hunting framework for OpenCode, covering HackerOne, Bugcrowd, Intigriti, and Immunefi.

Installation

Prerequisites

# macOS
brew install go python3 node jq

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

You also need OpenCode installed.

Install

git clone https://github.com/Awarexone/Agentic-Bug-Hunter.git
cd Agentic-Bug-Hunter
chmod +x install_tools.sh && ./install_tools.sh   # scanning tools
chmod +x install.sh && ./install.sh --opencode    # skills + commands

The installer will:

  1. Symlink domain skills to .opencode/skills/
  2. Copy commands to .opencode/commands/
  3. Optionally write MCP server config to opencode.json

Verify Installation

cd Agentic-Bug-Hunter
opencode
# Ask: "do you have bug bounty skills?"
# Should confirm skills are loaded

What's Here

Skills (9 domains)

Skill Domain
bug-bounty Master workflow — recon to report, all vuln classes, LLM testing, chains
bb-methodology Hunting mindset + 5-phase non-linear workflow + tool routing + session discipline
web2-recon Subdomain enum, live host discovery, URL crawling, nuclei
web2-vuln-classes 18 bug classes with bypass tables (SSRF, open redirect, file upload, Agentic AI)
security-arsenal Payloads, bypass tables, gf patterns, always-rejected list
web3-audit 10 smart contract bug classes, Foundry PoC template, pre-dive kill signals
meme-coin-audit Meme coin rug pull detection, token authority checks, bonding curve exploits, LP attacks
report-writing H1/Bugcrowd/Intigriti/Immunefi report templates, CVSS 3.1, human tone
triage-validation 7-Question Gate, 4 gates, never-submit list, conditionally valid table

Commands (23 commands)

Command Usage
recon "recon target.com" — full recon pipeline
hunt "hunt target.com" — start hunting
validate "validate" — run 7-Question Gate on current finding
report "report" — write submission-ready report
chain "chain" — build A→B→C exploit chain
scope "scope " — verify asset is in scope
scope-aggregate "scope-aggregate " — pull every in-scope asset
triage "triage" — quick 7-Question Gate
web3-audit "web3-audit <contract.sol>" — smart contract audit
autopilot "autopilot target.com --normal" — autonomous hunt loop
surface "surface target.com" — ranked attack surface
pickup "pickup target.com" — pick up previous hunt
remember "remember" — log finding to hunt memory
intel "intel target.com" — fetch CVE + disclosure intel
token-scan "token-scan " — meme coin/token rug pull scanner
memory-gc "memory-gc" — inspect/rotate hunt-memory JSONL files
secrets-hunt "secrets-hunt --js-bundle " — leaked-credential scan
takeover "takeover --recon " — subdomain takeover candidates
cloud-recon "cloud-recon --keyword " — public S3/Azure/GCP
param-discover "param-discover " — find hidden HTTP parameters
bypass-403 "bypass-403 " — try header/method/encoding tricks
arsenal "arsenal [tool]" — list installed external tools
scan-cves "scan-cves " — focused nuclei CVE sweep

Usage

Invoking Commands

OpenCode doesn't have slash commands. Use natural language:

Task Say
Run recon "recon target.com" or "run recon on target.com"
Start hunting "hunt target.com" or "start hunting target.com"
Validate finding "validate this finding" or "run validation"
Write report "write a report" or "generate report"

Commands auto-invoke based on context.

Quick Start

cd Agentic-Bug-Hunter
opencode

# In OpenCode:
> recon target.com
> hunt target.com
> validate
> report

MCP Integration

OpenCode MCP servers are configured under the mcp key in your opencode.json (project-level, lives at the repo root) or the global config at ~/.config/opencode/config.json.

Format note: OpenCode uses mcp (not mcpServers), command is a single array merging the executable and its arguments, and environment variables go under environment (not env). Use {env:VAR_NAME} to reference shell environment variables.

Burp Suite MCP:

{
  "mcp": {
    "burp": {
      "type": "local",
      "command": ["java", "-jar", "/path/to/mcp-proxy-all.jar", "--sse-url", "http://127.0.0.1:9876"],
      "enabled": true
    }
  }
}

Caido MCP:

{
  "mcp": {
    "caido": {
      "type": "local",
      "command": ["npx", "-y", "@caido/mcp-server"],
      "enabled": true,
      "environment": {
        "CAIDO_API_KEY": "{env:CAIDO_API_KEY}",
        "CAIDO_URL": "{env:CAIDO_URL}"
      }
    }
  }
}

HackerOne MCP (run from the project root — path is relative):

{
  "mcp": {
    "hackerone": {
      "type": "local",
      "command": ["python3", "mcp/hackerone-mcp/server.py"],
      "enabled": true
    }
  }
}

See mcp/*/opencode-config.json for ready-to-copy snippets.

Memory Management

Hunt memory auto-rotates at 10MB. To manually rotate:

python3 -m tools.memory_gc --rotate

API Keys

Same as Claude Code version. See main README.md for:

  • Chaos API (subdomain discovery)
  • Optional keys (VirusTotal, SecurityTrails, etc.)

The Rules (Always Active)

 1. READ FULL SCOPE FIRST   — only test what the program says you can
 2. ONLY REAL BUGS          — "Can an attacker do this RIGHT NOW?" if no, stop
 3. KILL WEAK FINDINGS FAST — 30-second check saves hours of wasted reporting
 4. NEVER GO OUT OF SCOPE   — one wrong request can get you banned
 5. 5-MINUTE RULE           — no progress after 5 min? move to the next target
 6. VALIDATE BEFORE REPORT  — run validation before you spend 30 min writing
 7. IMPACT FIRST            — start with the bugs that have the worst consequences

Differences from Claude Code

Feature Claude Code OpenCode
Commands /recon target.com "recon target.com"
Skills location ~/.claude/skills/ .opencode/skills/ (in project)
Commands location ~/.claude/commands/ .opencode/commands/ (in project)
Memory rotation Auto (Stop hook) Manual (python3 -m tools.memory_gc --rotate)
MCP config .claude/settings.json opencode.json (project) or ~/.config/opencode/config.json (global)

Troubleshooting

Skills not loading

  1. Check symlinks: ls -la .opencode/skills/
  2. Restart OpenCode in this project directory

Commands not working

  1. Check commands: ls -la .opencode/commands/
  2. Make sure you're running OpenCode from the project root
  3. Check OpenCode logs for errors

MCP servers not connecting

  1. Check opencode.json (or ~/.config/opencode/config.json) syntax — ensure mcp key uses command array + environment (not args/env)
  2. Verify Java is in your PATH: java --version
  3. Test the proxy jar manually: java -jar /path/to/mcp-proxy-all.jar --sse-url http://127.0.0.1:9876
  4. List servers and auth status: opencode mcp list

Contributing

Same as main project. See README.md.


Built by bug hunters, for bug hunters. Works with Claude Code and OpenCode.

MIT License · For authorized security testing only. Test only within an approved bug bounty program scope.