Heuristic:0x4m4 Hexstrike ai Vulnerability Priority Scoring
| Knowledge Sources | |
|---|---|
| Domains | Bug_Bounty, Vulnerability_Management, Prioritization |
| Last Updated | 2026-10-10 00:00 GMT |
Overview
Priority ranking system for vulnerability types in bug bounty workflows, scoring from RCE (10) down to CSRF (5) to determine testing order and time allocation.
Description
The BugBountyWorkflowManager maintains a priority dictionary mapping vulnerability types to numeric scores (1-10). These scores determine the order of vulnerability testing: higher-priority vuln types are tested first. The estimated time for each test is priority * 30 seconds, meaning higher-priority vulnerabilities receive more testing time. The total priority_score accumulates across all selected vulnerability types, providing an aggregate assessment of the target's risk surface. Tool selection and payload types are also mapped per vulnerability type.
Usage
Use this heuristic when planning bug bounty or vulnerability hunting workflows. Applied by BugBountyWorkflowManager.create_vulnerability_hunting_workflow to sort and prioritize which vulnerability classes to test first.
The Insight (Rule of Thumb)
- Action: Sort vulnerability types by priority score (descending), test highest first
- Values:
- RCE = 10 (tools: nuclei, jaeles, sqlmap; payloads: command_injection)
- SQLi = 9 (tools: sqlmap, nuclei; payloads: sql_injection)
- SSRF = 8 (tools: nuclei, ffuf; payloads: ssrf)
- IDOR = 8 (tools: arjun, paramspider, ffuf; payloads: idor)
- XSS = 7 (tools: dalfox, nuclei; payloads: xss)
- LFI = 7 (tools: ffuf, nuclei; payloads: lfi)
- XXE = 6 (tools: nuclei; payloads: xxe)
- CSRF = 5 (tools: nuclei; payloads: csrf)
- Time allocation: estimated_time = priority * 30 seconds per vulnerability type
- Trade-off: Higher priority = more time spent testing, but covers the most impactful vulnerabilities first
Reasoning
The priority scores reflect the business impact of each vulnerability type. RCE (10) is the highest because it grants full system compromise. SQLi (9) can dump entire databases including credentials. SSRF (8) enables internal network access and cloud metadata theft. IDOR (8) allows unauthorized data access. XSS (7) can steal sessions but requires user interaction. LFI (7) can read sensitive files but may need specific conditions. XXE (6) requires XML parsing and has narrower applicability. CSRF (5) requires an authenticated user's browser and is often mitigated by tokens. The time allocation formula (priority * 30) ensures that testing effort is proportional to impact: RCE gets 300 seconds, while CSRF gets 150 seconds.
Code Evidence
Priority mapping from `hexstrike_server.py:2451-2460`:
self.high_impact_vulns = {
"rce": {"priority": 10, "tools": ["nuclei", "jaeles", "sqlmap"], "payloads": "command_injection"},
"sqli": {"priority": 9, "tools": ["sqlmap", "nuclei"], "payloads": "sql_injection"},
"ssrf": {"priority": 8, "tools": ["nuclei", "ffuf"], "payloads": "ssrf"},
"idor": {"priority": 8, "tools": ["arjun", "paramspider", "ffuf"], "payloads": "idor"},
"xss": {"priority": 7, "tools": ["dalfox", "nuclei"], "payloads": "xss"},
"lfi": {"priority": 7, "tools": ["ffuf", "nuclei"], "payloads": "lfi"},
"xxe": {"priority": 6, "tools": ["nuclei"], "payloads": "xxe"},
"csrf": {"priority": 5, "tools": ["nuclei"], "payloads": "csrf"}
}
Priority-based sorting from `hexstrike_server.py:2553-2556`:
sorted_vulns = sorted(target.priority_vulns,
key=lambda v: self.high_impact_vulns.get(v, {}).get("priority", 0),
reverse=True)
Time allocation from `hexstrike_server.py:2568`:
"estimated_time": vuln_config["priority"] * 30 # Higher priority = more time