Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Implementation:0x4m4 Hexstrike ai BugBountyTarget

From Leeroopedia
Knowledge Sources
Domains Bug_Bounty, Security
Last Updated 2026-10-10 00:00 GMT

Overview

Dataclass that defines bug bounty target scope, vulnerability priorities, and program metadata for workflow creation.

Description

The BugBountyTarget dataclass encapsulates all scoping information for a bug bounty engagement: the target domain, in-scope and out-of-scope URLs, program type (web/api/mobile/iot), prioritized vulnerability types, and expected bounty range. It is passed to BugBountyWorkflowManager methods to generate reconnaissance, vulnerability hunting, OSINT, and business logic testing workflows.

Usage

Create a BugBountyTarget instance to scope a bug bounty engagement before generating workflows:

  • Web program: Set program_type="web" and priority_vulns=["rce","sqli","xss","idor","ssrf"]
  • API program: Set program_type="api" and adjust priority vulns for injection and auth flaws
  • Scoped testing: Provide explicit scope and out_of_scope lists to constrain enumeration

Code Reference

Source Location

  • Repository: HexStrike AI
  • File: hexstrike_server.py
  • Lines: L2438-2445

Signature

@dataclass
class BugBountyTarget:
    """Bug bounty target information"""
    domain: str
    scope: List[str] = field(default_factory=list)
    out_of_scope: List[str] = field(default_factory=list)
    program_type: str = "web"  # web, api, mobile, iot
    priority_vulns: List[str] = field(default_factory=lambda: ["rce", "sqli", "xss", "idor", "ssrf"])
    bounty_range: str = "unknown"

Import

# Defined in hexstrike_server.py as a module-level dataclass
from hexstrike_server import BugBountyTarget

I/O Contract

Inputs (Constructor)

Name Type Required Description
domain str Yes Target domain (e.g. "example.com")
scope List[str] No In-scope URLs/paths
out_of_scope List[str] No Excluded targets
program_type str No "web"/"api"/"mobile"/"iot" (default "web")
priority_vulns List[str] No Vulnerability types to prioritize (default rce,sqli,xss,idor,ssrf)
bounty_range str No Expected bounty tier (default "unknown")

Outputs

Name Type Description
instance BugBountyTarget Dataclass instance passed to BugBountyWorkflowManager methods

Usage Examples

Scoping a Web Bug Bounty Program

from hexstrike_server import BugBountyTarget, BugBountyWorkflowManager

# Define target scope
target = BugBountyTarget(
    domain="example.com",
    scope=["example.com", "api.example.com"],
    out_of_scope=["staging.example.com"],
    program_type="web",
    priority_vulns=["rce", "sqli", "ssrf", "idor", "xss"],
    bounty_range="500-5000"
)

# Generate workflows from target
manager = BugBountyWorkflowManager()
recon = manager.create_reconnaissance_workflow(target)
vuln_hunt = manager.create_vulnerability_hunting_workflow(target)
osint = manager.create_osint_workflow(target)

Related Pages

Implements Principle

Requires Environment

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment