# andyyyy12345/honeypot architecture

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

- Interactive diagram: https://gitdiagram.com/andyyyy12345/honeypot
- Repository: https://github.com/andyyyy12345/honeypot

## Overview

Ce dépôt est un honeypot réseau : son point d’entrée démarre en parallèle des pièges dédiés et des services texte génériques, qui écoutent les tentatives de connexion et leur renvoient des réponses simulées. Les interactions sont consignées dans un journal JSONL. Le piège SSH peut aussi exécuter les commandes capturées dans un conteneur Docker. Les liens suivent les appels visibles dans les extraits ; les relations avec les clients réseau sont documentées par les serveurs socket échantillonnés.

Main entry points: [`main.py`](https://github.com/andyyyy12345/honeypot/blob/main/main.py) (Démarrage), [`src/gestionnaire_logs.py`](https://github.com/andyyyy12345/honeypot/blob/main/src/gestionnaire_logs.py) (Gestionnaire logs), [`src/services/honeypot_ssh.py`](https://github.com/andyyyy12345/honeypot/blob/main/src/services/honeypot_ssh.py) (Leurre SSH), [`src/services/honeypot_http.py`](https://github.com/andyyyy12345/honeypot/blob/main/src/services/honeypot_http.py) (Leurre HTTP)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Orchestration"]
  node_main["Démarrage<br/>[main.py]"]
end

subgraph group_traps["Services leurres"]
  node_http["Leurre HTTP<br/>[honeypot_http.py]"]
  node_ssh["Leurre SSH<br/>[honeypot_ssh.py]"]
  node_ftp["Leurre FTP<br/>[honeypot_ftp.py]"]
  node_redis["Leurre Redis<br/>[honeypot_redis.py]"]
  node_mysql["Leurre MySQL<br/>[honeypot_mysql.py]"]
  node_generic["Leurres texte"]
end

subgraph group_observability["Journalisation"]
  node_logger["Gestionnaire logs"]
  node_journal["Journal JSONL"]
end

node_operator(("Opérateur"))
node_sandbox["Conteneur Docker"]

node_operator -->|"lance"| node_main
node_main -->|"démarre"| node_http
node_main -->|"démarre"| node_ssh
node_main -->|"démarre"| node_ftp
node_main -->|"démarre"| node_redis
node_main -->|"démarre"| node_mysql
node_main -->|"démarre"| node_generic
node_operator -->|"se connecte"| node_http
node_operator -->|"se connecte"| node_ssh
node_operator -->|"se connecte"| node_ftp
node_operator -->|"se connecte"| node_redis
node_operator -->|"se connecte"| node_mysql
node_operator -->|"se connecte"| node_generic
node_http -->|"consigne"| node_logger
node_ssh -->|"consigne"| node_logger
node_ftp -->|"consigne"| node_logger
node_redis -->|"consigne"| node_logger
node_mysql -->|"consigne"| node_logger
node_generic -->|"consigne"| node_logger
node_logger -->|"ajoute JSONL"| node_journal
node_ssh -->|"exécute commandes"| node_sandbox

click node_main "https://github.com/andyyyy12345/honeypot/blob/main/main.py"
click node_http "https://github.com/andyyyy12345/honeypot/blob/main/src/services/honeypot_http.py"
click node_ssh "https://github.com/andyyyy12345/honeypot/blob/main/src/services/honeypot_ssh.py"
click node_ftp "https://github.com/andyyyy12345/honeypot/blob/main/src/services/honeypot_ftp.py"
click node_redis "https://github.com/andyyyy12345/honeypot/blob/main/src/services/honeypot_redis.py"
click node_mysql "https://github.com/andyyyy12345/honeypot/blob/main/src/services/honeypot_mysql.py"
click node_generic "https://github.com/andyyyy12345/honeypot/blob/main/src/services/honeypot_generique.py"
click node_logger "https://github.com/andyyyy12345/honeypot/blob/main/src/gestionnaire_logs.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_main toneBlue
class node_http,node_ssh,node_ftp,node_redis,node_mysql,node_generic toneAmber
class node_logger,node_journal toneMint
class node_operator,node_sandbox toneIndigo
```

## Components

### Orchestration

- [Démarrage](https://github.com/andyyyy12345/honeypot/blob/main/main.py): `main.py`

### Services leurres

- [Leurre HTTP](https://github.com/andyyyy12345/honeypot/blob/main/src/services/honeypot_http.py): `src/services/honeypot_http.py`
- [Leurre SSH](https://github.com/andyyyy12345/honeypot/blob/main/src/services/honeypot_ssh.py): `src/services/honeypot_ssh.py`
- [Leurre FTP](https://github.com/andyyyy12345/honeypot/blob/main/src/services/honeypot_ftp.py): `src/services/honeypot_ftp.py`
- [Leurre Redis](https://github.com/andyyyy12345/honeypot/blob/main/src/services/honeypot_redis.py): `src/services/honeypot_redis.py`
- [Leurre MySQL](https://github.com/andyyyy12345/honeypot/blob/main/src/services/honeypot_mysql.py): `src/services/honeypot_mysql.py`
- [Leurres texte](https://github.com/andyyyy12345/honeypot/blob/main/src/services/honeypot_generique.py): `src/services/honeypot_generique.py`

### Journalisation

- [Gestionnaire logs](https://github.com/andyyyy12345/honeypot/blob/main/src/gestionnaire_logs.py): `src/gestionnaire_logs.py`
- **Journal JSONL**

### Other components

- **Opérateur**
- **Conteneur Docker**

## Connections

- Opérateur → Démarrage: lance (evidence: `main.py`)
- Démarrage → Leurre HTTP: démarre (evidence: `main.py`)
- Démarrage → Leurre SSH: démarre (evidence: `main.py`)
- Démarrage → Leurre FTP: démarre (evidence: `main.py`)
- Démarrage → Leurre Redis: démarre (evidence: `main.py`)
- Démarrage → Leurre MySQL: démarre (evidence: `main.py`)
- Démarrage → Leurres texte: démarre (evidence: `main.py`)
- Opérateur → Leurre HTTP: se connecte (evidence: `src/services/honeypot_http.py`)
- Opérateur → Leurre SSH: se connecte (evidence: `src/services/honeypot_ssh.py`)
- Opérateur → Leurre FTP: se connecte (evidence: `src/services/honeypot_ftp.py`)
- Opérateur → Leurre Redis: se connecte (evidence: `src/services/honeypot_redis.py`)
- Opérateur → Leurre MySQL: se connecte (evidence: `src/services/honeypot_mysql.py`)
- Opérateur → Leurres texte: se connecte (evidence: `src/services/honeypot_generique.py`)
- Leurre HTTP → Gestionnaire logs: consigne (evidence: `src/services/honeypot_http.py`)
- Leurre SSH → Gestionnaire logs: consigne (evidence: `src/services/honeypot_ssh.py`)
- Leurre FTP → Gestionnaire logs: consigne (evidence: `src/services/honeypot_ftp.py`)
- Leurre Redis → Gestionnaire logs: consigne (evidence: `src/services/honeypot_redis.py`)
- Leurre MySQL → Gestionnaire logs: consigne (evidence: `src/services/honeypot_mysql.py`)
- Leurres texte → Gestionnaire logs: consigne (evidence: `src/services/honeypot_generique.py`)
- Gestionnaire logs → Journal JSONL: ajoute JSONL (evidence: `src/gestionnaire_logs.py`)
- Leurre SSH → Conteneur Docker: exécute commandes (evidence: `src/services/honeypot_ssh.py`)
