# sxylao1/anteumbra architecture

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

- Interactive diagram: https://gitdiagram.com/sxylao1/anteumbra
- Repository: https://github.com/sxylao1/anteumbra

## Overview

Anteumbra is a host-local web-perimeter security platform: it monitors configured website files and access logs, detects suspicious activity, profiles threats, and supports operator-led triage and response through a web dashboard. The runtime also exposes CLI administration and an optional MCP interface for local agents. Its main operational path runs from monitoring and detection through registry, analysis, and quarantine, with persistence and integrations supporting those stages. README capability descriptions clarify product branches; source-index references support the shown runtime assembly. Unsampled implementation details are represented at directory level, and their unverified links are omitted or dashed.

Main entry points: [`src/anteumbra/interfaces/web/blueprints/admin_bp.py`](https://github.com/sxylao1/anteumbra/blob/dev/src/anteumbra/interfaces/web/blueprints/admin_bp.py) (Web dashboard), [`src/anteumbra/application/scanner_service.py`](https://github.com/sxylao1/anteumbra/blob/dev/src/anteumbra/application/scanner_service.py) (Scan workflow), [`src/anteumbra/infrastructure/registry_storage.py`](https://github.com/sxylao1/anteumbra/blob/dev/src/anteumbra/infrastructure/registry_storage.py) (Threat registry), [`src/anteumbra/application/launcher.py`](https://github.com/sxylao1/anteumbra/blob/dev/src/anteumbra/application/launcher.py) (Runtime launcher)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_operations["Runtime operations"]
  node_launcher["Runtime launcher<br/>[launcher.py]"]
  node_runtime["Runtime assembly<br/>[runtime_builder.py]"]
  node_runtime_context["Runtime services<br/>[runtime.py]"]
end

subgraph group_detection["Detection and analysis"]
  node_monitor["Filesystem monitoring<br/>[monitor.py]"]
  node_scanner["Scan workflow<br/>[scanner_service.py]"]
  node_yara["YARA detection<br/>[yara_engine.py]"]
  node_log_analysis["Access-log analysis"]
  node_profiling["Attacker profiling"]
end

subgraph group_response["Triage and response"]
  node_registry[("Threat registry")]
  node_quarantine["Quarantine and restore<br/>[quarantine.py]"]
  node_memory_shell["Memory-shell forensics"]
end

subgraph group_interfaces["Operator interfaces"]
  node_cli["CLI administration<br/>[main.py]"]
  node_web["Web dashboard<br/>[admin_bp.py]"]
  node_web_runtime["Web runtime access<br/>[runtime.py]"]
  node_authentication["Admin authentication<br/>[auth.py]"]
  node_mcp["MCP server<br/>[server.py]"]
  node_mcp_tools["MCP tools<br/>[tools.py]"]
end

subgraph group_extensions["Storage and integrations"]
  node_persistence[("JSON and SQLite stores")]
  node_plugins["Plugin and WAF integration<br/>[plugin_manager.py]"]
  node_siem["SIEM export<br/>[siem_exporter.py]"]
end

node_operator(("Operator"))
node_agent(("Local AI agent"))

node_operator -->|"administers"| node_cli
node_operator -->|"triages"| node_web
node_agent -->|"configures deployment"| node_mcp
node_cli -->|"starts runtime"| node_launcher
node_launcher -->|"builds"| node_runtime
node_runtime -.->|"provides services"| node_runtime_context
node_web -->|"uses runtime"| node_web_runtime
node_web -->|"requires login"| node_authentication
node_monitor -.->|"requests scans"| node_scanner
node_scanner -.->|"scans files"| node_yara
node_scanner -.->|"records findings"| node_registry
node_log_analysis -->|"supports profiling"| node_profiling
node_web -->|"presents analysis"| node_log_analysis
node_web -->|"supports triage"| node_registry
node_web -->|"manages quarantine"| node_quarantine
node_web -->|"manages forensics"| node_memory_shell
node_registry -.->|"persists records"| node_persistence
node_plugins -.->|"exports events"| node_siem
node_mcp -->|"dispatches tools"| node_mcp_tools

click node_cli "https://github.com/sxylao1/anteumbra/blob/dev/src/anteumbra/cli/main.py"
click node_launcher "https://github.com/sxylao1/anteumbra/blob/dev/src/anteumbra/application/launcher.py"
click node_runtime "https://github.com/sxylao1/anteumbra/blob/dev/src/anteumbra/application/runtime_builder.py"
click node_runtime_context "https://github.com/sxylao1/anteumbra/blob/dev/src/anteumbra/domain/runtime.py"
click node_web "https://github.com/sxylao1/anteumbra/blob/dev/src/anteumbra/interfaces/web/blueprints/admin_bp.py"
click node_web_runtime "https://github.com/sxylao1/anteumbra/blob/dev/src/anteumbra/interfaces/web/runtime.py"
click node_authentication "https://github.com/sxylao1/anteumbra/blob/dev/src/anteumbra/interfaces/web/auth.py"
click node_monitor "https://github.com/sxylao1/anteumbra/blob/dev/src/anteumbra/infrastructure/monitoring/monitor.py"
click node_scanner "https://github.com/sxylao1/anteumbra/blob/dev/src/anteumbra/application/scanner_service.py"
click node_yara "https://github.com/sxylao1/anteumbra/blob/dev/src/anteumbra/infrastructure/detection/yara_engine.py"
click node_log_analysis "https://github.com/sxylao1/anteumbra/blob/dev/src/anteumbra/application/log_analyzer_service.py"
click node_profiling "https://github.com/sxylao1/anteumbra/tree/dev/src/anteumbra/infrastructure"
click node_registry "https://github.com/sxylao1/anteumbra/blob/dev/src/anteumbra/infrastructure/registry_storage.py"
click node_quarantine "https://github.com/sxylao1/anteumbra/blob/dev/src/anteumbra/infrastructure/quarantine.py"
click node_memory_shell "https://github.com/sxylao1/anteumbra/blob/dev/src/anteumbra/application/memory_shell_service.py"
click node_persistence "https://github.com/sxylao1/anteumbra/tree/dev/src/anteumbra/infrastructure/persistence"
click node_plugins "https://github.com/sxylao1/anteumbra/blob/dev/src/anteumbra/application/plugin_manager.py"
click node_siem "https://github.com/sxylao1/anteumbra/blob/dev/src/anteumbra/infrastructure/monitoring/siem_exporter.py"
click node_mcp "https://github.com/sxylao1/anteumbra/blob/dev/src/anteumbra/mcp/server.py"
click node_mcp_tools "https://github.com/sxylao1/anteumbra/blob/dev/src/anteumbra/mcp/tools.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_launcher,node_runtime,node_runtime_context toneBlue
class node_monitor,node_scanner,node_yara,node_log_analysis,node_profiling toneAmber
class node_registry,node_quarantine,node_memory_shell toneMint
class node_cli,node_web,node_web_runtime,node_authentication,node_mcp,node_mcp_tools toneRose
class node_persistence,node_plugins,node_siem,node_operator,node_agent toneIndigo
```

## Components

### Runtime operations

- [Runtime launcher](https://github.com/sxylao1/anteumbra/blob/dev/src/anteumbra/application/launcher.py): `src/anteumbra/application/launcher.py`
- [Runtime assembly](https://github.com/sxylao1/anteumbra/blob/dev/src/anteumbra/application/runtime_builder.py): `src/anteumbra/application/runtime_builder.py`
- [Runtime services](https://github.com/sxylao1/anteumbra/blob/dev/src/anteumbra/domain/runtime.py): `src/anteumbra/domain/runtime.py`

### Detection and analysis

- [Filesystem monitoring](https://github.com/sxylao1/anteumbra/blob/dev/src/anteumbra/infrastructure/monitoring/monitor.py): `src/anteumbra/infrastructure/monitoring/monitor.py`
- [Scan workflow](https://github.com/sxylao1/anteumbra/blob/dev/src/anteumbra/application/scanner_service.py): `src/anteumbra/application/scanner_service.py`
- [YARA detection](https://github.com/sxylao1/anteumbra/blob/dev/src/anteumbra/infrastructure/detection/yara_engine.py): `src/anteumbra/infrastructure/detection/yara_engine.py`
- [Access-log analysis](https://github.com/sxylao1/anteumbra/blob/dev/src/anteumbra/application/log_analyzer_service.py): `src/anteumbra/application/log_analyzer_service.py`
- [Attacker profiling](https://github.com/sxylao1/anteumbra/tree/dev/src/anteumbra/infrastructure): `src/anteumbra/infrastructure`

### Triage and response

- [Threat registry](https://github.com/sxylao1/anteumbra/blob/dev/src/anteumbra/infrastructure/registry_storage.py): `src/anteumbra/infrastructure/registry_storage.py`
- [Quarantine and restore](https://github.com/sxylao1/anteumbra/blob/dev/src/anteumbra/infrastructure/quarantine.py): `src/anteumbra/infrastructure/quarantine.py`
- [Memory-shell forensics](https://github.com/sxylao1/anteumbra/blob/dev/src/anteumbra/application/memory_shell_service.py): `src/anteumbra/application/memory_shell_service.py`

### Operator interfaces

- [CLI administration](https://github.com/sxylao1/anteumbra/blob/dev/src/anteumbra/cli/main.py): `src/anteumbra/cli/main.py`
- [Web dashboard](https://github.com/sxylao1/anteumbra/blob/dev/src/anteumbra/interfaces/web/blueprints/admin_bp.py): `src/anteumbra/interfaces/web/blueprints/admin_bp.py`
- [Web runtime access](https://github.com/sxylao1/anteumbra/blob/dev/src/anteumbra/interfaces/web/runtime.py): `src/anteumbra/interfaces/web/runtime.py`
- [Admin authentication](https://github.com/sxylao1/anteumbra/blob/dev/src/anteumbra/interfaces/web/auth.py): `src/anteumbra/interfaces/web/auth.py`
- [MCP server](https://github.com/sxylao1/anteumbra/blob/dev/src/anteumbra/mcp/server.py): `src/anteumbra/mcp/server.py`
- [MCP tools](https://github.com/sxylao1/anteumbra/blob/dev/src/anteumbra/mcp/tools.py): `src/anteumbra/mcp/tools.py`

### Storage and integrations

- [JSON and SQLite stores](https://github.com/sxylao1/anteumbra/tree/dev/src/anteumbra/infrastructure/persistence): `src/anteumbra/infrastructure/persistence`
- [Plugin and WAF integration](https://github.com/sxylao1/anteumbra/blob/dev/src/anteumbra/application/plugin_manager.py): `src/anteumbra/application/plugin_manager.py`
- [SIEM export](https://github.com/sxylao1/anteumbra/blob/dev/src/anteumbra/infrastructure/monitoring/siem_exporter.py): `src/anteumbra/infrastructure/monitoring/siem_exporter.py`

### Other components

- **Operator**
- **Local AI agent**

## Connections

- Operator → CLI administration: administers (evidence: `README.md`)
- Operator → Web dashboard: triages (evidence: `README.md`)
- Local AI agent → MCP server: configures deployment (evidence: `README.md`)
- CLI administration → Runtime launcher: starts runtime
- Runtime launcher → Runtime assembly: builds (evidence: `src/anteumbra/application/launcher.py`)
- Runtime assembly → Runtime services: provides services
- Web dashboard → Web runtime access: uses runtime (evidence: `src/anteumbra/interfaces/web/runtime.py`)
- Web dashboard → Admin authentication: requires login (evidence: `src/anteumbra/interfaces/web/blueprints/admin_diagnostic_routes.py`)
- Filesystem monitoring → Scan workflow: requests scans
- Scan workflow → YARA detection: scans files
- Scan workflow → Threat registry: records findings
- Access-log analysis → Attacker profiling: supports profiling (evidence: `README.md`)
- Web dashboard → Access-log analysis: presents analysis
- Web dashboard → Threat registry: supports triage (evidence: `README.md`)
- Web dashboard → Quarantine and restore: manages quarantine (evidence: `README.md`)
- Web dashboard → Memory-shell forensics: manages forensics (evidence: `README.md`)
- Threat registry → JSON and SQLite stores: persists records
- Plugin and WAF integration → SIEM export: exports events
- MCP server → MCP tools: dispatches tools (evidence: `src/anteumbra/mcp/server.py`)
