# tanzirmehedi/qut-dv25 architecture

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

- Interactive diagram: https://gitdiagram.com/tanzirmehedi/qut-dv25
- Repository: https://github.com/tanzirmehedi/qut-dv25

## Overview

QUT-DV25 is a research dataset repository, not an application service. Its architecture is a staged data pipeline that starts with package identification and ends with benchmark models trained on trace-derived features. The main boundary is between data curation/collection and downstream validation/ML benchmarking.

1. **Dataset acquisition and curation**
The first phase builds the malicious and benign package lists. It uses Jupyter notebooks to gather malicious PyPI package name/version information, enrich it from multiple web sources, and then search for benign counterparts using similarity methods. The outputs here are spreadsheets, CSVs, logs, and notebook artifacts that define the candidate package universe.

2. **Similarity matching as the pairing layer**
A small Python script plus shell wrapper implements similarity checks between malicious and benign package names/metadata. This is the selection bridge between “known malicious samples” and the chosen benign control set. It is a distinct subsystem because it drives dataset balance rather than trace extraction or modeling.

3. **Validation and labeling**
The second phase validates malicious and benign packages and produces labeling reports. Python scripts and HPC-oriented notebooks generate validation JSON/logs and metadata-derived static dataset tables. This layer confirms ground truth before any trace collection or ML training.

4. **Isolated execution environment**
Trace extraction happens in a controlled Raspberry Pi testbed running Ubuntu 24.04 LTS. The repo includes setup guidance for SSH, firewall, hostname/DNS, and optionally XRDP, but the key architectural feature is the isolated environment boundary: package execution is separated from the host and monitored under controlled network conditions.

5. **eBPF-based observability stack**
Behavioral data is collected using eBPF tooling and Linux kernel headers. The monitoring stack captures low-level runtime behavior during package installation and execution. This is the main instrumentation layer and the source of the six behavioral trace families.

6. **Trace families produced**
The repository organizes raw and analyzed traces into Filetop, Install, Opensnoop, Pattern, System Call, and TCP traces. Each family reflects a different observation plane: file I/O, dependency/install behavior, sensitive file access, syscall sequences, and network activity. These are the primary raw data artifacts that feed all later analysis.

7. **Malicious vs benign trace branches**
Trace extraction is performed separately for malicious packages and benign packages, but both follow the same monitoring workflow. This creates parallel datasets with the same schema, enabling supervised comparison and classification. Architecturally, the malicious and benign branches converge again during preprocessing and benchmarking.

8. **Preprocessing and feature engineering**
The technical validation phase begins with notebook-based preprocessing of the raw traces into engineered features. This is where the large raw trace corpus is transformed into the structured tabular forms used by classical ML and by some deep-learning experiments. The repo separates preprocessing from model training, which is important for diagramming the data flow.

9. **Modeling subsystem: traditional ML and deep learning**
The benchmark layer splits into two tracks. Traditional ML trains multiple models per trace family and stores fitted pickles plus comparison CSVs. Deep learning trains a CNN and a Transformer, storing Keras and PyTorch model artifacts with logs. These model artifacts are outputs, not live services.

10. **Published dataset and metadata packaging**
The repository also contains Croissant metadata and a validation report, plus references to Harvard Dataverse distribution. That indicates the final packaged dataset is meant for external reuse and reproducibility. The external service boundary is the Dataverse-hosted dataset, while the repo itself holds the generation and validation workflow.

11. **Main data flow**
In diagram form, the core flow is: malicious package intelligence and benign package selection → validation/labeling → eBPF trace capture on isolated Raspberry Pi nodes → preprocessing and feature engineering → classical ML/DL benchmarking → packaged dataset metadata and publication artifacts.

12. **Key technology boundaries**
The repo spans Python notebooks/scripts, shell automation, eBPF/Linux observability, and ML tooling. The most important architectural split is operational data collection versus offline analysis. Nothing here is a production inference service; it is a reproducible research pipeline that produces datasets, validation artifacts, and trained benchmark models.

Main entry points: [`Phase (iii) Trace Extraction/QUT-DV25_Step 1 Isolated Env with RPIs/Software`](https://github.com/tanzirmehedi/qut-dv25/tree/HEAD/Phase%20(iii)%20Trace%20Extraction/QUT-DV25_Step%201%20Isolated%20Env%20with%20RPIs/Software) (eBPF stack), [`Technical Validation and Benchmarks/QUT-DV25_Step 1 Traces Preprocesing-Feature Engineering`](https://github.com/tanzirmehedi/qut-dv25/tree/HEAD/Technical%20Validation%20and%20Benchmarks/QUT-DV25_Step%201%20Traces%20Preprocesing-Feature%20Engineering) (Feature sets), [`Phase (ii) Dataset Labeling and Validation/QUT-DV25_Step 3 Malicious Packages Metadata and Static Dataset`](https://github.com/tanzirmehedi/qut-dv25/tree/HEAD/Phase%20(ii)%20Dataset%20Labeling%20and%20Validation/QUT-DV25_Step%203%20Malicious%20Packages%20Metadata%20and%20Static%20Dataset) (Static metadata), [`Phase (iii) Trace Extraction`](https://github.com/tanzirmehedi/qut-dv25/tree/HEAD/Phase%20(iii)%20Trace%20Extraction) (Trace families)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_g1["Dataset curation"]
  node_n1["Malicious intel<br/>notebooks/xlsx"]
  node_n2["Web enrich<br/>notebook/csv"]
  node_n3["Similarity match<br/>script/sh"]
  node_n4["Benign select<br/>notebooks"]
end

subgraph group_g2["Labeling and validation"]
  node_n5["Malicious validate<br/>hpc/python"]
  node_n6["Benign validate<br/>hpc/python"]
  node_n7["Static metadata<br/>notebook/xlsx"]
end

subgraph group_g3["Trace extraction"]
  node_n8["Isolated testbed<br/>rpi env"]
  node_n9["eBPF stack<br/>linux observability"]
  node_n10["Malicious branch<br/>trace pipeline"]
  node_n11["Benign branch<br/>trace pipeline"]
  node_n12[("Trace families<br/>filetop/install/opensnoop/tcp")]
end

subgraph group_g4["Benchmarking"]
  node_n13["Preprocess traces<br/>notebooks"]
  node_n14[("Feature sets<br/>trace tables")]
  node_n15["Traditional ML<br/>sklearn benchmarks"]
  node_n16["Deep learning<br/>cnn/transformer"]
  node_n17[("ML artifacts<br/>models/csv")]
  node_n18[("DL artifacts<br/>keras/pth/logs")]
end

subgraph group_g5["Publication"]
  node_n19["Croissant metadata<br/>metadata/report"]
  node_n20(("Published dataset<br/>dataverse package"))
end

node_n1 -->|"enrich"| node_n2
node_n2 -->|"rank"| node_n3
node_n3 -->|"select"| node_n4
node_n1 -->|"validate"| node_n5
node_n4 -->|"validate"| node_n6
node_n5 -->|"derive"| node_n7
node_n6 -->|"derive"| node_n7
node_n7 -->|"execute"| node_n8
node_n8 -->|"monitor"| node_n9
node_n9 -->|"collect"| node_n10
node_n9 -->|"collect"| node_n11
node_n10 -->|"emit"| node_n12
node_n11 -->|"emit"| node_n12
node_n12 -->|"clean"| node_n13
node_n13 -->|"shape"| node_n14
node_n14 -->|"train"| node_n15
node_n14 -->|"train"| node_n16
node_n15 -->|"store"| node_n17
node_n16 -->|"store"| node_n18
node_n19 -->|"package"| node_n20
node_n17 -->|"document"| node_n19
node_n18 -->|"document"| node_n19

click node_n1 "https://github.com/tanzirmehedi/qut-dv25/tree/main/Phase (i) Dataset Collection/QUT-DV25_Step 1 Malicious Package Info"
click node_n2 "https://github.com/tanzirmehedi/qut-dv25/tree/main/Phase (i) Dataset Collection/QUT-DV25_Step 2 Malicious Packages Info Check From Different Sources"
click node_n3 "https://github.com/tanzirmehedi/qut-dv25/tree/main/Phase (i) Dataset Collection/QUT-DV25_Step 3 Similarity Algorithms Implementation"
click node_n4 "https://github.com/tanzirmehedi/qut-dv25/tree/main/Phase (i) Dataset Collection/QUT-DV25_Step 4 Counterpart Benign Packages"
click node_n5 "https://github.com/tanzirmehedi/qut-dv25/tree/main/Phase (ii) Dataset Labeling and Validation/QUT-DV25_Step 1 Malicious Validation Report and Labeling"
click node_n6 "https://github.com/tanzirmehedi/qut-dv25/tree/main/Phase (ii) Dataset Labeling and Validation/QUT-DV25_Step 2 Benign Validation Report and Labeling"
click node_n7 "https://github.com/tanzirmehedi/qut-dv25/tree/main/Phase (ii) Dataset Labeling and Validation/QUT-DV25_Step 3 Malicious Packages Metadata and Static Dataset"
click node_n8 "https://github.com/tanzirmehedi/qut-dv25/tree/main/Phase (iii) Trace Extraction/QUT-DV25_Step 1 Isolated Env with RPIs"
click node_n9 "https://github.com/tanzirmehedi/qut-dv25/tree/main/Phase (iii) Trace Extraction/QUT-DV25_Step 1 Isolated Env with RPIs/Software"
click node_n10 "https://github.com/tanzirmehedi/qut-dv25/tree/main/Phase (iii) Trace Extraction/QUT-DV25_Step 2 Malicious Packages Traces"
click node_n11 "https://github.com/tanzirmehedi/qut-dv25/tree/main/Phase (iii) Trace Extraction/QUT-DV25_Step 3 Benign Packages Traces"
click node_n12 "https://github.com/tanzirmehedi/qut-dv25/tree/main/Phase (iii) Trace Extraction"
click node_n13 "https://github.com/tanzirmehedi/qut-dv25/tree/main/Technical Validation and Benchmarks/QUT-DV25_Step 1 Traces Preprocesing-Feature Engineering"
click node_n14 "https://github.com/tanzirmehedi/qut-dv25/tree/main/Technical Validation and Benchmarks/QUT-DV25_Step 1 Traces Preprocesing-Feature Engineering"
click node_n15 "https://github.com/tanzirmehedi/qut-dv25/tree/main/Technical Validation and Benchmarks/QUT-DV25_Step 2 Traditional ML Implementation"
click node_n16 "https://github.com/tanzirmehedi/qut-dv25/tree/main/Technical Validation and Benchmarks/QUT-DV25_Step 3 DL Implementation"
click node_n17 "https://github.com/tanzirmehedi/qut-dv25/tree/main/Technical Validation and Benchmarks/QUT-DV25_Step 2 Traditional ML Implementation"
click node_n18 "https://github.com/tanzirmehedi/qut-dv25/tree/main/Technical Validation and Benchmarks/QUT-DV25_Step 3 DL Implementation"
click node_n19 "https://github.com/tanzirmehedi/qut-dv25/tree/main/Croissant Report"

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_n1,node_n2,node_n3,node_n4 toneBlue
class node_n5,node_n6,node_n7 toneAmber
class node_n8,node_n9,node_n10,node_n11,node_n12 toneMint
class node_n13,node_n14,node_n15,node_n16,node_n17,node_n18 toneRose
class node_n19,node_n20 toneIndigo
```

## Components

### Dataset curation

Malicious package discovery, enrichment, and benign counterpart selection.

- [Malicious intel](https://github.com/tanzirmehedi/qut-dv25/tree/HEAD/Phase%20(i)%20Dataset%20Collection/QUT-DV25_Step%201%20Malicious%20Package%20Info): notebooks/xlsx · Builds the malicious PyPI package universe from notebook-driven collection and enrichment. · `Phase (i) Dataset Collection/QUT-DV25_Step 1 Malicious Package Info`
- [Web enrich](https://github.com/tanzirmehedi/qut-dv25/tree/HEAD/Phase%20(i)%20Dataset%20Collection/QUT-DV25_Step%202%20Malicious%20Packages%20Info%20Check%20From%20Different%20Sources): notebook/csv · Cross-checks malicious package details against multiple web sources and records results. · `Phase (i) Dataset Collection/QUT-DV25_Step 2 Malicious Packages Info Check From Different Sources`
- [Similarity match](https://github.com/tanzirmehedi/qut-dv25/tree/HEAD/Phase%20(i)%20Dataset%20Collection/QUT-DV25_Step%203%20Similarity%20Algorithms%20Implementation): script/sh · Computes name/metadata similarity to choose benign counterparts for balance. · `Phase (i) Dataset Collection/QUT-DV25_Step 3 Similarity Algorithms Implementation`
- [Benign select](https://github.com/tanzirmehedi/qut-dv25/tree/HEAD/Phase%20(i)%20Dataset%20Collection/QUT-DV25_Step%204%20Counterpart%20Benign%20Packages): notebooks · Downloads and finalizes the selected benign package set. · `Phase (i) Dataset Collection/QUT-DV25_Step 4 Counterpart Benign Packages`

### Labeling and validation

Ground-truth checks and static metadata tables before trace work.

- [Malicious validate](https://github.com/tanzirmehedi/qut-dv25/tree/HEAD/Phase%20(ii)%20Dataset%20Labeling%20and%20Validation/QUT-DV25_Step%201%20Malicious%20Validation%20Report%20and%20Labeling): hpc/python · Validates malicious packages and emits labeling results for the malicious branch. · `Phase (ii) Dataset Labeling and Validation/QUT-DV25_Step 1 Malicious Validation Report and Labeling`
- [Benign validate](https://github.com/tanzirmehedi/qut-dv25/tree/HEAD/Phase%20(ii)%20Dataset%20Labeling%20and%20Validation/QUT-DV25_Step%202%20Benign%20Validation%20Report%20and%20Labeling): hpc/python · Validates benign packages and confirms the control set before trace capture. · `Phase (ii) Dataset Labeling and Validation/QUT-DV25_Step 2 Benign Validation Report and Labeling`
- [Static metadata](https://github.com/tanzirmehedi/qut-dv25/tree/HEAD/Phase%20(ii)%20Dataset%20Labeling%20and%20Validation/QUT-DV25_Step%203%20Malicious%20Packages%20Metadata%20and%20Static%20Dataset): notebook/xlsx · Derives malicious package metadata and a static dataset table from files. · `Phase (ii) Dataset Labeling and Validation/QUT-DV25_Step 3 Malicious Packages Metadata and Static Dataset`

### Trace extraction

Controlled execution on Raspberry Pi testbed with eBPF observability.

- [Isolated testbed](https://github.com/tanzirmehedi/qut-dv25/tree/HEAD/Phase%20(iii)%20Trace%20Extraction/QUT-DV25_Step%201%20Isolated%20Env%20with%20RPIs): rpi env · Controlled Raspberry Pi environment for package execution and trace capture. · `Phase (iii) Trace Extraction/QUT-DV25_Step 1 Isolated Env with RPIs`
- [eBPF stack](https://github.com/tanzirmehedi/qut-dv25/tree/HEAD/Phase%20(iii)%20Trace%20Extraction/QUT-DV25_Step%201%20Isolated%20Env%20with%20RPIs/Software): linux observability · Kernel-level monitoring layer used to observe package installation and runtime behavior. · `Phase (iii) Trace Extraction/QUT-DV25_Step 1 Isolated Env with RPIs/Software`
- [Malicious branch](https://github.com/tanzirmehedi/qut-dv25/tree/HEAD/Phase%20(iii)%20Trace%20Extraction/QUT-DV25_Step%202%20Malicious%20Packages%20Traces): trace pipeline · Trace capture workflow for malicious packages under the same monitoring schema. · `Phase (iii) Trace Extraction/QUT-DV25_Step 2 Malicious Packages Traces`
- [Benign branch](https://github.com/tanzirmehedi/qut-dv25/tree/HEAD/Phase%20(iii)%20Trace%20Extraction/QUT-DV25_Step%203%20Benign%20Packages%20Traces): trace pipeline · Trace capture workflow for benign packages under the same monitoring schema. · `Phase (iii) Trace Extraction/QUT-DV25_Step 3 Benign Packages Traces`
- [Trace families](https://github.com/tanzirmehedi/qut-dv25/tree/HEAD/Phase%20(iii)%20Trace%20Extraction): filetop/install/opensnoop/tcp · Primary behavioral trace families collected from the testbed; includes file I/O, installs, sensitive opens, patterns, syscalls, and TCP activity. · `Phase (iii) Trace Extraction`

### Benchmarking

Trace preprocessing plus classical ML and deep learning experiments.

- [Preprocess traces](https://github.com/tanzirmehedi/qut-dv25/tree/HEAD/Technical%20Validation%20and%20Benchmarks/QUT-DV25_Step%201%20Traces%20Preprocesing-Feature%20Engineering): notebooks · Transforms raw traces into structured feature tables for validation and learning. · `Technical Validation and Benchmarks/QUT-DV25_Step 1 Traces Preprocesing-Feature Engineering`
- [Feature sets](https://github.com/tanzirmehedi/qut-dv25/tree/HEAD/Technical%20Validation%20and%20Benchmarks/QUT-DV25_Step%201%20Traces%20Preprocesing-Feature%20Engineering): trace tables · Intermediate processed datasets for filetop, install, opensnoop, pattern, system call, and TCP traces. · `Technical Validation and Benchmarks/QUT-DV25_Step 1 Traces Preprocesing-Feature Engineering`
- [Traditional ML](https://github.com/tanzirmehedi/qut-dv25/tree/HEAD/Technical%20Validation%20and%20Benchmarks/QUT-DV25_Step%202%20Traditional%20ML%20Implementation): sklearn benchmarks · Trains per-trace-family classical models and stores fitted pickles plus comparison CSVs. · `Technical Validation and Benchmarks/QUT-DV25_Step 2 Traditional ML Implementation`
- [Deep learning](https://github.com/tanzirmehedi/qut-dv25/tree/HEAD/Technical%20Validation%20and%20Benchmarks/QUT-DV25_Step%203%20DL%20Implementation): cnn/transformer · Runs CNN and Transformer experiments for benchmark comparison. · `Technical Validation and Benchmarks/QUT-DV25_Step 3 DL Implementation`
- [ML artifacts](https://github.com/tanzirmehedi/qut-dv25/tree/HEAD/Technical%20Validation%20and%20Benchmarks/QUT-DV25_Step%202%20Traditional%20ML%20Implementation): models/csv · Saved classical model pickles and result tables across trace families and combined runs. · `Technical Validation and Benchmarks/QUT-DV25_Step 2 Traditional ML Implementation`
- [DL artifacts](https://github.com/tanzirmehedi/qut-dv25/tree/HEAD/Technical%20Validation%20and%20Benchmarks/QUT-DV25_Step%203%20DL%20Implementation): keras/pth/logs · Saved neural model weights, training logs, and evaluation outputs. · `Technical Validation and Benchmarks/QUT-DV25_Step 3 DL Implementation`

### Publication

Dataset packaging and validation metadata for reuse.

- [Croissant metadata](https://github.com/tanzirmehedi/qut-dv25/tree/HEAD/Croissant%20Report): metadata/report · Repository-level dataset description and validation report for external reuse. · `Croissant Report`
- **Published dataset**: dataverse package · External distribution boundary for the released QUT-DV25 dataset and metadata.

## Connections

- Malicious intel → Web enrich: enrich · Malicious package intelligence is verified against external sources.
- Web enrich → Similarity match: rank · Enriched malicious package details feed similarity-based benign selection.
- Similarity match → Benign select: select · Similarity results drive the chosen benign counterpart set.
- Malicious intel → Malicious validate: validate · Malicious samples are validated before trace capture.
- Benign select → Benign validate: validate · Selected benign packages are validated as the control branch.
- Malicious validate → Static metadata: derive · Validation outputs contribute to static metadata tables.
- Benign validate → Static metadata: derive · Benign validation also informs the dataset metadata boundary.
- Static metadata → Isolated testbed: execute · Validated package sets move into the isolated execution environment.
- Isolated testbed → eBPF stack: monitor · The testbed runs under eBPF-based observability.
- eBPF stack → Malicious branch: collect · Monitoring captures malicious-package behavior.
- eBPF stack → Benign branch: collect · Monitoring captures benign-package behavior.
- Malicious branch → Trace families: emit · Malicious branch produces the raw trace families.
- Benign branch → Trace families: emit · Benign branch produces the same trace schema.
- Trace families → Preprocess traces: clean · Raw traces are converted into engineered features.
- Preprocess traces → Feature sets: shape · Preprocessing outputs structured trace tables.
- Feature sets → Traditional ML: train · Feature tables feed classical benchmark models.
- Feature sets → Deep learning: train · Feature tables also feed deep-learning experiments.
- Traditional ML → ML artifacts: store · Traditional ML produces model pickles and comparison CSVs.
- Deep learning → DL artifacts: store · Deep learning produces trained weights and logs.
- Croissant metadata → Published dataset: package · Croissant metadata and validation reports support publication.
- ML artifacts → Croissant metadata: document · Model benchmarking results contribute to the release documentation.
- DL artifacts → Croissant metadata: document · Neural benchmark outputs also inform the release metadata.
