# redhat-boy/recon-x architecture

> Architecture diagram of the GitHub repository redhat-boy/recon-x, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-15). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/redhat-boy/recon-x
- Repository: https://github.com/redhat-boy/recon-x

## Overview

Recon-X is a modular security-reconnaissance framework: an operator runs assessments to collect and normalize assets, enrich them with intelligence, analyze and prioritize findings, and produce reports. Its documented capabilities span DNS, web, cloud, certificates, APIs, JavaScript, secrets, OSINT, and technology analysis. The graph reflects those documented stages and the source tree’s implementation areas. The excerpts expose little runtime wiring, so most relationships are documented workflow links from the README; unsampled module internals and integrations are not asserted.

Main entry points: [`modules/00-core/dispatcher.sh`](https://github.com/redhat-boy/recon-x/blob/main/modules/00-core/dispatcher.sh) (Module dispatcher), [`modules/03-analysis/attack_surface/inventory.py`](https://github.com/redhat-boy/recon-x/blob/main/modules/03-analysis/attack_surface/inventory.py) (Attack surface inventory), [`modules/03-analysis/attack_surface/prioritizer.py`](https://github.com/redhat-boy/recon-x/blob/main/modules/03-analysis/attack_surface/prioritizer.py) (Finding prioritizer), [`modules/00-core/controller.sh`](https://github.com/redhat-boy/recon-x/blob/main/modules/00-core/controller.sh) (Framework controller)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_core["Framework Core"]
  node_controller["Framework controller<br/>[controller.sh]"]
  node_dispatcher["Module dispatcher<br/>[dispatcher.sh]"]
end

subgraph group_discovery["Asset Discovery"]
  node_subdomains["Subdomain discovery"]
  node_dns["DNS intelligence"]
  node_ports["Port discovery"]
  node_web["HTTP discovery"]
  node_cloud["Cloud assets"]
  node_certificates["Certificate discovery"]
  node_asn["ASN discovery"]
end

subgraph group_intelligence["Intelligence"]
  node_osint["OSINT collection"]
  node_javascript["JavaScript analysis"]
  node_api["API discovery"]
  node_secrets["Secret detection"]
  node_technology["Technology analysis"]
end

subgraph group_analysis["Analysis"]
  node_inventory["Attack surface inventory<br/>[inventory.py]"]
  node_misconfig["Misconfiguration checks"]
  node_prioritizer["Finding prioritizer<br/>[prioritizer.py]"]
end

subgraph group_reporting["Reporting"]
  node_json_export["JSON export<br/>[json_export.py]"]
  node_reports["Professional reports<br/>[output.py]"]
end

node_operator(("Security operator"))

node_operator -->|"runs assessment"| node_controller
node_controller -->|"controls modules"| node_dispatcher
node_dispatcher -->|"dispatches collection"| node_subdomains
node_dispatcher -->|"dispatches collection"| node_dns
node_dispatcher -->|"dispatches collection"| node_ports
node_dispatcher -->|"dispatches collection"| node_web
node_dispatcher -->|"dispatches collection"| node_cloud
node_dispatcher -->|"dispatches collection"| node_certificates
node_dispatcher -->|"dispatches collection"| node_asn
node_subdomains -->|"normalizes assets"| node_inventory
node_dns -->|"normalizes assets"| node_inventory
node_web -->|"feeds intelligence"| node_javascript
node_inventory -->|"enriches assets"| node_osint
node_inventory -->|"enriches assets"| node_api
node_inventory -->|"enriches assets"| node_secrets
node_inventory -->|"enriches assets"| node_technology
node_javascript -.->|"discovers endpoints"| node_api
node_inventory -->|"analyzes assets"| node_misconfig
node_inventory -->|"correlates findings"| node_prioritizer
node_misconfig -->|"prioritizes findings"| node_prioritizer
node_prioritizer -->|"reports findings"| node_json_export
node_prioritizer -->|"reports findings"| node_reports

click node_controller "https://github.com/redhat-boy/recon-x/blob/main/modules/00-core/controller.sh"
click node_dispatcher "https://github.com/redhat-boy/recon-x/blob/main/modules/00-core/dispatcher.sh"
click node_subdomains "https://github.com/redhat-boy/recon-x/tree/main/modules/01-discovery/subdomains"
click node_dns "https://github.com/redhat-boy/recon-x/tree/main/modules/01-discovery/dns"
click node_ports "https://github.com/redhat-boy/recon-x/tree/main/modules/01-discovery/ports"
click node_web "https://github.com/redhat-boy/recon-x/tree/main/modules/01-discovery/http"
click node_cloud "https://github.com/redhat-boy/recon-x/tree/main/modules/01-discovery/cloud"
click node_certificates "https://github.com/redhat-boy/recon-x/tree/main/modules/01-discovery/ctlogs"
click node_asn "https://github.com/redhat-boy/recon-x/tree/main/modules/01-discovery/asn"
click node_osint "https://github.com/redhat-boy/recon-x/tree/main/modules/02-intelligence/osint"
click node_javascript "https://github.com/redhat-boy/recon-x/tree/main/modules/02-intelligence/javascript"
click node_api "https://github.com/redhat-boy/recon-x/tree/main/modules/02-intelligence/api"
click node_secrets "https://github.com/redhat-boy/recon-x/tree/main/modules/02-intelligence/secrets"
click node_technology "https://github.com/redhat-boy/recon-x/tree/main/modules/02-intelligence/technology"
click node_inventory "https://github.com/redhat-boy/recon-x/blob/main/modules/03-analysis/attack_surface/inventory.py"
click node_misconfig "https://github.com/redhat-boy/recon-x/tree/main/modules/03-analysis/misconfigurations"
click node_prioritizer "https://github.com/redhat-boy/recon-x/blob/main/modules/03-analysis/attack_surface/prioritizer.py"
click node_json_export "https://github.com/redhat-boy/recon-x/blob/main/lib/python/json_export.py"
click node_reports "https://github.com/redhat-boy/recon-x/blob/main/lib/python/output.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_controller,node_dispatcher toneBlue
class node_subdomains,node_dns,node_ports,node_web,node_cloud,node_certificates,node_asn toneAmber
class node_osint,node_javascript,node_api,node_secrets,node_technology toneMint
class node_inventory,node_misconfig,node_prioritizer toneRose
class node_json_export,node_reports,node_operator toneIndigo
```

## Components

### Framework Core

- [Framework controller](https://github.com/redhat-boy/recon-x/blob/main/modules/00-core/controller.sh): `modules/00-core/controller.sh`
- [Module dispatcher](https://github.com/redhat-boy/recon-x/blob/main/modules/00-core/dispatcher.sh): `modules/00-core/dispatcher.sh`

### Asset Discovery

- [Subdomain discovery](https://github.com/redhat-boy/recon-x/tree/main/modules/01-discovery/subdomains): `modules/01-discovery/subdomains`
- [DNS intelligence](https://github.com/redhat-boy/recon-x/tree/main/modules/01-discovery/dns): `modules/01-discovery/dns`
- [Port discovery](https://github.com/redhat-boy/recon-x/tree/main/modules/01-discovery/ports): `modules/01-discovery/ports`
- [HTTP discovery](https://github.com/redhat-boy/recon-x/tree/main/modules/01-discovery/http): `modules/01-discovery/http`
- [Cloud assets](https://github.com/redhat-boy/recon-x/tree/main/modules/01-discovery/cloud): `modules/01-discovery/cloud`
- [Certificate discovery](https://github.com/redhat-boy/recon-x/tree/main/modules/01-discovery/ctlogs): `modules/01-discovery/ctlogs`
- [ASN discovery](https://github.com/redhat-boy/recon-x/tree/main/modules/01-discovery/asn): `modules/01-discovery/asn`

### Intelligence

- [OSINT collection](https://github.com/redhat-boy/recon-x/tree/main/modules/02-intelligence/osint): `modules/02-intelligence/osint`
- [JavaScript analysis](https://github.com/redhat-boy/recon-x/tree/main/modules/02-intelligence/javascript): `modules/02-intelligence/javascript`
- [API discovery](https://github.com/redhat-boy/recon-x/tree/main/modules/02-intelligence/api): `modules/02-intelligence/api`
- [Secret detection](https://github.com/redhat-boy/recon-x/tree/main/modules/02-intelligence/secrets): `modules/02-intelligence/secrets`
- [Technology analysis](https://github.com/redhat-boy/recon-x/tree/main/modules/02-intelligence/technology): `modules/02-intelligence/technology`

### Analysis

- [Attack surface inventory](https://github.com/redhat-boy/recon-x/blob/main/modules/03-analysis/attack_surface/inventory.py): `modules/03-analysis/attack_surface/inventory.py`
- [Misconfiguration checks](https://github.com/redhat-boy/recon-x/tree/main/modules/03-analysis/misconfigurations): `modules/03-analysis/misconfigurations`
- [Finding prioritizer](https://github.com/redhat-boy/recon-x/blob/main/modules/03-analysis/attack_surface/prioritizer.py): `modules/03-analysis/attack_surface/prioritizer.py`

### Reporting

- [JSON export](https://github.com/redhat-boy/recon-x/blob/main/lib/python/json_export.py): `lib/python/json_export.py`
- [Professional reports](https://github.com/redhat-boy/recon-x/blob/main/lib/python/output.py): `lib/python/output.py`

### Other components

- **Security operator**

## Connections

- Security operator → Framework controller: runs assessment (evidence: `README.md`)
- Framework controller → Module dispatcher: controls modules (evidence: `README.md`)
- Module dispatcher → Subdomain discovery: dispatches collection (evidence: `README.md`)
- Module dispatcher → DNS intelligence: dispatches collection (evidence: `README.md`)
- Module dispatcher → Port discovery: dispatches collection (evidence: `README.md`)
- Module dispatcher → HTTP discovery: dispatches collection (evidence: `README.md`)
- Module dispatcher → Cloud assets: dispatches collection (evidence: `README.md`)
- Module dispatcher → Certificate discovery: dispatches collection (evidence: `README.md`)
- Module dispatcher → ASN discovery: dispatches collection (evidence: `README.md`)
- Subdomain discovery → Attack surface inventory: normalizes assets (evidence: `README.md`)
- DNS intelligence → Attack surface inventory: normalizes assets (evidence: `README.md`)
- HTTP discovery → JavaScript analysis: feeds intelligence (evidence: `README.md`)
- Attack surface inventory → OSINT collection: enriches assets (evidence: `README.md`)
- Attack surface inventory → API discovery: enriches assets (evidence: `README.md`)
- Attack surface inventory → Secret detection: enriches assets (evidence: `README.md`)
- Attack surface inventory → Technology analysis: enriches assets (evidence: `README.md`)
- JavaScript analysis → API discovery: discovers endpoints
- Attack surface inventory → Misconfiguration checks: analyzes assets (evidence: `README.md`)
- Attack surface inventory → Finding prioritizer: correlates findings (evidence: `README.md`)
- Misconfiguration checks → Finding prioritizer: prioritizes findings (evidence: `README.md`)
- Finding prioritizer → JSON export: reports findings (evidence: `README.md`)
- Finding prioritizer → Professional reports: reports findings (evidence: `README.md`)
