# skynet0x01/tugarecon architecture

> Architecture diagram of the GitHub repository skynet0x01/tugarecon, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-24). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/skynet0x01/tugarecon
- Repository: https://github.com/skynet0x01/tugarecon

## Overview

TugaRecon is a domain-reconnaissance and intelligence CLI. Its documented workflow discovers subdomains through passive OSINT and active brute force, resolves and probes assets, interprets their roles and impact, tracks scan changes, and can react to risk changes or map infrastructure. The graph preserves these capabilities and the scoring, context, and output layers. Some subsystem links rely on README descriptions or the SOURCE INDEX; unsampled implementations and their internal call paths are not inferred.

Main entry points: [`tugarecon.py`](https://github.com/skynet0x01/tugarecon/blob/master/tugarecon.py) (CLI Orchestrator), [`modules/Intelligence/unified_engine.py`](https://github.com/skynet0x01/tugarecon/blob/master/modules/Intelligence/unified_engine.py) (Intelligence Engine), [`modules/Intelligence/reaction_engine.py`](https://github.com/skynet0x01/tugarecon/blob/master/modules/Intelligence/reaction_engine.py) (Automated Reactions), [`modules/OSINT`](https://github.com/skynet0x01/tugarecon/tree/master/modules/OSINT) (OSINT Enumeration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_collection["Discovery"]
  node_cli["CLI Orchestrator<br/>[tugarecon.py]"]
  node_osint["OSINT Enumeration"]
  node_dnsdumpster["DNSDumpster Source"]
  node_bruteforce["Adaptive Brute Force<br/>[tuga_bruteforce.py]"]
  node_wordlists["Wordlist Learning"]
  node_dns["DNS Resolution<br/>[tuga_dns.py]"]
end

subgraph group_analysis["Asset Intelligence"]
  node_probe["Service Probe<br/>[tuga_probe.py]"]
  node_attack_surface["Attack Surface"]
  node_semantics["Semantic Heuristics<br/>[heuristics.py]"]
  node_impact_score["Impact Scoring<br/>[impact_score.py]"]
  node_impact_engine["Impact Adjustment<br/>[impact_engine.py]"]
  node_context["Context Adjustment<br/>[context_engine.py]"]
end

subgraph group_response["Temporal Response"]
  node_unified["Intelligence Engine<br/>[unified_engine.py]"]
  node_temporal["Temporal Analysis"]
  node_memory["Asset Snapshots<br/>[snapshot.py]"]
  node_reactions["Automated Reactions<br/>[reaction_engine.py]"]
  node_reaction_http["HTTP Analysis<br/>[httpx_reaction.py]"]
  node_reaction_tls["TLS Analysis<br/>[tls_reaction.py]"]
  node_reaction_headers["Header Analysis"]
end

subgraph group_mapping["Infrastructure Mapping"]
  node_network_map["Network Mapping"]
  node_asn["ASN Lookup<br/>[tuga_asn.py]"]
  node_certs["Certificate Lookup<br/>[tuga_certs.py]"]
end

subgraph group_support["Results and Context"]
  node_results["Scan Results<br/>[tuga_results.py]"]
  node_persistence["Persistence and Export<br/>[tuga_save.py]"]
  node_temporal_view["Change Views<br/>[temporal_view.py]"]
end

node_operator(("Operator"))
node_target(("Target Domain"))

node_operator -->|"runs scan"| node_cli
node_target -->|"scan input"| node_cli
node_cli -->|"runs enumeration"| node_osint
node_cli -->|"runs brute force"| node_bruteforce
node_cli -->|"runs probe"| node_probe
node_cli -->|"builds surface"| node_attack_surface
node_cli -->|"runs intelligence"| node_unified
node_cli -->|"runs mapping"| node_network_map
node_osint -.->|"includes source"| node_dnsdumpster
node_bruteforce -.->|"adaptive lists"| node_wordlists
node_osint -.->|"resolves assets"| node_dns
node_bruteforce -.->|"resolves candidates"| node_dns
node_probe -.->|"probes services"| node_target
node_attack_surface -.->|"infers roles"| node_semantics
node_unified -->|"scores assets"| node_impact_score
node_unified -->|"adjusts impact"| node_impact_engine
node_unified -->|"adjusts context"| node_context
node_impact_score -->|"uses tokens"| node_semantics
node_unified -->|"dispatches actions"| node_reactions
node_reactions -->|"runs HTTP"| node_reaction_http
node_reactions -->|"runs TLS"| node_reaction_tls
node_reactions -->|"runs headers"| node_reaction_headers
node_cli -->|"analyzes changes"| node_temporal
node_cli -.->|"loads snapshots"| node_memory
node_cli -.->|"triggers reactions"| node_reactions
node_temporal -.->|"presents changes"| node_temporal_view
node_network_map -->|"looks up ASN"| node_asn
node_network_map -->|"uses certificates"| node_certs
node_cli -->|"shows saved scans"| node_results
node_cli -->|"saves outputs"| node_persistence
node_osint -.->|"writes findings"| node_persistence

click node_cli "https://github.com/skynet0x01/tugarecon/blob/master/tugarecon.py"
click node_osint "https://github.com/skynet0x01/tugarecon/tree/master/modules/OSINT"
click node_dnsdumpster "https://github.com/skynet0x01/tugarecon/blob/master/modules/OSINT/tuga_dnsdumpster.py"
click node_bruteforce "https://github.com/skynet0x01/tugarecon/blob/master/modules/Brute_Force/tuga_bruteforce.py"
click node_wordlists "https://github.com/skynet0x01/tugarecon/tree/master/modules/IA"
click node_dns "https://github.com/skynet0x01/tugarecon/blob/master/utils/tuga_dns.py"
click node_probe "https://github.com/skynet0x01/tugarecon/blob/master/modules/Brute_Force/tuga_probe.py"
click node_attack_surface "https://github.com/skynet0x01/tugarecon/blob/master/modules/Intelligence/tuga_attack_surface.py"
click node_semantics "https://github.com/skynet0x01/tugarecon/blob/master/modules/IA/heuristics.py"
click node_impact_score "https://github.com/skynet0x01/tugarecon/blob/master/modules/IA/impact_score.py"
click node_impact_engine "https://github.com/skynet0x01/tugarecon/blob/master/utils/impact_engine.py"
click node_context "https://github.com/skynet0x01/tugarecon/blob/master/utils/context_engine.py"
click node_unified "https://github.com/skynet0x01/tugarecon/blob/master/modules/Intelligence/unified_engine.py"
click node_temporal "https://github.com/skynet0x01/tugarecon/blob/master/utils/temporal_analysis.py"
click node_memory "https://github.com/skynet0x01/tugarecon/blob/master/modules/Intelligence/snapshot.py"
click node_reactions "https://github.com/skynet0x01/tugarecon/blob/master/modules/Intelligence/reaction_engine.py"
click node_reaction_http "https://github.com/skynet0x01/tugarecon/blob/master/modules/Intelligence/reactions/httpx_reaction.py"
click node_reaction_tls "https://github.com/skynet0x01/tugarecon/blob/master/modules/Intelligence/reactions/tls_reaction.py"
click node_reaction_headers "https://github.com/skynet0x01/tugarecon/blob/master/modules/Intelligence/reactions/headers_reaction.py"
click node_network_map "https://github.com/skynet0x01/tugarecon/blob/master/modules/Map/tuga_network_map.py"
click node_asn "https://github.com/skynet0x01/tugarecon/blob/master/modules/Map/tuga_asn.py"
click node_certs "https://github.com/skynet0x01/tugarecon/blob/master/modules/Map/tuga_certs.py"
click node_results "https://github.com/skynet0x01/tugarecon/blob/master/utils/tuga_results.py"
click node_persistence "https://github.com/skynet0x01/tugarecon/blob/master/utils/tuga_save.py"
click node_temporal_view "https://github.com/skynet0x01/tugarecon/blob/master/utils/temporal_view.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_cli,node_osint,node_dnsdumpster,node_bruteforce,node_wordlists,node_dns toneBlue
class node_probe,node_attack_surface,node_semantics,node_impact_score,node_impact_engine,node_context toneAmber
class node_unified,node_temporal,node_memory,node_reactions,node_reaction_http,node_reaction_tls,node_reaction_headers toneMint
class node_network_map,node_asn,node_certs toneRose
class node_results,node_persistence,node_temporal_view,node_operator,node_target toneIndigo
```

## Components

### Discovery

- [CLI Orchestrator](https://github.com/skynet0x01/tugarecon/blob/master/tugarecon.py): `tugarecon.py`
- [OSINT Enumeration](https://github.com/skynet0x01/tugarecon/tree/master/modules/OSINT): `modules/OSINT`
- [DNSDumpster Source](https://github.com/skynet0x01/tugarecon/blob/master/modules/OSINT/tuga_dnsdumpster.py): `modules/OSINT/tuga_dnsdumpster.py`
- [Adaptive Brute Force](https://github.com/skynet0x01/tugarecon/blob/master/modules/Brute_Force/tuga_bruteforce.py): `modules/Brute_Force/tuga_bruteforce.py`
- [Wordlist Learning](https://github.com/skynet0x01/tugarecon/tree/master/modules/IA): `modules/IA`
- [DNS Resolution](https://github.com/skynet0x01/tugarecon/blob/master/utils/tuga_dns.py): `utils/tuga_dns.py`

### Asset Intelligence

- [Service Probe](https://github.com/skynet0x01/tugarecon/blob/master/modules/Brute_Force/tuga_probe.py): `modules/Brute_Force/tuga_probe.py`
- [Attack Surface](https://github.com/skynet0x01/tugarecon/blob/master/modules/Intelligence/tuga_attack_surface.py): `modules/Intelligence/tuga_attack_surface.py`
- [Semantic Heuristics](https://github.com/skynet0x01/tugarecon/blob/master/modules/IA/heuristics.py): `modules/IA/heuristics.py`
- [Impact Scoring](https://github.com/skynet0x01/tugarecon/blob/master/modules/IA/impact_score.py): `modules/IA/impact_score.py`
- [Impact Adjustment](https://github.com/skynet0x01/tugarecon/blob/master/utils/impact_engine.py): `utils/impact_engine.py`
- [Context Adjustment](https://github.com/skynet0x01/tugarecon/blob/master/utils/context_engine.py): `utils/context_engine.py`

### Temporal Response

- [Intelligence Engine](https://github.com/skynet0x01/tugarecon/blob/master/modules/Intelligence/unified_engine.py): `modules/Intelligence/unified_engine.py`
- [Temporal Analysis](https://github.com/skynet0x01/tugarecon/blob/master/utils/temporal_analysis.py): `utils/temporal_analysis.py`
- [Asset Snapshots](https://github.com/skynet0x01/tugarecon/blob/master/modules/Intelligence/snapshot.py): `modules/Intelligence/snapshot.py`
- [Automated Reactions](https://github.com/skynet0x01/tugarecon/blob/master/modules/Intelligence/reaction_engine.py): `modules/Intelligence/reaction_engine.py`
- [HTTP Analysis](https://github.com/skynet0x01/tugarecon/blob/master/modules/Intelligence/reactions/httpx_reaction.py): `modules/Intelligence/reactions/httpx_reaction.py`
- [TLS Analysis](https://github.com/skynet0x01/tugarecon/blob/master/modules/Intelligence/reactions/tls_reaction.py): `modules/Intelligence/reactions/tls_reaction.py`
- [Header Analysis](https://github.com/skynet0x01/tugarecon/blob/master/modules/Intelligence/reactions/headers_reaction.py): `modules/Intelligence/reactions/headers_reaction.py`

### Infrastructure Mapping

- [Network Mapping](https://github.com/skynet0x01/tugarecon/blob/master/modules/Map/tuga_network_map.py): `modules/Map/tuga_network_map.py`
- [ASN Lookup](https://github.com/skynet0x01/tugarecon/blob/master/modules/Map/tuga_asn.py): `modules/Map/tuga_asn.py`
- [Certificate Lookup](https://github.com/skynet0x01/tugarecon/blob/master/modules/Map/tuga_certs.py): `modules/Map/tuga_certs.py`

### Results and Context

- [Scan Results](https://github.com/skynet0x01/tugarecon/blob/master/utils/tuga_results.py): `utils/tuga_results.py`
- [Persistence and Export](https://github.com/skynet0x01/tugarecon/blob/master/utils/tuga_save.py): `utils/tuga_save.py`
- [Change Views](https://github.com/skynet0x01/tugarecon/blob/master/utils/temporal_view.py): `utils/temporal_view.py`

### Other components

- **Operator**
- **Target Domain**

## Connections

- Operator → CLI Orchestrator: runs scan (evidence: `tugarecon.py`)
- Target Domain → CLI Orchestrator: scan input (evidence: `tugarecon.py`)
- CLI Orchestrator → OSINT Enumeration: runs enumeration (evidence: `tugarecon.py`)
- CLI Orchestrator → Adaptive Brute Force: runs brute force (evidence: `tugarecon.py`)
- CLI Orchestrator → Service Probe: runs probe (evidence: `tugarecon.py`)
- CLI Orchestrator → Attack Surface: builds surface (evidence: `tugarecon.py`)
- CLI Orchestrator → Intelligence Engine: runs intelligence (evidence: `tugarecon.py`)
- CLI Orchestrator → Network Mapping: runs mapping (evidence: `tugarecon.py`)
- OSINT Enumeration → DNSDumpster Source: includes source (evidence: `modules/OSINT/tuga_dnsdumpster.py`)
- Adaptive Brute Force → Wordlist Learning: adaptive lists
- OSINT Enumeration → DNS Resolution: resolves assets
- Adaptive Brute Force → DNS Resolution: resolves candidates
- Service Probe → Target Domain: probes services
- Attack Surface → Semantic Heuristics: infers roles
- Intelligence Engine → Impact Scoring: scores assets (evidence: `modules/Intelligence/unified_engine.py`)
- Intelligence Engine → Impact Adjustment: adjusts impact (evidence: `modules/Intelligence/unified_engine.py`)
- Intelligence Engine → Context Adjustment: adjusts context (evidence: `modules/Intelligence/unified_engine.py`)
- Impact Scoring → Semantic Heuristics: uses tokens (evidence: `modules/IA/impact_score.py`)
- Intelligence Engine → Automated Reactions: dispatches actions (evidence: `modules/Intelligence/unified_engine.py`)
- Automated Reactions → HTTP Analysis: runs HTTP (evidence: `modules/Intelligence/reaction_engine.py`)
- Automated Reactions → TLS Analysis: runs TLS (evidence: `modules/Intelligence/reaction_engine.py`)
- Automated Reactions → Header Analysis: runs headers (evidence: `modules/Intelligence/reaction_engine.py`)
- CLI Orchestrator → Temporal Analysis: analyzes changes (evidence: `tugarecon.py`)
- CLI Orchestrator → Asset Snapshots: loads snapshots (evidence: `tugarecon.py`)
- CLI Orchestrator → Automated Reactions: triggers reactions
- Temporal Analysis → Change Views: presents changes
- Network Mapping → ASN Lookup: looks up ASN (evidence: `modules/Map/tuga_network_map.py`)
- Network Mapping → Certificate Lookup: uses certificates (evidence: `modules/Map/tuga_network_map.py`)
- CLI Orchestrator → Scan Results: shows saved scans (evidence: `tugarecon.py`)
- CLI Orchestrator → Persistence and Export: saves outputs (evidence: `tugarecon.py`)
- OSINT Enumeration → Persistence and Export: writes findings (evidence: `modules/OSINT/tuga_dnsdumpster.py`)
