# huynhdienofficial/aegisscan architecture

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

- Interactive diagram: https://gitdiagram.com/huynhdienofficial/aegisscan
- Repository: https://github.com/huynhdienofficial/aegisscan

## Overview

AegisScan is a web and infrastructure security-scanning platform with CLI and Streamlit entry points. The documented main workflow scopes and safety-checks a target, crawls it, runs passive and active checks, consolidates findings, assesses risk, and stores or exports results. Additional documented capabilities include API discovery, extended web and infrastructure scanners, and UI-only enterprise/security modules. The graph uses README statements and the shown source references; unsampled CLI wiring and some optional integrations are not asserted beyond documented behavior.

Main entry points: [`smart_scanner/scanner_ui.py`](https://github.com/huynhdienofficial/aegisscan/blob/main/smart_scanner/scanner_ui.py) (Full Streamlit UI), [`smart_scanner/cli.py`](https://github.com/huynhdienofficial/aegisscan/blob/main/smart_scanner/cli.py) (CLI), [`smart_scanner/crawler_core.py`](https://github.com/huynhdienofficial/aegisscan/blob/main/smart_scanner/crawler_core.py) (Async crawler), [`smart_scanner/utils/request_handler.py`](https://github.com/huynhdienofficial/aegisscan/blob/main/smart_scanner/utils/request_handler.py) (HTTP request handler)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Scan entry points"]
  node_cli["CLI<br/>[cli.py]"]
  node_ui["Full Streamlit UI<br/>[scanner_ui.py]"]
end

subgraph group_scan["Discovery and scanning"]
  node_crawler["Async crawler<br/>[crawler_core.py]"]
  node_api["API discovery<br/>[api_discovery.py]"]
  node_passive["Passive scanners<br/>[passive_scanner.py]"]
  node_technology["Technology detection"]
  node_active["Active web scanner<br/>[active_scanner.py]"]
  node_fuzzer["Fuzzer engine<br/>[fuzzer_engine.py]"]
  node_extended["Extended web checks"]
  node_infra["Infrastructure checks<br/>[infra_scanner.py]"]
end

subgraph group_control["Safety and exploitation"]
  node_scope["Scope guard<br/>[scope_guard.py]"]
  node_safety["Safety profiles<br/>[safety_profiles.py]"]
  node_requests["HTTP request handler<br/>[request_handler.py]"]
  node_exploit_manager["Exploit manager<br/>[exploit_manager.py]"]
  node_exploitation["Controlled exploitation<br/>[exploitation.py]"]
  node_exploit_tool["Exploitation tool"]
end

subgraph group_results["Findings and reporting"]
  node_correlation["Finding correlation"]
  node_finding_lifecycle["Finding lifecycle"]
  node_risk["Risk assessment<br/>[risk_analyzer.py]"]
  node_storage[("SQLite history<br/>[storage.py]")]
  node_reports["Report exporters"]
  node_governance["Governance features<br/>[governance.py]"]
  node_enterprise["Enterprise integrations<br/>[enterprise.py]"]
end

node_operator(("Operator"))
node_target(("Authorized target"))

node_operator -->|"starts scan"| node_cli
node_operator -->|"starts scan"| node_ui
node_cli -->|"crawls target"| node_crawler
node_ui -->|"crawls target"| node_crawler
node_ui -->|"checks scope"| node_scope
node_ui -->|"configures safety"| node_safety
node_crawler -->|"checks URLs"| node_scope
node_crawler -->|"requests pages"| node_target
node_ui -->|"runs checks"| node_passive
node_ui -->|"detects technology"| node_technology
node_ui -->|"discovers APIs"| node_api
node_ui -->|"starts active scan"| node_exploit_manager
node_exploit_manager -->|"dispatches checks"| node_active
node_active -->|"fuzzes inputs"| node_fuzzer
node_fuzzer -->|"sends probes"| node_requests
node_requests -->|"enforces policy"| node_safety
node_requests -->|"sends requests"| node_target
node_cli -->|"runs extra scans"| node_extended
node_ui -->|"runs extended checks"| node_extended
node_ui -.->|"runs checks"| node_infra
node_exploit_tool -->|"uses module"| node_exploitation
node_ui -.->|"offers controlled tests"| node_exploitation
node_ui -.->|"consolidates findings"| node_correlation
node_cli -.->|"consolidates findings"| node_correlation
node_correlation -.->|"assesses risk"| node_risk
node_risk -->|"scores findings"| node_reports
node_cli -.->|"stores scan history"| node_storage
node_ui -.->|"stores scan history"| node_storage
node_cli -->|"exports reports"| node_reports
node_ui -->|"exports reports"| node_reports
node_ui -.->|"manages findings"| node_finding_lifecycle
node_ui -.->|"offers governance"| node_governance
node_ui -.->|"offers integrations"| node_enterprise

click node_cli "https://github.com/huynhdienofficial/aegisscan/blob/main/smart_scanner/cli.py"
click node_ui "https://github.com/huynhdienofficial/aegisscan/blob/main/smart_scanner/scanner_ui.py"
click node_scope "https://github.com/huynhdienofficial/aegisscan/blob/main/smart_scanner/utils/scope_guard.py"
click node_safety "https://github.com/huynhdienofficial/aegisscan/blob/main/smart_scanner/utils/safety_profiles.py"
click node_crawler "https://github.com/huynhdienofficial/aegisscan/blob/main/smart_scanner/crawler_core.py"
click node_api "https://github.com/huynhdienofficial/aegisscan/blob/main/smart_scanner/discovery/api_discovery.py"
click node_passive "https://github.com/huynhdienofficial/aegisscan/blob/main/smart_scanner/scanners/passive_scanner.py"
click node_technology "https://github.com/huynhdienofficial/aegisscan/blob/main/smart_scanner/fingerprint/technology_detector.py"
click node_active "https://github.com/huynhdienofficial/aegisscan/blob/main/smart_scanner/scanners/active_scanner.py"
click node_fuzzer "https://github.com/huynhdienofficial/aegisscan/blob/main/smart_scanner/utils/fuzzer_engine.py"
click node_extended "https://github.com/huynhdienofficial/aegisscan/tree/main/smart_scanner/scanners/web"
click node_infra "https://github.com/huynhdienofficial/aegisscan/blob/main/smart_scanner/scanners/infra_scanner.py"
click node_requests "https://github.com/huynhdienofficial/aegisscan/blob/main/smart_scanner/utils/request_handler.py"
click node_exploit_manager "https://github.com/huynhdienofficial/aegisscan/blob/main/smart_scanner/fingerprint/attack_surface/exploit_manager.py"
click node_exploitation "https://github.com/huynhdienofficial/aegisscan/blob/main/smart_scanner/exploitation.py"
click node_exploit_tool "https://github.com/huynhdienofficial/aegisscan/blob/main/smart_scanner/exploitation_tool.py"
click node_correlation "https://github.com/huynhdienofficial/aegisscan/blob/main/smart_scanner/correlation_engine.py"
click node_finding_lifecycle "https://github.com/huynhdienofficial/aegisscan/blob/main/smart_scanner/finding_management.py"
click node_risk "https://github.com/huynhdienofficial/aegisscan/blob/main/smart_scanner/utils/risk_analyzer.py"
click node_storage "https://github.com/huynhdienofficial/aegisscan/blob/main/smart_scanner/storage.py"
click node_reports "https://github.com/huynhdienofficial/aegisscan/blob/main/smart_scanner/report_exporters.py"
click node_governance "https://github.com/huynhdienofficial/aegisscan/blob/main/smart_scanner/governance.py"
click node_enterprise "https://github.com/huynhdienofficial/aegisscan/blob/main/smart_scanner/enterprise.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_ui toneBlue
class node_crawler,node_api,node_passive,node_technology,node_active,node_fuzzer,node_extended,node_infra toneAmber
class node_scope,node_safety,node_requests,node_exploit_manager,node_exploitation,node_exploit_tool toneMint
class node_correlation,node_finding_lifecycle,node_risk,node_storage,node_reports,node_governance,node_enterprise toneRose
class node_operator,node_target toneIndigo
```

## Components

### Scan entry points

- [CLI](https://github.com/huynhdienofficial/aegisscan/blob/main/smart_scanner/cli.py): `smart_scanner/cli.py`
- [Full Streamlit UI](https://github.com/huynhdienofficial/aegisscan/blob/main/smart_scanner/scanner_ui.py): `smart_scanner/scanner_ui.py`

### Discovery and scanning

- [Async crawler](https://github.com/huynhdienofficial/aegisscan/blob/main/smart_scanner/crawler_core.py): `smart_scanner/crawler_core.py`
- [API discovery](https://github.com/huynhdienofficial/aegisscan/blob/main/smart_scanner/discovery/api_discovery.py): `smart_scanner/discovery/api_discovery.py`
- [Passive scanners](https://github.com/huynhdienofficial/aegisscan/blob/main/smart_scanner/scanners/passive_scanner.py): `smart_scanner/scanners/passive_scanner.py`
- [Technology detection](https://github.com/huynhdienofficial/aegisscan/blob/main/smart_scanner/fingerprint/technology_detector.py): `smart_scanner/fingerprint/technology_detector.py`
- [Active web scanner](https://github.com/huynhdienofficial/aegisscan/blob/main/smart_scanner/scanners/active_scanner.py): `smart_scanner/scanners/active_scanner.py`
- [Fuzzer engine](https://github.com/huynhdienofficial/aegisscan/blob/main/smart_scanner/utils/fuzzer_engine.py): `smart_scanner/utils/fuzzer_engine.py`
- [Extended web checks](https://github.com/huynhdienofficial/aegisscan/tree/main/smart_scanner/scanners/web): `smart_scanner/scanners/web`
- [Infrastructure checks](https://github.com/huynhdienofficial/aegisscan/blob/main/smart_scanner/scanners/infra_scanner.py): `smart_scanner/scanners/infra_scanner.py`

### Safety and exploitation

- [Scope guard](https://github.com/huynhdienofficial/aegisscan/blob/main/smart_scanner/utils/scope_guard.py): `smart_scanner/utils/scope_guard.py`
- [Safety profiles](https://github.com/huynhdienofficial/aegisscan/blob/main/smart_scanner/utils/safety_profiles.py): `smart_scanner/utils/safety_profiles.py`
- [HTTP request handler](https://github.com/huynhdienofficial/aegisscan/blob/main/smart_scanner/utils/request_handler.py): `smart_scanner/utils/request_handler.py`
- [Exploit manager](https://github.com/huynhdienofficial/aegisscan/blob/main/smart_scanner/fingerprint/attack_surface/exploit_manager.py): `smart_scanner/fingerprint/attack_surface/exploit_manager.py`
- [Controlled exploitation](https://github.com/huynhdienofficial/aegisscan/blob/main/smart_scanner/exploitation.py): `smart_scanner/exploitation.py`
- [Exploitation tool](https://github.com/huynhdienofficial/aegisscan/blob/main/smart_scanner/exploitation_tool.py): `smart_scanner/exploitation_tool.py`

### Findings and reporting

- [Finding correlation](https://github.com/huynhdienofficial/aegisscan/blob/main/smart_scanner/correlation_engine.py): `smart_scanner/correlation_engine.py`
- [Finding lifecycle](https://github.com/huynhdienofficial/aegisscan/blob/main/smart_scanner/finding_management.py): `smart_scanner/finding_management.py`
- [Risk assessment](https://github.com/huynhdienofficial/aegisscan/blob/main/smart_scanner/utils/risk_analyzer.py): `smart_scanner/utils/risk_analyzer.py`
- [SQLite history](https://github.com/huynhdienofficial/aegisscan/blob/main/smart_scanner/storage.py): `smart_scanner/storage.py`
- [Report exporters](https://github.com/huynhdienofficial/aegisscan/blob/main/smart_scanner/report_exporters.py): `smart_scanner/report_exporters.py`
- [Governance features](https://github.com/huynhdienofficial/aegisscan/blob/main/smart_scanner/governance.py): `smart_scanner/governance.py`
- [Enterprise integrations](https://github.com/huynhdienofficial/aegisscan/blob/main/smart_scanner/enterprise.py): `smart_scanner/enterprise.py`

### Other components

- **Operator**
- **Authorized target**

## Connections

- Operator → CLI: starts scan
- Operator → Full Streamlit UI: starts scan
- CLI → Async crawler: crawls target
- Full Streamlit UI → Async crawler: crawls target (evidence: `smart_scanner/scanner_ui.py`)
- Full Streamlit UI → Scope guard: checks scope (evidence: `smart_scanner/scanner_ui.py`)
- Full Streamlit UI → Safety profiles: configures safety (evidence: `smart_scanner/scanner_ui.py`)
- Async crawler → Scope guard: checks URLs (evidence: `smart_scanner/crawler_core.py`)
- Async crawler → Authorized target: requests pages
- Full Streamlit UI → Passive scanners: runs checks (evidence: `smart_scanner/scanner_ui.py`)
- Full Streamlit UI → Technology detection: detects technology (evidence: `smart_scanner/scanner_ui.py`)
- Full Streamlit UI → API discovery: discovers APIs (evidence: `smart_scanner/scanner_ui.py`)
- Full Streamlit UI → Exploit manager: starts active scan (evidence: `smart_scanner/scanner_ui.py`)
- Exploit manager → Active web scanner: dispatches checks (evidence: `smart_scanner/fingerprint/attack_surface/exploit_manager.py`)
- Active web scanner → Fuzzer engine: fuzzes inputs (evidence: `smart_scanner/scanners/active_scanner.py`)
- Fuzzer engine → HTTP request handler: sends probes (evidence: `smart_scanner/utils/fuzzer_engine.py`)
- HTTP request handler → Safety profiles: enforces policy (evidence: `smart_scanner/utils/request_handler.py`)
- HTTP request handler → Authorized target: sends requests
- CLI → Extended web checks: runs extra scans
- Full Streamlit UI → Extended web checks: runs extended checks (evidence: `smart_scanner/scanner_ui.py`)
- Full Streamlit UI → Infrastructure checks: runs checks (evidence: `smart_scanner/scanner_ui.py`)
- Exploitation tool → Controlled exploitation: uses module (evidence: `smart_scanner/exploitation_tool.py`)
- Full Streamlit UI → Controlled exploitation: offers controlled tests (evidence: `smart_scanner/scanner_ui.py`)
- Full Streamlit UI → Finding correlation: consolidates findings (evidence: `smart_scanner/scanner_ui.py`)
- CLI → Finding correlation: consolidates findings
- Finding correlation → Risk assessment: assesses risk
- Risk assessment → Report exporters: scores findings (evidence: `smart_scanner/utils/risk_analyzer.py`)
- CLI → SQLite history: stores scan history
- Full Streamlit UI → SQLite history: stores scan history
- CLI → Report exporters: exports reports
- Full Streamlit UI → Report exporters: exports reports
- Full Streamlit UI → Finding lifecycle: manages findings (evidence: `smart_scanner/scanner_ui.py`)
- Full Streamlit UI → Governance features: offers governance (evidence: `smart_scanner/scanner_ui.py`)
- Full Streamlit UI → Enterprise integrations: offers integrations (evidence: `smart_scanner/scanner_ui.py`)
