Una falla nella gestione dei messaggi del protocollo SSH: un attore malintenzionato potrebbe ottenere accesso non autorizzato ai sistemi interessati ed eseguire comandi arbitrari senza credenziali valide nel server SSH Erlang/OTP
Questo repository fornisce un laboratorio di ricerca sulla sicurezza completo, pronto per la consegna e containerizzato per CVE-2025-32433 (vulnerabilità di autenticazione mancante in Erlang/OTP SSH). Consente a ingegneri della sicurezza, revisori e ricercatori di distribuire, riprodurre, analizzare e rilevare in modo indipendente la falla in un ambiente rigorosamente isolato.
Il laboratorio orchestra 3 container Docker collegati tramite una rete bridge isolata personalizzata (cve-lab-bridge):
┌─────────────────────────────────────────┐
│ Isolated Docker Bridge │
│ (cve-lab-bridge) │
└────┬──────────────────────────────┬─────┘
│ │
┌──────────────┴──────────────┐┌──────────────┴──────────────┐
│ target_vulnerable ││ target_patched │
│ Erlang/OTP 26.2.5 ││ Erlang/OTP 26.2.5.11 │
│ Host Port: 127.0.0.1:2222 ││ Host Port: 127.0.0.1:2223 │
│ Logs: ./logs/target_vulnerable/ ││ Logs: ./logs/target_patched/ │
└─────────────────────────────┘└─────────────────────────────┘
│
┌──────────────┴──────────────┐
│ attacker │
│ Python 3 + Scapy/Paramiko │
│ Workdir: /work │
└─────────────────────────────┘
v20.10+ e Docker Compose v2.20+)paramiko e scapy installati)Clona il repository e avvia tutti i servizi del laboratorio:
# 1. Clone the repository
git clone <repository_url>
cd INE_CYBER_ASSIGNMENT_JOB
# 2. Build and start all 3 lab containers in detached mode
docker compose up -d --build
# 3. Verify all containers are running and healthy
docker ps
Esegui la suite completa di diagnostica e rilevamento a 4 livelli con un solo comando:
python detection/run_all_detections.py
# Enter the attacker container
docker exec -it cve-2025-32433-attacker bash
# Run the master detector inside container
python3 /work/detection/run_all_detections.py
# Connect to Vulnerable Target (Port 2222)
ssh -p 2222 [email protected]
# Password: LabPass2026!Secured
# Connect to Patched Target (Port 2223)
ssh -p 2223 [email protected]
# Password: LabPass2026!Secured
docker exec -it cve-2025-32433-attacker bash):# Connect to Vulnerable Target (Internal Port 2222)
ssh -p 2222 labuser@target_vulnerable
# Password: LabPass2026!Secured
# Connect to Patched Target (Internal Port 2222)
ssh -p 2222 labuser@target_patched
# Password: LabPass2026!Secured
# Test Vulnerable Target
python scripts/baseline_auth_test.py 127.0.0.1 2222
# Test Patched Target
python scripts/baseline_auth_test.py 127.0.0.1 2223
# Test Vulnerable Target
python3 /work/scripts/baseline_auth_test.py target_vulnerable 2222
# Test Patched Target
python3 /work/scripts/baseline_auth_test.py target_patched 2222
# Scan Vulnerable Target
python detection/detect_cve_2025_32433.py 127.0.0.1 2222
# Scan Patched Target
python detection/detect_cve_2025_32433.py 127.0.0.1 2223
# Scan Vulnerable Target
python3 /work/detection/detect_cve_2025_32433.py target_vulnerable 2222
# Scan Patched Target
python3 /work/detection/detect_cve_2025_32433.py target_patched 2222
Monitora la porta TCP 2222 per pacchetti SSH_MSG_CHANNEL_OPEN (Tipo 90 / 0x5A) pre-autenticazione.
# Run inside Attacker Container shell
python3 /work/detection/network_behavior_detect.py
Monitora la tabella dei processi del container vulnerabile (ps aux) per sub-shell generate.
# Run from Host PowerShell
python detection/host_process_monitor.py
I log SSH di Erlang vengono scritti su disco all'interno di ciascun container e montati direttamente sul filesystem dell'host:
./logs/target_vulnerable/ssh.log./logs/target_patched/ssh.logTailing live in PowerShell:
Get-Content -Path .\logs\target_vulnerable\ssh.log -Wait -Tail 20
Fare riferimento a LOGGING.md per i dettagli dello schema dei log.
CVE-2025-32433 è stato risolto in Erlang/OTP 26.2.5.11 (commit b1924d3) e 27.3.3 (commit 6eef041).
Nel target risolto (lab_patched/), ssh_connection.erl applica esplicitamente la validazione dello stato della connessione:
handle_msg(#ssh_msg_channel_open{}, #state{authenticated = false} = State) ->
{disconnect, {error, unauthenticated}, State};
Per arrestare e rimuovere tutti i container e le reti del laboratorio:
docker compose down