Incident Investigation

Maritime ICS Attack

Reconstructing an Operational Technology Cyber Attack: From USB Infection to PLC Manipulation โ€” A simulated cyber-physical attack targeting a maritime shipping operator's industrial control systems, analyzed during the DSGN competition at Secodojo Labs.

ICS/OT Security Advanced August 2026 Maritime PLC/SCADA GitHub

Attack Overview

This attack reconstruction was played in Secodojo Labs during the DSGN competition.

Secodojo Lab Environment
Targeted Sabotage: The operation was a multi-stage cyber-physical attack designed to induce kinetic impact on the vessel's stability systems. The attacker leveraged IT/OT convergence to pivot from Windows-based management systems to Linux-based ICS, manipulating Modbus TCP registers to alter vessel control logic.

In this investigation, I analyzed a simulated cyber-physical attack targeting a maritime shipping operator. The attacker successfully compromised access into the vessel's ICS (Industrial Control System) environment controlling OpenPLC.

The attacker demonstrated a high level of sophistication, carefully chaining multiple techniques to pivot from the IT environment into critical OT infrastructure.

Investigation Environment

Environment Machines

In a real-world industrial environment, different machines have different roles, which is why the lab has multiple machines instead of one. To reconstruct the attack chain, the lab provided multiple systems representing both corporate IT and OT networks:

Machine OS Role
VESSEL-ADMIN Workstation Windows Administrative workstation used to manage vessel systems
MAINTENANCE Server Linux Maintenance server for managing operational systems
OT-GW (Operational Technology Gateway) Linux Gateway between corporate IT network and industrial control systems
Splunk SIEM Platform Platform Centralized log analysis and monitoring

Phase 1: Initial Compromise (Weaponization & Delivery)

The attack began with the introduction of a malicious USB device connected to the administrative workstation VESSEL-ADMIN-WS. This allowed the attacker to deliver the initial payload.

A binary named USBInstaller.exe was executed directly from the removable drive. The installer dropped a malicious binary vessel_update.exe. The malware injected its code into a legitimate process to evade detection.

Sysmon Logs - USB Installation
03/13/2026 05:07:02 PM
LogName=Microsoft-Windows-Sysmon/Operational
EventCode=11
EventType=4
ComputerName=VESSEL-ADMIN-WS
User=VESSEL-ADMIN-WS\Administrator
Sid=S-1-5-21-1900926252-2848036488-3804366386-500
SourceName=Microsoft-Windows-Sysmon
Type=Information
RecordNumber=22011
TaskCategory=FileCreate
Message=File created:
RuleName: -
UtcTime: 2026-01-20 17:07:02.401
ProcessGuid: {6b7f4a2c-3d3a-65ad-0000-00102a3f0000}
ProcessId: 4128
Image: E:\USBInstaller.exe
TargetFilename: C:\Users\Administrator\AppData\Local\Temp\vessel_update.exe
CreationUtcTime: 2026-01-20 17:07:02.401
User: VESSEL-ADMIN-WS\Administrator
Hashes: SHA256=7F0C2A3B5E0E7D2E2A7B7A0E0D7DAB3A7B8E5D4C2B1A0F9E8D7C6B5A4E3D2C1B
AdditionalInfo: SourceDrive=E:\ (DriveType=Removable; Device=USBSTOR)
Infection Vector: Physical USB Drive
File executed: E:\USBInstaller.exe
Dropped malicious binary: C:\Users\Administrator\AppData\Local\Temp\vessel_update.exe
Malware Technique: DLL Sideloading (injected DLL into legitimate process to hide activity)
Anti-Forensics: Self-deletion routine after injection

Malware Functionality (Fake Update)

  • Claimed to be a software update
  • In reality: stealth execution, credential theft, persistence, and preparation for OT attack

Phase 2: Credential Harvesting & Database Access

After establishing a foothold, the attacker began searching for credentials stored locally on the system. During this phase, the attacker accessed a database associated with the web application running on the system.

Credential Harvesting Logs 1
Credential Harvesting Logs 2
Recovered Credentials: arjun/SeaPanda123
  • Malware scanned local files for credentials
  • Extracted Linux administrative credentials: arjun:SeaPanda123!
  • Splunk logs revealed unusual file access followed by outbound connections to C2

With the stolen credentials, the attacker authenticated to other systems within the internal network. This phase demonstrates Credential Reuse for Lateral Movement.

Phase 3: SSH Lateral Movement

Using the credentials of user arjun, the attacker initiated an SSH session from the Windows workstation to a Linux-based OT gateway.

SSH Lateral Movement Logs
$ ssh arjun@172.16.237.77
arjun@172.16.237.77's password: ********
Last login: Wed Mar 13 09:30:22 2026 from 172.16.237.10
arjun@ot-gw:~$ whoami
arjun
arjun@ot-gw:~$ sudo -l
Matching Defaults entries for arjun on ot-gw:
    env_reset, mail_badpass, secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin\:/snap/bin

User arjun may run the following commands on ot-gw:
    (ALL : ALL) ALL
Lateral Movement Details:
Used stolen credentials to SSH from Windows to Linux OT management server (172.16.237.77)
Modified /etc/ssh/sshd_config for persistence

Phase 4: PLC Targeting and OT Reconnaissance

Once inside the OT Gateway, the attacker performed reconnaissance to identify industrial services running on the system.

Reconnaissance Commands

  • System identification: whoami & uname -a
  • Check open OT ports: ss -tanup (to find Modbus Port 502 and Web Port 8080)
  • TCP scan (living off the land): for p in {1..65535}; do echo >/dev/tcp/...

The attacker uploaded a malicious diagnostic tool into a legitimate directory: OpenPLC_Diagnostic_Tool

PLC Modbus Attack
PLC Attack Logs
Mar 12 22:43:20 ip-172-16-237-77 start_openplc.sh[39790]: [INFO] 22:43:20 - 192.168.11.28 - - [19/Jan/2026 22:43:20]"GET /compile-program?file=909837.st HTTP/1.1" 200 -
Target: OpenPLC Runtime (Vessel Control)
Tool deployed: OpenPLC_Diagnostic_Tool in the qModMaster directory
Protocol: Modbus TCP on port 502
Malicious Payload: 909837.st uploaded via OpenPLC Web Interface (/compile-program?file=909837.st)
Vulnerability: The PLC allowed Unauthorized Write Access to registers

Phase 5: OT Manipulation

At this stage of the attack chain, the threat actor had successfully pivoted into the OT environment and gained the ability to manipulate the PLC controlling the vessel's critical operations.

This level of access allowed the attacker to potentially influence the vessel's ballast control system, which directly affects the ship's stability.

Modbus TCP Exploitation Details

Component Details
Target SystemOpenPLC Runtime (Vessel Control)
Attack VectorWeb Interface Upload (/compile-program)
Malicious File909837.st (PLC logic)
ProtocolModbus TCP (Port 502)
ImpactManipulation of ballast control logic

Attack Timeline

Time Event
2026-03-13 08:00 USB drive inserted; E:\USBInstaller.exe executed on VESSEL-ADMIN-WS
2026-03-13 08:30 Malicious vessel_update.exe runs (process hollowing, MD5=6103328e...)
2026-03-13 09:00 Scheduled task "VesselMaintenance" created; payload contacts C2 (Sliver)
2026-03-13 09:15 Attacker runs PowerShell port scan (TCPClient loop)
2026-03-13 09:30 MySQL credentials dumped (arjun:SeaPanda123! found)
2026-03-13 09:45 SSH login to 172.16.237.77 using arjun (SSH lateral movement)
2026-03-13 10:00 On Linux: attacker runs OpenPLC_Diagnostic_Tool (MD5=6103... Go binary)
2026-03-13 10:10 1..254 | Test-Connection ping sweep on 172.16.237.x
2026-03-13 10:30 Attacker uploads 909837.st via OpenPLC web interface
2026-03-13 10:35 Modbus/TCP writes to PLC on port 502 (ballast control logic overwritten)

Attack Chain & MITRE ATT&CK Mapping

Attack Chain Visualization

Attack Chain

Attack Chain Steps

  1. USB Device โ€” Physical insertion of malicious USB drive
  2. Windows Workstation (VESSEL-ADMIN-WS) โ€” Initial compromise
  3. Malware Execution (vessel_update.exe) โ€” Process hollowing and persistence
  4. Credential Extraction โ€” Database access and credential theft
  5. Use of Stolen Credentials โ€” arjun:SeaPanda123
  6. SSH Lateral Movement โ€” Pivot to OT Gateway
  7. Compromise of OT Gateway โ€” Access to industrial control environment
  8. Modbus Exploitation โ€” Manipulation of PLC registers
  9. Malicious PLC Logic Deployment โ€” 909837.st uploaded

MITRE ATT&CK Mapping

The attacker techniques observed during the investigation map to several MITRE ATT&CK tactics:

Tactic Technique ID
Initial Access Removable Media T1091
Execution Command and Scripting Interpreter T1059
Defense Evasion Process Injection (Process Hollowing) T1055.012
Persistence Scheduled Task T1053
Credential Access Credentials from Files T1552
Discovery Network Service Scanning T1046
Lateral Movement SSH T1021.004
Command & Control Sliver C2 T1071
Impact Manipulation of Control Logic ICS Technique
Investigation Conclusion: The investigation reconstructed a full IT-to-OT intrusion. The attacker gained initial access via a malicious USB device, executed malware on the Windows workstation, extracted credentials, and used them for SSH lateral movement to the OT gateway. From there, the threat actor interacted with the OpenPLC system and deployed malicious PLC logic over Modbus TCP (port 502), gaining the ability to manipulate vessel control operations.
Disclaimer:
All activities in this writeup were conducted within a fully authorized, isolated laboratory environment.
These techniques are presented solely for educational and defensive security purposes.

Key Takeaways

  • IT/OT Convergence creates attack vectors that bridge corporate and industrial networks
  • Physical USB devices remain a viable initial access vector in isolated environments
  • Credential reuse across IT and OT systems enables lateral movement
  • Modbus TCP lacks authentication, making it vulnerable to manipulation
  • OpenPLC web interfaces can be exploited to deploy malicious logic