# schroe-ja/ids-evaluation-framework architecture

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

- Interactive diagram: https://gitdiagram.com/schroe-ja/ids-evaluation-framework
- Repository: https://github.com/schroe-ja/ids-evaluation-framework

## Overview

IDS Evaluation Framework turns a configured dataset into prepared splits, evaluates IDS plugins across supported evaluation modes, computes static and runtime metrics, and writes reports. Its additional major capability is adversarial robustness testing, including perturbation sweeps. The graph follows explicit calls in the excerpts and indexed imports, plus README-documented capabilities; several referenced implementations and integrations were not sampled, so their internal behavior is not expanded.

Main entry points: [`src/ids_eval/evaluation_pipeline/evaluation_manager.py`](https://github.com/schroe-ja/ids-evaluation-framework/blob/main/src/ids_eval/evaluation_pipeline/evaluation_manager.py) (Evaluation manager), [`src/ids_eval/dataset_pipeline/data_manager.py`](https://github.com/schroe-ja/ids-evaluation-framework/blob/main/src/ids_eval/dataset_pipeline/data_manager.py) (Data manager), [`src/ids_eval/cli.py`](https://github.com/schroe-ja/ids-evaluation-framework/blob/main/src/ids_eval/cli.py) (CLI commands), [`src/ids_eval/evaluation_pipeline/ml_evaluation_orchestrator.py`](https://github.com/schroe-ja/ids-evaluation-framework/blob/main/src/ids_eval/evaluation_pipeline/ml_evaluation_orchestrator.py) (ML evaluation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Configuration and entry"]
  node_cli["CLI commands<br/>[cli.py]"]
  node_config_loader["Config loading<br/>[config_manager.py]"]
  node_run_config["Run config schema<br/>[run_config.py]"]
end

subgraph group_data["Dataset preparation"]
  node_data_manager["Data manager<br/>[data_manager.py]"]
  node_constructor["Dataset construction"]
  node_preprocessor["Preprocessing"]
  node_selector["Feature selection"]
  node_splitter["Data splitting"]
  node_processed_data[("Processed splits")]
  node_analyser["Dataset analysis"]
end

subgraph group_evaluation["IDS evaluation"]
  node_evaluation_manager["Evaluation manager"]
  node_checkpoint[("Evaluation checkpoints")]
  node_orchestrator["ML evaluation"]
  node_robustness_sweep["Robustness sweep"]
end

subgraph group_plugins["Plugin capabilities"]
  node_ids_plugins["IDS model plugins"]
  node_adversarial["Adversarial attacks"]
  node_attack_plugins["Attack implementations<br/>[fgsm_attack.py]"]
  node_static_metrics["Static metrics"]
  node_static_plugins["Metric implementations<br/>[accuracy_metric.py]"]
  node_runtime_metrics["Runtime metrics"]
  node_runtime_plugins["Runtime implementations<br/>[time_metric.py]"]
end

subgraph group_results["Metrics and reporting"]
  node_metrics_calculator["Metric calculation"]
  node_metrics_formatter["Result formatting"]
  node_formatted_result["Formatted results"]
  node_report_writer["Report writing<br/>[report_writer.py]"]
  node_visualizer["Results visualization"]
end

node_user(("Framework user"))

node_user -->|"runs commands"| node_cli
node_cli -->|"loads config"| node_config_loader
node_config_loader -->|"validates"| node_run_config
node_cli -->|"starts dataset run"| node_data_manager
node_cli -->|"starts evaluation"| node_evaluation_manager
node_data_manager -->|"constructs"| node_constructor
node_data_manager -->|"preprocesses"| node_preprocessor
node_data_manager -->|"selects features"| node_selector
node_data_manager -->|"splits data"| node_splitter
node_data_manager -->|"saves splits"| node_processed_data
node_data_manager -->|"reports analysis"| node_analyser
node_evaluation_manager -->|"loads splits"| node_processed_data
node_evaluation_manager -->|"resumes and saves"| node_checkpoint
node_evaluation_manager -->|"runs ML evaluation"| node_orchestrator
node_orchestrator -->|"trains and detects"| node_ids_plugins
node_orchestrator -->|"generates attacks"| node_adversarial
node_adversarial -->|"deploys and calls"| node_attack_plugins
node_orchestrator -->|"runs sweep"| node_robustness_sweep
node_evaluation_manager -->|"calculates metrics"| node_metrics_calculator
node_metrics_calculator -->|"loads metric plugins"| node_static_metrics
node_static_metrics -.->|"implements metric API"| node_static_plugins
node_evaluation_manager -->|"loads runtime metrics"| node_runtime_metrics
node_runtime_metrics -.->|"implements metric API"| node_runtime_plugins
node_evaluation_manager -->|"formats metrics"| node_metrics_formatter
node_metrics_formatter -->|"produces results"| node_formatted_result
node_evaluation_manager -->|"writes reports"| node_report_writer
node_evaluation_manager -->|"visualizes results"| node_visualizer

click node_cli "https://github.com/schroe-ja/ids-evaluation-framework/blob/main/src/ids_eval/cli.py"
click node_config_loader "https://github.com/schroe-ja/ids-evaluation-framework/blob/main/src/ids_eval/run_config_pipeline/config_manager.py"
click node_run_config "https://github.com/schroe-ja/ids-evaluation-framework/blob/main/src/ids_eval/dto/run_config.py"
click node_data_manager "https://github.com/schroe-ja/ids-evaluation-framework/blob/main/src/ids_eval/dataset_pipeline/data_manager.py"
click node_constructor "https://github.com/schroe-ja/ids-evaluation-framework/blob/main/src/ids_eval/dataset_pipeline/dataset_constructor.py"
click node_preprocessor "https://github.com/schroe-ja/ids-evaluation-framework/blob/main/src/ids_eval/dataset_pipeline/dataset_preprocessor.py"
click node_selector "https://github.com/schroe-ja/ids-evaluation-framework/blob/main/src/ids_eval/dataset_pipeline/feature_selector.py"
click node_splitter "https://github.com/schroe-ja/ids-evaluation-framework/blob/main/src/ids_eval/dataset_pipeline/dataset_splitter.py"
click node_analyser "https://github.com/schroe-ja/ids-evaluation-framework/blob/main/src/ids_eval/dataset_pipeline/dataset_analyser.py"
click node_evaluation_manager "https://github.com/schroe-ja/ids-evaluation-framework/blob/main/src/ids_eval/evaluation_pipeline/evaluation_manager.py"
click node_checkpoint "https://github.com/schroe-ja/ids-evaluation-framework/blob/main/src/ids_eval/evaluation_pipeline/evaluation_checkpoint.py"
click node_orchestrator "https://github.com/schroe-ja/ids-evaluation-framework/blob/main/src/ids_eval/evaluation_pipeline/ml_evaluation_orchestrator.py"
click node_ids_plugins "https://github.com/schroe-ja/ids-evaluation-framework/blob/main/src/ids_eval/interface/abstract_ids_connector.py"
click node_adversarial "https://github.com/schroe-ja/ids-evaluation-framework/blob/main/src/ids_eval/adversarial_pipeline/adversarial_generator.py"
click node_attack_plugins "https://github.com/schroe-ja/ids-evaluation-framework/blob/main/plugin_adversarial/fgsm_attack.py"
click node_robustness_sweep "https://github.com/schroe-ja/ids-evaluation-framework/blob/main/src/ids_eval/adversarial_pipeline/robustness_sweep.py"
click node_static_metrics "https://github.com/schroe-ja/ids-evaluation-framework/blob/main/src/ids_eval/interface/abstract_static_metric.py"
click node_static_plugins "https://github.com/schroe-ja/ids-evaluation-framework/blob/main/plugin_static_metric/accuracy_metric.py"
click node_runtime_metrics "https://github.com/schroe-ja/ids-evaluation-framework/blob/main/src/ids_eval/interface/abstract_runtime_metric.py"
click node_runtime_plugins "https://github.com/schroe-ja/ids-evaluation-framework/blob/main/plugin_runtime_metric/time_metric.py"
click node_metrics_calculator "https://github.com/schroe-ja/ids-evaluation-framework/blob/main/src/ids_eval/metrics_pipeline/metrics_calculator.py"
click node_metrics_formatter "https://github.com/schroe-ja/ids-evaluation-framework/blob/main/src/ids_eval/metrics_pipeline/metrics_formatter.py"
click node_formatted_result "https://github.com/schroe-ja/ids-evaluation-framework/blob/main/src/ids_eval/dto/formatted_result.py"
click node_report_writer "https://github.com/schroe-ja/ids-evaluation-framework/blob/main/src/ids_eval/reporting_pipeline/report_writer.py"
click node_visualizer "https://github.com/schroe-ja/ids-evaluation-framework/blob/main/src/ids_eval/reporting_pipeline/results_visualizer.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_config_loader,node_run_config,node_user toneBlue
class node_data_manager,node_constructor,node_preprocessor,node_selector,node_splitter,node_processed_data,node_analyser toneAmber
class node_evaluation_manager,node_checkpoint,node_orchestrator,node_robustness_sweep toneMint
class node_ids_plugins,node_adversarial,node_attack_plugins,node_static_metrics,node_static_plugins,node_runtime_metrics,node_runtime_plugins toneRose
class node_metrics_calculator,node_metrics_formatter,node_formatted_result,node_report_writer,node_visualizer toneIndigo
```

## Components

### Configuration and entry

- [CLI commands](https://github.com/schroe-ja/ids-evaluation-framework/blob/main/src/ids_eval/cli.py): `src/ids_eval/cli.py`
- [Config loading](https://github.com/schroe-ja/ids-evaluation-framework/blob/main/src/ids_eval/run_config_pipeline/config_manager.py): `src/ids_eval/run_config_pipeline/config_manager.py`
- [Run config schema](https://github.com/schroe-ja/ids-evaluation-framework/blob/main/src/ids_eval/dto/run_config.py): `src/ids_eval/dto/run_config.py`

### Dataset preparation

- [Data manager](https://github.com/schroe-ja/ids-evaluation-framework/blob/main/src/ids_eval/dataset_pipeline/data_manager.py): `src/ids_eval/dataset_pipeline/data_manager.py`
- [Dataset construction](https://github.com/schroe-ja/ids-evaluation-framework/blob/main/src/ids_eval/dataset_pipeline/dataset_constructor.py): `src/ids_eval/dataset_pipeline/dataset_constructor.py`
- [Preprocessing](https://github.com/schroe-ja/ids-evaluation-framework/blob/main/src/ids_eval/dataset_pipeline/dataset_preprocessor.py): `src/ids_eval/dataset_pipeline/dataset_preprocessor.py`
- [Feature selection](https://github.com/schroe-ja/ids-evaluation-framework/blob/main/src/ids_eval/dataset_pipeline/feature_selector.py): `src/ids_eval/dataset_pipeline/feature_selector.py`
- [Data splitting](https://github.com/schroe-ja/ids-evaluation-framework/blob/main/src/ids_eval/dataset_pipeline/dataset_splitter.py): `src/ids_eval/dataset_pipeline/dataset_splitter.py`
- **Processed splits**
- [Dataset analysis](https://github.com/schroe-ja/ids-evaluation-framework/blob/main/src/ids_eval/dataset_pipeline/dataset_analyser.py): `src/ids_eval/dataset_pipeline/dataset_analyser.py`

### IDS evaluation

- [Evaluation manager](https://github.com/schroe-ja/ids-evaluation-framework/blob/main/src/ids_eval/evaluation_pipeline/evaluation_manager.py): `src/ids_eval/evaluation_pipeline/evaluation_manager.py`
- [Evaluation checkpoints](https://github.com/schroe-ja/ids-evaluation-framework/blob/main/src/ids_eval/evaluation_pipeline/evaluation_checkpoint.py): `src/ids_eval/evaluation_pipeline/evaluation_checkpoint.py`
- [ML evaluation](https://github.com/schroe-ja/ids-evaluation-framework/blob/main/src/ids_eval/evaluation_pipeline/ml_evaluation_orchestrator.py): `src/ids_eval/evaluation_pipeline/ml_evaluation_orchestrator.py`
- [Robustness sweep](https://github.com/schroe-ja/ids-evaluation-framework/blob/main/src/ids_eval/adversarial_pipeline/robustness_sweep.py): `src/ids_eval/adversarial_pipeline/robustness_sweep.py`

### Plugin capabilities

- [IDS model plugins](https://github.com/schroe-ja/ids-evaluation-framework/blob/main/src/ids_eval/interface/abstract_ids_connector.py): `src/ids_eval/interface/abstract_ids_connector.py`
- [Adversarial attacks](https://github.com/schroe-ja/ids-evaluation-framework/blob/main/src/ids_eval/adversarial_pipeline/adversarial_generator.py): `src/ids_eval/adversarial_pipeline/adversarial_generator.py`
- [Attack implementations](https://github.com/schroe-ja/ids-evaluation-framework/blob/main/plugin_adversarial/fgsm_attack.py): `plugin_adversarial/fgsm_attack.py`
- [Static metrics](https://github.com/schroe-ja/ids-evaluation-framework/blob/main/src/ids_eval/interface/abstract_static_metric.py): `src/ids_eval/interface/abstract_static_metric.py`
- [Metric implementations](https://github.com/schroe-ja/ids-evaluation-framework/blob/main/plugin_static_metric/accuracy_metric.py): `plugin_static_metric/accuracy_metric.py`
- [Runtime metrics](https://github.com/schroe-ja/ids-evaluation-framework/blob/main/src/ids_eval/interface/abstract_runtime_metric.py): `src/ids_eval/interface/abstract_runtime_metric.py`
- [Runtime implementations](https://github.com/schroe-ja/ids-evaluation-framework/blob/main/plugin_runtime_metric/time_metric.py): `plugin_runtime_metric/time_metric.py`

### Metrics and reporting

- [Metric calculation](https://github.com/schroe-ja/ids-evaluation-framework/blob/main/src/ids_eval/metrics_pipeline/metrics_calculator.py): `src/ids_eval/metrics_pipeline/metrics_calculator.py`
- [Result formatting](https://github.com/schroe-ja/ids-evaluation-framework/blob/main/src/ids_eval/metrics_pipeline/metrics_formatter.py): `src/ids_eval/metrics_pipeline/metrics_formatter.py`
- [Formatted results](https://github.com/schroe-ja/ids-evaluation-framework/blob/main/src/ids_eval/dto/formatted_result.py): `src/ids_eval/dto/formatted_result.py`
- [Report writing](https://github.com/schroe-ja/ids-evaluation-framework/blob/main/src/ids_eval/reporting_pipeline/report_writer.py): `src/ids_eval/reporting_pipeline/report_writer.py`
- [Results visualization](https://github.com/schroe-ja/ids-evaluation-framework/blob/main/src/ids_eval/reporting_pipeline/results_visualizer.py): `src/ids_eval/reporting_pipeline/results_visualizer.py`

### Other components

- **Framework user**

## Connections

- Framework user → CLI commands: runs commands (evidence: `README.md`)
- CLI commands → Config loading: loads config (evidence: `src/ids_eval/cli.py`)
- Config loading → Run config schema: validates (evidence: `src/ids_eval/run_config_pipeline/config_manager.py`)
- CLI commands → Data manager: starts dataset run (evidence: `src/ids_eval/cli.py`)
- CLI commands → Evaluation manager: starts evaluation (evidence: `src/ids_eval/cli.py`)
- Data manager → Dataset construction: constructs (evidence: `src/ids_eval/dataset_pipeline/data_manager.py`)
- Data manager → Preprocessing: preprocesses (evidence: `src/ids_eval/dataset_pipeline/data_manager.py`)
- Data manager → Feature selection: selects features (evidence: `src/ids_eval/dataset_pipeline/data_manager.py`)
- Data manager → Data splitting: splits data (evidence: `src/ids_eval/dataset_pipeline/data_manager.py`)
- Data manager → Processed splits: saves splits (evidence: `src/ids_eval/dataset_pipeline/data_manager.py`)
- Data manager → Dataset analysis: reports analysis (evidence: `src/ids_eval/dataset_pipeline/data_manager.py`)
- Evaluation manager → Processed splits: loads splits (evidence: `src/ids_eval/evaluation_pipeline/evaluation_manager.py`)
- Evaluation manager → Evaluation checkpoints: resumes and saves (evidence: `src/ids_eval/evaluation_pipeline/evaluation_manager.py`)
- Evaluation manager → ML evaluation: runs ML evaluation (evidence: `src/ids_eval/evaluation_pipeline/evaluation_manager.py`)
- ML evaluation → IDS model plugins: trains and detects (evidence: `src/ids_eval/evaluation_pipeline/ml_evaluation_orchestrator.py`)
- ML evaluation → Adversarial attacks: generates attacks (evidence: `src/ids_eval/evaluation_pipeline/ml_evaluation_orchestrator.py`)
- Adversarial attacks → Attack implementations: deploys and calls (evidence: `src/ids_eval/adversarial_pipeline/adversarial_generator.py`)
- ML evaluation → Robustness sweep: runs sweep (evidence: `src/ids_eval/evaluation_pipeline/ml_evaluation_orchestrator.py`)
- Evaluation manager → Metric calculation: calculates metrics (evidence: `src/ids_eval/evaluation_pipeline/evaluation_manager.py`)
- Metric calculation → Static metrics: loads metric plugins (evidence: `src/ids_eval/metrics_pipeline/metrics_calculator.py`)
- Static metrics → Metric implementations: implements metric API (evidence: `README.md`)
- Evaluation manager → Runtime metrics: loads runtime metrics (evidence: `src/ids_eval/evaluation_pipeline/evaluation_manager.py`)
- Runtime metrics → Runtime implementations: implements metric API (evidence: `README.md`)
- Evaluation manager → Result formatting: formats metrics (evidence: `src/ids_eval/evaluation_pipeline/evaluation_manager.py`)
- Result formatting → Formatted results: produces results (evidence: `src/ids_eval/metrics_pipeline/metrics_formatter.py`)
- Evaluation manager → Report writing: writes reports (evidence: `src/ids_eval/evaluation_pipeline/evaluation_manager.py`)
- Evaluation manager → Results visualization: visualizes results (evidence: `src/ids_eval/evaluation_pipeline/evaluation_manager.py`)
