# gt-iotedu/attackzoo-sbseg26 architecture

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

- Interactive diagram: https://gitdiagram.com/gt-iotedu/attackzoo-sbseg26
- Repository: https://github.com/gt-iotedu/attackzoo-sbseg26

## Overview

AttackZoo is a Docker-based testbed for controlled network and IoT attack experiments. The principal workflow is to select a catalogued attack, run it against a target alongside benign traffic, capture packets and collect probes or telemetry, then extract features, build datasets, and generate reports. CLI and optional Streamlit UI expose these capabilities; experiment campaigns and attack/target containers are also documented product branches. Some connections rely on README statements or SOURCE INDEX references because source excerpts are partial; unsampled wiring is not assumed.

Main entry points: [`modules/attackzoo/commands.py`](https://github.com/gt-iotedu/attackzoo-sbseg26/blob/main/modules/attackzoo/commands.py) (CLI commands), [`modules/attackzoo/experiment.py`](https://github.com/gt-iotedu/attackzoo-sbseg26/blob/main/modules/attackzoo/experiment.py) (Experiment orchestration), [`modules/registry.py`](https://github.com/gt-iotedu/attackzoo-sbseg26/blob/main/modules/registry.py) (Attack catalog), [`modules/attackzoo_st.py`](https://github.com/gt-iotedu/attackzoo-sbseg26/blob/main/modules/attackzoo_st.py) (Streamlit UI)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["User interfaces"]
  node_cli["AttackZoo CLI<br/>[attackzoo.py]"]
  node_cli_main["CLI dispatcher<br/>[main.py]"]
  node_parser["Command parser<br/>[parser.py]"]
  node_commands["CLI commands<br/>[commands.py]"]
  node_webui["Streamlit UI<br/>[attackzoo_st.py]"]
end

subgraph group_execution["Scenario execution"]
  node_catalog["Attack catalog<br/>[registry.py]"]
  node_attack_containers["Attack containers"]
  node_targets["Target servers"]
  node_benign_clients["Benign clients"]
  node_experiment["Experiment orchestration<br/>[experiment.py]"]
  node_campaign_tools["Campaign workflows"]
end

subgraph group_collection["Evidence collection"]
  node_capture["Packet capture<br/>[capture.py]"]
  node_probes["Availability probes<br/>[probes.py]"]
  node_telemetry["Resource telemetry<br/>[telemetry.py]"]
  node_artifacts["PCAP and run artifacts"]
end

subgraph group_analysis["Dataset and analysis"]
  node_features["Feature extraction<br/>[features.py]"]
  node_datasets["Dataset builder<br/>[datasets.py]"]
  node_availability_report["Availability reports<br/>[availability.py]"]
  node_server_report["Server statistics<br/>[server_stats.py]"]
  node_stability_report["Stability reports<br/>[stability.py]"]
end

node_user(("Experimenter"))
node_docker_runtime["Docker runtime"]

node_user -->|"invokes"| node_cli
node_user -->|"uses"| node_webui
node_cli -.->|"starts"| node_cli_main
node_cli_main -->|"builds parser"| node_parser
node_parser -->|"dispatches to"| node_commands
node_commands -->|"queries"| node_catalog
node_commands -->|"runs"| node_experiment
node_commands -->|"controls"| node_capture
node_commands -->|"extracts"| node_features
node_commands -->|"builds"| node_datasets
node_commands -->|"generates"| node_availability_report
node_commands -->|"generates"| node_server_report
node_commands -->|"generates"| node_stability_report
node_webui -->|"lists attacks"| node_catalog
node_webui -->|"extracts"| node_features
node_webui -->|"builds"| node_datasets
node_catalog -->|"loads definitions"| node_attack_containers
node_catalog -->|"launches"| node_docker_runtime
node_experiment -->|"resolves attack"| node_catalog
node_experiment -->|"starts capture"| node_capture
node_experiment -->|"starts probes"| node_probes
node_experiment -->|"collects metrics"| node_telemetry
node_experiment -.->|"writes run data"| node_artifacts
node_experiment -.->|"targets services"| node_targets
node_experiment -.->|"runs alongside"| node_benign_clients
node_capture -.->|"writes PCAP"| node_artifacts
node_probes -.->|"writes probe data"| node_artifacts
node_telemetry -.->|"writes metrics"| node_artifacts
node_features -.->|"reads PCAP"| node_artifacts
node_features -.->|"provides CSVs"| node_datasets
node_datasets -.->|"writes datasets"| node_artifacts
node_availability_report -.->|"reads probes"| node_artifacts
node_server_report -.->|"reports statistics"| node_artifacts
node_stability_report -.->|"summarizes runs"| node_artifacts
node_user -.->|"runs campaigns"| node_campaign_tools

click node_cli "https://github.com/gt-iotedu/attackzoo-sbseg26/blob/main/attackzoo.py"
click node_cli_main "https://github.com/gt-iotedu/attackzoo-sbseg26/blob/main/modules/attackzoo/main.py"
click node_parser "https://github.com/gt-iotedu/attackzoo-sbseg26/blob/main/modules/attackzoo/parser.py"
click node_commands "https://github.com/gt-iotedu/attackzoo-sbseg26/blob/main/modules/attackzoo/commands.py"
click node_webui "https://github.com/gt-iotedu/attackzoo-sbseg26/blob/main/modules/attackzoo_st.py"
click node_catalog "https://github.com/gt-iotedu/attackzoo-sbseg26/blob/main/modules/registry.py"
click node_attack_containers "https://github.com/gt-iotedu/attackzoo-sbseg26/tree/main/docker/attackers"
click node_targets "https://github.com/gt-iotedu/attackzoo-sbseg26/tree/main/docker/servers"
click node_benign_clients "https://github.com/gt-iotedu/attackzoo-sbseg26/tree/main/docker/clients"
click node_experiment "https://github.com/gt-iotedu/attackzoo-sbseg26/blob/main/modules/attackzoo/experiment.py"
click node_capture "https://github.com/gt-iotedu/attackzoo-sbseg26/blob/main/modules/attackzoo/capture.py"
click node_probes "https://github.com/gt-iotedu/attackzoo-sbseg26/blob/main/modules/attackzoo/probes.py"
click node_telemetry "https://github.com/gt-iotedu/attackzoo-sbseg26/blob/main/modules/attackzoo/telemetry.py"
click node_features "https://github.com/gt-iotedu/attackzoo-sbseg26/blob/main/modules/features.py"
click node_datasets "https://github.com/gt-iotedu/attackzoo-sbseg26/blob/main/modules/datasets.py"
click node_availability_report "https://github.com/gt-iotedu/attackzoo-sbseg26/blob/main/modules/attackzoo/reports/availability.py"
click node_server_report "https://github.com/gt-iotedu/attackzoo-sbseg26/blob/main/modules/attackzoo/reports/server_stats.py"
click node_stability_report "https://github.com/gt-iotedu/attackzoo-sbseg26/blob/main/modules/attackzoo/reports/stability.py"
click node_campaign_tools "https://github.com/gt-iotedu/attackzoo-sbseg26/tree/main/contrib/scripts"

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_cli_main,node_parser,node_commands,node_webui toneBlue
class node_catalog,node_attack_containers,node_targets,node_benign_clients,node_experiment,node_campaign_tools toneAmber
class node_capture,node_probes,node_telemetry,node_artifacts toneMint
class node_features,node_datasets,node_availability_report,node_server_report,node_stability_report toneRose
class node_user,node_docker_runtime toneIndigo
```

## Components

### User interfaces

- [AttackZoo CLI](https://github.com/gt-iotedu/attackzoo-sbseg26/blob/main/attackzoo.py): `attackzoo.py`
- [CLI dispatcher](https://github.com/gt-iotedu/attackzoo-sbseg26/blob/main/modules/attackzoo/main.py): `modules/attackzoo/main.py`
- [Command parser](https://github.com/gt-iotedu/attackzoo-sbseg26/blob/main/modules/attackzoo/parser.py): `modules/attackzoo/parser.py`
- [CLI commands](https://github.com/gt-iotedu/attackzoo-sbseg26/blob/main/modules/attackzoo/commands.py): `modules/attackzoo/commands.py`
- [Streamlit UI](https://github.com/gt-iotedu/attackzoo-sbseg26/blob/main/modules/attackzoo_st.py): `modules/attackzoo_st.py`

### Scenario execution

- [Attack catalog](https://github.com/gt-iotedu/attackzoo-sbseg26/blob/main/modules/registry.py): `modules/registry.py`
- [Attack containers](https://github.com/gt-iotedu/attackzoo-sbseg26/tree/main/docker/attackers): `docker/attackers`
- [Target servers](https://github.com/gt-iotedu/attackzoo-sbseg26/tree/main/docker/servers): `docker/servers`
- [Benign clients](https://github.com/gt-iotedu/attackzoo-sbseg26/tree/main/docker/clients): `docker/clients`
- [Experiment orchestration](https://github.com/gt-iotedu/attackzoo-sbseg26/blob/main/modules/attackzoo/experiment.py): `modules/attackzoo/experiment.py`
- [Campaign workflows](https://github.com/gt-iotedu/attackzoo-sbseg26/tree/main/contrib/scripts): `contrib/scripts`

### Evidence collection

- [Packet capture](https://github.com/gt-iotedu/attackzoo-sbseg26/blob/main/modules/attackzoo/capture.py): `modules/attackzoo/capture.py`
- [Availability probes](https://github.com/gt-iotedu/attackzoo-sbseg26/blob/main/modules/attackzoo/probes.py): `modules/attackzoo/probes.py`
- [Resource telemetry](https://github.com/gt-iotedu/attackzoo-sbseg26/blob/main/modules/attackzoo/telemetry.py): `modules/attackzoo/telemetry.py`
- **PCAP and run artifacts**

### Dataset and analysis

- [Feature extraction](https://github.com/gt-iotedu/attackzoo-sbseg26/blob/main/modules/features.py): `modules/features.py`
- [Dataset builder](https://github.com/gt-iotedu/attackzoo-sbseg26/blob/main/modules/datasets.py): `modules/datasets.py`
- [Availability reports](https://github.com/gt-iotedu/attackzoo-sbseg26/blob/main/modules/attackzoo/reports/availability.py): `modules/attackzoo/reports/availability.py`
- [Server statistics](https://github.com/gt-iotedu/attackzoo-sbseg26/blob/main/modules/attackzoo/reports/server_stats.py): `modules/attackzoo/reports/server_stats.py`
- [Stability reports](https://github.com/gt-iotedu/attackzoo-sbseg26/blob/main/modules/attackzoo/reports/stability.py): `modules/attackzoo/reports/stability.py`

### Other components

- **Experimenter**
- **Docker runtime**

## Connections

- Experimenter → AttackZoo CLI: invokes
- Experimenter → Streamlit UI: uses
- AttackZoo CLI → CLI dispatcher: starts
- CLI dispatcher → Command parser: builds parser (evidence: `modules/attackzoo/main.py`)
- Command parser → CLI commands: dispatches to (evidence: `modules/attackzoo/parser.py`)
- CLI commands → Attack catalog: queries (evidence: `modules/attackzoo/commands.py`)
- CLI commands → Experiment orchestration: runs (evidence: `modules/attackzoo/commands.py`)
- CLI commands → Packet capture: controls (evidence: `modules/attackzoo/commands.py`)
- CLI commands → Feature extraction: extracts (evidence: `modules/attackzoo/commands.py`)
- CLI commands → Dataset builder: builds (evidence: `modules/attackzoo/commands.py`)
- CLI commands → Availability reports: generates (evidence: `modules/attackzoo/commands.py`)
- CLI commands → Server statistics: generates (evidence: `modules/attackzoo/commands.py`)
- CLI commands → Stability reports: generates (evidence: `modules/attackzoo/commands.py`)
- Streamlit UI → Attack catalog: lists attacks (evidence: `modules/attackzoo_st.py`)
- Streamlit UI → Feature extraction: extracts (evidence: `modules/attackzoo_st.py`)
- Streamlit UI → Dataset builder: builds (evidence: `modules/attackzoo_st.py`)
- Attack catalog → Attack containers: loads definitions (evidence: `modules/registry.py`)
- Attack catalog → Docker runtime: launches (evidence: `modules/registry.py`)
- Experiment orchestration → Attack catalog: resolves attack (evidence: `modules/attackzoo/experiment.py`)
- Experiment orchestration → Packet capture: starts capture (evidence: `modules/attackzoo/experiment.py`)
- Experiment orchestration → Availability probes: starts probes (evidence: `modules/attackzoo/experiment.py`)
- Experiment orchestration → Resource telemetry: collects metrics (evidence: `modules/attackzoo/experiment.py`)
- Experiment orchestration → PCAP and run artifacts: writes run data
- Experiment orchestration → Target servers: targets services
- Experiment orchestration → Benign clients: runs alongside
- Packet capture → PCAP and run artifacts: writes PCAP
- Availability probes → PCAP and run artifacts: writes probe data
- Resource telemetry → PCAP and run artifacts: writes metrics
- Feature extraction → PCAP and run artifacts: reads PCAP
- Feature extraction → Dataset builder: provides CSVs (evidence: `modules/datasets.py`)
- Dataset builder → PCAP and run artifacts: writes datasets
- Availability reports → PCAP and run artifacts: reads probes (evidence: `modules/attackzoo/reports/availability.py`)
- Server statistics → PCAP and run artifacts: reports statistics
- Stability reports → PCAP and run artifacts: summarizes runs (evidence: `modules/attackzoo/reports/stability.py`)
- Experimenter → Campaign workflows: runs campaigns
