# aldrinlijo04/iot_botnet_detection architecture

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

- Interactive diagram: https://gitdiagram.com/aldrinlijo04/iot_botnet_detection
- Repository: https://github.com/aldrinlijo04/iot_botnet_detection

## Overview

This repository appears to be a Suricata rule-book processing and pattern-analysis tool for an IoT botnet detection project. Its visible workflow parses rule-book files into feature data, then analyzes rule fields and saves aggregate patterns. The README provides only the project title, and the main module was not sampled, so its role and any orchestration links cannot be established. The graph reflects only relationships explicit in the sampled parser and analyzer.

Main entry points: [`sureketa_rule_book/parse/parse.py`](https://github.com/aldrinlijo04/iot_botnet_detection/blob/main/sureketa_rule_book/parse/parse.py) (Rule Parser), [`sureketa_rule_book/pattern_recognition/pt_re.py`](https://github.com/aldrinlijo04/iot_botnet_detection/blob/main/sureketa_rule_book/pattern_recognition/pt_re.py) (Pattern Analyzer), [`sureketa_rule_book/features/features.json`](https://github.com/aldrinlijo04/iot_botnet_detection/blob/main/sureketa_rule_book/features/features.json) (Feature Data), [`sureketa_rule_book/rulebook`](https://github.com/aldrinlijo04/iot_botnet_detection/tree/main/sureketa_rule_book/rulebook) (Rule Book)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ingest["Rule Ingestion"]
  node_rulebook["Rule Book"]
  node_parser["Rule Parser<br/>[parse.py]"]
  node_main["Main Module<br/>[main.py]"]
end

subgraph group_analysis["Pattern Analysis"]
  node_analyzer["Pattern Analyzer<br/>[pt_re.py]"]
end

subgraph group_artifacts["Data Artifacts"]
  node_features["Feature Data<br/>[features.json]"]
  node_patterns["Pattern Results<br/>[patterns.json]"]
end

node_parser -->|"reads rules"| node_rulebook
node_parser -->|"writes features"| node_features
node_analyzer -->|"reads features"| node_features
node_analyzer -->|"writes patterns"| node_patterns

click node_rulebook "https://github.com/aldrinlijo04/iot_botnet_detection/tree/main/sureketa_rule_book/rulebook"
click node_parser "https://github.com/aldrinlijo04/iot_botnet_detection/blob/main/sureketa_rule_book/parse/parse.py"
click node_main "https://github.com/aldrinlijo04/iot_botnet_detection/blob/main/sureketa_rule_book/main.py"
click node_features "https://github.com/aldrinlijo04/iot_botnet_detection/blob/main/sureketa_rule_book/features/features.json"
click node_analyzer "https://github.com/aldrinlijo04/iot_botnet_detection/blob/main/sureketa_rule_book/pattern_recognition/pt_re.py"
click node_patterns "https://github.com/aldrinlijo04/iot_botnet_detection/blob/main/sureketa_rule_book/patterns.json"

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_rulebook,node_parser,node_main toneBlue
class node_analyzer toneAmber
class node_features,node_patterns toneMint
```

## Components

### Rule Ingestion

- [Rule Book](https://github.com/aldrinlijo04/iot_botnet_detection/tree/main/sureketa_rule_book/rulebook): `sureketa_rule_book/rulebook`
- [Rule Parser](https://github.com/aldrinlijo04/iot_botnet_detection/blob/main/sureketa_rule_book/parse/parse.py): `sureketa_rule_book/parse/parse.py`
- [Main Module](https://github.com/aldrinlijo04/iot_botnet_detection/blob/main/sureketa_rule_book/main.py): `sureketa_rule_book/main.py`

### Pattern Analysis

- [Pattern Analyzer](https://github.com/aldrinlijo04/iot_botnet_detection/blob/main/sureketa_rule_book/pattern_recognition/pt_re.py): `sureketa_rule_book/pattern_recognition/pt_re.py`

### Data Artifacts

- [Feature Data](https://github.com/aldrinlijo04/iot_botnet_detection/blob/main/sureketa_rule_book/features/features.json): `sureketa_rule_book/features/features.json`
- [Pattern Results](https://github.com/aldrinlijo04/iot_botnet_detection/blob/main/sureketa_rule_book/patterns.json): `sureketa_rule_book/patterns.json`

## Connections

- Rule Parser → Rule Book: reads rules (evidence: `sureketa_rule_book/parse/parse.py`)
- Rule Parser → Feature Data: writes features (evidence: `sureketa_rule_book/parse/parse.py`)
- Pattern Analyzer → Feature Data: reads features (evidence: `sureketa_rule_book/pattern_recognition/pt_re.py`)
- Pattern Analyzer → Pattern Results: writes patterns (evidence: `sureketa_rule_book/pattern_recognition/pt_re.py`)
