# divinelabio/argus architecture

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

- Interactive diagram: https://gitdiagram.com/divinelabio/argus
- Repository: https://github.com/divinelabio/argus

## Overview

Argus is an interactive reconnaissance toolkit: an analyst browses and selects a catalogued module, configures a target and options, runs one or more modules, then reviews output and generated reports. Its module suite covers network infrastructure, web application analysis, and security/threat intelligence. The graph groups implementations by those documented domains rather than listing every scanner. Edges are limited to the README workflow and shown imports or calls; many individual modules were not sampled, so their internal integrations are not detailed.

Main entry points: [`argus/core/runner.py`](https://github.com/divinelabio/argus/blob/main/argus/core/runner.py) (Module runner), [`argus/cli/main.py`](https://github.com/divinelabio/argus/blob/main/argus/cli/main.py) (Interactive CLI), [`argus/core/catalog_cache.py`](https://github.com/divinelabio/argus/blob/main/argus/core/catalog_cache.py) (Catalog cache), [`argus/cli/commands`](https://github.com/divinelabio/argus/tree/main/argus/cli/commands) (Command handlers)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["CLI interface"]
  node_cli["Interactive CLI<br/>[main.py]"]
  node_commands["Command handlers"]
  node_helpers["CLI helpers<br/>[helpers.py]"]
  node_logo["Startup banner<br/>[logo.py]"]
  node_status["Status bar<br/>[status_bar.py]"]
  node_tables["Module tables<br/>[table_modules.py]"]
end

subgraph group_catalog["Module catalog"]
  node_catalog_cache[("Catalog cache<br/>[catalog_cache.py]")]
  node_catalog_loader["Catalog loader<br/>[loader.py]"]
  node_catalog_model["Catalog model<br/>[model.py]"]
end

subgraph group_execution["Execution and reporting"]
  node_settings["Runtime settings<br/>[settings.py]"]
  node_runner["Module runner<br/>[runner.py]"]
  node_reports["Report generator"]
  node_utilities["Shared utilities<br/>[util.py]"]
end

subgraph group_scanners["Reconnaissance modules"]
  node_network["Network reconnaissance"]
  node_web["Web analysis"]
  node_threat["Security intelligence"]
end

node_analyst(("Analyst"))

node_analyst -->|"issues commands"| node_cli
node_cli -->|"registers handlers"| node_commands
node_cli -->|"uses helpers"| node_helpers
node_cli -->|"prints banner"| node_logo
node_cli -->|"prints status"| node_status
node_cli -->|"reads metadata"| node_catalog_cache
node_commands -->|"uses catalog"| node_catalog_cache
node_commands -->|"renders listings"| node_tables
node_commands -->|"starts runs"| node_runner
node_helpers -->|"searches modules"| node_catalog_cache
node_helpers -->|"dispatches runs"| node_runner
node_catalog_cache -->|"loads entries"| node_catalog_loader
node_catalog_cache -->|"normalizes entries"| node_catalog_model
node_runner -->|"looks up scripts"| node_catalog_cache
node_runner -->|"dispatches modules"| node_network
node_runner -->|"dispatches modules"| node_web
node_runner -->|"dispatches modules"| node_threat
node_runner -->|"generates reports"| node_reports
node_reports -->|"reads export settings"| node_settings
node_runner -->|"cleans targets"| node_utilities
node_network -->|"reads runtime settings"| node_settings
node_network -->|"uses network helpers"| node_utilities
node_web -->|"reads runtime settings"| node_settings
node_web -->|"uses shared helpers"| node_utilities
node_threat -->|"reads runtime settings"| node_settings
node_threat -->|"uses shared helpers"| node_utilities

click node_cli "https://github.com/divinelabio/argus/blob/main/argus/cli/main.py"
click node_commands "https://github.com/divinelabio/argus/tree/main/argus/cli/commands"
click node_helpers "https://github.com/divinelabio/argus/blob/main/argus/cli/helpers.py"
click node_logo "https://github.com/divinelabio/argus/blob/main/argus/cli/logo.py"
click node_status "https://github.com/divinelabio/argus/blob/main/argus/cli/status_bar.py"
click node_tables "https://github.com/divinelabio/argus/blob/main/argus/cli/views/table_modules.py"
click node_catalog_cache "https://github.com/divinelabio/argus/blob/main/argus/core/catalog_cache.py"
click node_catalog_loader "https://github.com/divinelabio/argus/blob/main/argus/cli/catalog/loader.py"
click node_catalog_model "https://github.com/divinelabio/argus/blob/main/argus/cli/catalog/model.py"
click node_settings "https://github.com/divinelabio/argus/blob/main/argus/config/settings.py"
click node_runner "https://github.com/divinelabio/argus/blob/main/argus/core/runner.py"
click node_reports "https://github.com/divinelabio/argus/blob/main/argus/utils/report_generator.py"
click node_utilities "https://github.com/divinelabio/argus/blob/main/argus/utils/util.py"
click node_network "https://github.com/divinelabio/argus/tree/main/argus/modules"
click node_web "https://github.com/divinelabio/argus/tree/main/argus/modules"
click node_threat "https://github.com/divinelabio/argus/tree/main/argus/modules"

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_commands,node_helpers,node_logo,node_status,node_tables toneBlue
class node_catalog_cache,node_catalog_loader,node_catalog_model toneAmber
class node_settings,node_runner,node_reports,node_utilities toneMint
class node_network,node_web,node_threat toneRose
class node_analyst toneIndigo
```

## Components

### CLI interface

- [Interactive CLI](https://github.com/divinelabio/argus/blob/main/argus/cli/main.py): `argus/cli/main.py`
- [Command handlers](https://github.com/divinelabio/argus/tree/main/argus/cli/commands): `argus/cli/commands`
- [CLI helpers](https://github.com/divinelabio/argus/blob/main/argus/cli/helpers.py): `argus/cli/helpers.py`
- [Startup banner](https://github.com/divinelabio/argus/blob/main/argus/cli/logo.py): `argus/cli/logo.py`
- [Status bar](https://github.com/divinelabio/argus/blob/main/argus/cli/status_bar.py): `argus/cli/status_bar.py`
- [Module tables](https://github.com/divinelabio/argus/blob/main/argus/cli/views/table_modules.py): `argus/cli/views/table_modules.py`

### Module catalog

- [Catalog cache](https://github.com/divinelabio/argus/blob/main/argus/core/catalog_cache.py): `argus/core/catalog_cache.py`
- [Catalog loader](https://github.com/divinelabio/argus/blob/main/argus/cli/catalog/loader.py): `argus/cli/catalog/loader.py`
- [Catalog model](https://github.com/divinelabio/argus/blob/main/argus/cli/catalog/model.py): `argus/cli/catalog/model.py`

### Execution and reporting

- [Runtime settings](https://github.com/divinelabio/argus/blob/main/argus/config/settings.py): `argus/config/settings.py`
- [Module runner](https://github.com/divinelabio/argus/blob/main/argus/core/runner.py): `argus/core/runner.py`
- [Report generator](https://github.com/divinelabio/argus/blob/main/argus/utils/report_generator.py): `argus/utils/report_generator.py`
- [Shared utilities](https://github.com/divinelabio/argus/blob/main/argus/utils/util.py): `argus/utils/util.py`

### Reconnaissance modules

- [Network reconnaissance](https://github.com/divinelabio/argus/tree/main/argus/modules): `argus/modules`
- [Web analysis](https://github.com/divinelabio/argus/tree/main/argus/modules): `argus/modules`
- [Security intelligence](https://github.com/divinelabio/argus/tree/main/argus/modules): `argus/modules`

### Other components

- **Analyst**

## Connections

- Analyst → Interactive CLI: issues commands
- Interactive CLI → Command handlers: registers handlers (evidence: `argus/cli/main.py`)
- Interactive CLI → CLI helpers: uses helpers (evidence: `argus/cli/main.py`)
- Interactive CLI → Startup banner: prints banner (evidence: `argus/cli/main.py`)
- Interactive CLI → Status bar: prints status (evidence: `argus/cli/main.py`)
- Interactive CLI → Catalog cache: reads metadata (evidence: `argus/cli/main.py`)
- Command handlers → Catalog cache: uses catalog (evidence: `argus/cli/commands/select.py`)
- Command handlers → Module tables: renders listings (evidence: `argus/cli/commands/browse.py`)
- Command handlers → Module runner: starts runs (evidence: `argus/cli/commands/run.py`)
- CLI helpers → Catalog cache: searches modules (evidence: `argus/cli/helpers.py`)
- CLI helpers → Module runner: dispatches runs (evidence: `argus/cli/helpers.py`)
- Catalog cache → Catalog loader: loads entries (evidence: `argus/core/catalog_cache.py`)
- Catalog cache → Catalog model: normalizes entries (evidence: `argus/core/catalog_cache.py`)
- Module runner → Catalog cache: looks up scripts (evidence: `argus/core/runner.py`)
- Module runner → Network reconnaissance: dispatches modules (evidence: `argus/core/runner.py`)
- Module runner → Web analysis: dispatches modules (evidence: `argus/core/runner.py`)
- Module runner → Security intelligence: dispatches modules (evidence: `argus/core/runner.py`)
- Module runner → Report generator: generates reports (evidence: `argus/core/runner.py`)
- Report generator → Runtime settings: reads export settings (evidence: `argus/utils/report_generator.py`)
- Module runner → Shared utilities: cleans targets (evidence: `argus/core/runner.py`)
- Network reconnaissance → Runtime settings: reads runtime settings (evidence: `argus/modules/netbios_name_query.py`)
- Network reconnaissance → Shared utilities: uses network helpers (evidence: `argus/modules/netbios_name_query.py`)
- Web analysis → Runtime settings: reads runtime settings (evidence: `argus/modules/ct_log_query.py`)
- Web analysis → Shared utilities: uses shared helpers (evidence: `argus/modules/ct_log_query.py`)
- Security intelligence → Runtime settings: reads runtime settings (evidence: `argus/modules/cloud_service_enumeration.py`)
- Security intelligence → Shared utilities: uses shared helpers (evidence: `argus/modules/cloud_service_enumeration.py`)
