Overview
Workflow orchestrator that generates multi-phase bug bounty pipelines: reconnaissance, vulnerability hunting, OSINT gathering, and business logic testing from a scoped target.
Description
The BugBountyWorkflowManager class creates structured workflow dicts for bug bounty engagements. It maintains a high_impact_vulns dictionary ranking vulnerabilities by priority (rce=10, sqli=9, ssrf=8, idor=8, xss=7, lfi=7, xxe=6, csrf=5) with associated tools and payload types. Its four workflow methods each return a dict of phases with tool lists, parameters, expected outputs, and time estimates.
Usage
- Reconnaissance: Call create_reconnaissance_workflow(target) for a 4-phase pipeline (subdomain → HTTP → content → parameter discovery)
- Vulnerability hunting: Call create_vulnerability_hunting_workflow(target) for impact-prioritized vuln tests
- OSINT: Call create_osint_workflow(target) for domain, social media, email, and tech intelligence
- Business logic: Call create_business_logic_testing_workflow(target) for auth bypass, authorization, and process manipulation tests
Code Reference
Source Location
- Repository: HexStrike AI
- File: hexstrike_server.py
- Lines: L2447-2697 (BugBountyWorkflowManager class)
Signature
class BugBountyWorkflowManager:
def __init__(self): ...
def create_reconnaissance_workflow(self, target: BugBountyTarget) -> Dict[str, Any]:
"""Create 4-phase reconnaissance workflow: subdomain, HTTP, content, parameter discovery."""
def create_vulnerability_hunting_workflow(self, target: BugBountyTarget) -> Dict[str, Any]:
"""Create vulnerability hunting workflow prioritized by impact (rce > sqli > ssrf > ...)."""
def create_business_logic_testing_workflow(self, target: BugBountyTarget) -> Dict[str, Any]:
"""Create business logic testing workflow (auth bypass, authorization, process manipulation)."""
def create_osint_workflow(self, target: BugBountyTarget) -> Dict[str, Any]:
"""Create OSINT workflow with 4 phases: domain, social media, email, technology intelligence."""
def _get_test_scenarios(self, vuln_type: str) -> List[Dict[str, Any]]:
"""Get specific test scenarios (payloads) for vulnerability types."""
Import
from hexstrike_server import BugBountyWorkflowManager
I/O Contract
Inputs
| Name |
Type |
Required |
Description
|
| target |
BugBountyTarget |
Yes |
Scoping object with domain, priority_vulns, program_type
|
Outputs
| Name |
Type |
Description
|
| recon workflow |
Dict[str, Any] |
Phases array with tools, params, expected_outputs, estimated_time
|
| vuln hunt workflow |
Dict[str, Any] |
vulnerability_tests sorted by priority with test_scenarios
|
| osint workflow |
Dict[str, Any] |
4 osint_phases with tools and intelligence_types
|
| business logic workflow |
Dict[str, Any] |
4 test categories with manual_testing_required=True
|
Usage Examples
Full Bug Bounty Pipeline
from hexstrike_server import BugBountyTarget, BugBountyWorkflowManager
target = BugBountyTarget(
domain="target.com",
priority_vulns=["rce", "sqli", "ssrf", "xss"],
program_type="web"
)
manager = BugBountyWorkflowManager()
# Phase 1: Reconnaissance
recon = manager.create_reconnaissance_workflow(target)
print(f"Recon: {recon['tools_count']} tools, {recon['estimated_time']}s")
# Phase 2: Vulnerability Hunting (impact-prioritized)
vuln_hunt = manager.create_vulnerability_hunting_workflow(target)
for test in vuln_hunt["vulnerability_tests"]:
print(f" {test['vulnerability_type']}: priority={test['priority']}, tools={test['tools']}")
# Phase 3: OSINT
osint = manager.create_osint_workflow(target)
print(f"OSINT phases: {[p['name'] for p in osint['osint_phases']]}")
# Phase 4: Business Logic
biz_logic = manager.create_business_logic_testing_workflow(target)
print(f"Business logic: {len(biz_logic['business_logic_tests'])} categories")
Related Pages
Implements Principle
Uses Heuristic
Requires Environment