Principle:0x4m4 Hexstrike ai Target Profiling
| Knowledge Sources | |
|---|---|
| Domains | Reconnaissance, Target_Analysis, Security |
| Last Updated | 2026-10-10 00:00 GMT |
Overview
Methodology for building comprehensive target profiles by determining target type, resolving domains, detecting technologies and CMS, and calculating attack surface scores and risk levels.
Description
The Target Profiling principle describes the process of analyzing a raw target string (URL, IP, domain) to produce a structured TargetProfile. The profiling pipeline: (1) determines target type by pattern matching (URL→web/API, IP→network host, cloud URL→cloud service, binary extension→binary file), (2) resolves domain to IP addresses, (3) detects technologies using heuristics (WordPress, PHP, .NET), (4) detects CMS type, (5) calculates an attack surface score (0-10) from target type, technologies, ports, subdomains, and CMS, (6) determines risk level (critical/high/medium/low/minimal), and (7) calculates a confidence score (0.5-1.0).
Usage
Apply this principle when analyzing unknown targets for security testing:
- Type determination: URL patterns, IP regex, domain patterns, and cloud URLs classify the target
- Attack surface scoring: Weighted sum of target type, technologies, ports, subdomains, and CMS
- Risk-level mapping: Score thresholds map to risk levels for prioritization
Theoretical Basis
The attack surface score formula:
Failed to parse (syntax error): {\displaystyle \text{score} = \min(10,\; \text{type\_score} + 0.5 \times n_{\text{tech}} + 0.3 \times n_{\text{ports}} + 0.2 \times n_{\text{subdomains}} + 1.5 \times \text{has\_cms}) }
# Abstract pattern (NOT real implementation)
type_scores = {WEB: 7.0, API: 6.0, NETWORK: 8.0, CLOUD: 5.0, BINARY: 4.0}
score = type_scores[target_type]
score += len(technologies) * 0.5
score += len(open_ports) * 0.3
score += len(subdomains) * 0.2
score += 1.5 if cms_type else 0
score = min(score, 10.0)