A Flaw in SSH protocol message handling, a malicious actor could gain unauthorized access to affected systems and execute arbitrary commands without valid credentials in the Erlang/OTP SSH server
This repository provides a complete, submission-ready, containerized security research lab for CVE-2025-32433 (Erlang/OTP SSH missing authentication vulnerability). It allows security engineers, reviewers, and researchers to independently deploy, reproduce, analyze, and detect the flaw in a strictly isolated environment.
The lab orchestrates 3 Docker containers connected via a custom isolated bridge network (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+ & Docker Compose v2.20+)paramiko and scapy installed)Clone the repository and start all lab services:
# 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
Run the complete 4-layer diagnostic and detection suite in one single command:
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
Monitors TCP port 2222 for pre-auth SSH_MSG_CHANNEL_OPEN (Type 90 / 0x5A) packets.
# Run inside Attacker Container shell
python3 /work/detection/network_behavior_detect.py
Monitors the vulnerable container process table (ps aux) for spawned sub-shells.
# Run from Host PowerShell
python detection/host_process_monitor.py
Erlang SSH logs are written to disk inside each container and mounted directly to your host filesystem:
./logs/target_vulnerable/ssh.log./logs/target_patched/ssh.logLive tailing in PowerShell:
Get-Content -Path .\logs\target_vulnerable\ssh.log -Wait -Tail 20
Refer to LOGGING.md for log schema details.
CVE-2025-32433 was remediated in Erlang/OTP 26.2.5.11 (commit b1924d3) and 27.3.3 (commit 6eef041).
In the remediated target (lab_patched/), ssh_connection.erl explicitly enforces connection state validation:
handle_msg(#ssh_msg_channel_open{}, #state{authenticated = false} = State) ->
{disconnect, {error, unauthenticated}, State};
To stop and remove all lab containers and networks:
docker compose down