Design and Usage of the Human-Machine Interfaces (HMI) for a Land-Based Railway Cyber Range
In the previous article, Implementing Different Human-Machine Interfaces (HMI) for a Land-Based Railway Cyber Range, we explored the development of four specialized SCADA HMIs designed for a land-based railway simulation cyber range. That article introduced the foundational concepts behind SCADA HMIs, the rationale for their implementation in cyber-physical environments, and the functional architecture tailored for this railway system's specific use case. I concluded with an overview of the network topology and communication design for each HMI.
Introduction
This article serves as the second installment in the HMI documentation series. In previous article, I end with the introduction of detail network and communication design of each HMI, here I will move from conceptual design to practical software implementation, providing a detailed look into how each of the four HMIs operates within the cyber range and supports hands-on cybersecurity exercises.
This article is organized into four key sections:
Clarifying a Common Question
Before diving into the technical details, let's clarify a frequent question may ask when I introduce the OT cyber range:
Once the hacker get in to OT environment, it’s already too late -- defense is futile and the war is over. There is no point for OT engineers to be cyber security expert, it is purely the responsibility of IT to detect and defense the cyber attack, not OT engineers.
This viewpoint may be common for OT operators, but from a OT system manager's view it underestimates the defensive capabilities present in modern OT systems and the crucial role of OT engineers. In reality, OT system includes complex protection , fault tolerance and redundancy mechanisms to avoid damage for different abnormal situation includes cyber attack. Such as the PLC-IP whitelisting, the use of static ARP entries, and tightly controlled communications protocols to make the ARP spoofing, MITM attack nearly impossible. Even after an initial breach, OT engineers who understand both the physical processes and security principles can still identify, analyze, and respond to attacks in time.
From the defender's view unlike IT environments, where traffic is often encrypted and obfuscated, OT networks exhibit highly deterministic behavior. This predictability allows abnormal traffic—such as unexpected mDNS queries, unsolicited HTTP requests, or rogue pings—to stand out clearly. Thus, with the right tools and training, OT engineers can become a first line of defense against cyber threats, making real-time visibility through HMIs a critical component of incident response.
HMI Software Design
To support the simulation, monitoring, and incident response capabilities required by a railway cyber range, all Human-Machine Interface (HMI) programs are developed using a modular, multithreaded architecture. This design ensures efficient data handling, real-time responsiveness, and separation of responsibilities across different functional modules. The overall software structure is depicted in the architecture diagram below:
Figure-00: HMI software structure diagram, version v_0.0.3 (2025)
At the core of the HMI application is the Main Thread, which orchestrates five key sub-threads responsible for managing data flow, user interaction, system communication, and real-time control.
Main Thread and Core Modules
The main thread initializes and governs the entire HMI application by controlling the lifecycle and interaction of all sub-modules and threads. The main thread includes 6 sub-modules:
1. IT Data Manager Thread
This thread handles the communications on the IT layer, including interactions with databases and inter-HMI messaging exchange, and conducts preliminary filtering of incoming data:
2. OT Data Manager Thread
Thread responsible for collecting and preparing operational data from OT field devices such as PLCs, RTUs, and IEDs:
3. Data Processing Thread
This thread serves as the data refinement and analysis center for the HMI:
4. UI Display Manager Thread
Manages the visual interface and interaction logic between the operator and the system:
5. Local I/O Manager Thread
Handles program configuration, logging, and global state variables:
HMI UI Design Introduction
This section will introduce the User Interface design for each HMI program.
Design of PLC Display Panel
In the machine-level HMIs each HMI features multiple PLC display panels to visualize the real-time raw PLC data (which always hide in real world HMI or digital twin HMI). Each machine-level HMI displays a different number of PLC panels, depending on its monitoring scope:
Each panel presents detailed, real-time information from a specific PLC, with mappings to its associated ladder logic and connected physical components. The design structure is shown in the diagram below:
Each PLC panel is divided into two main sections: PLC Information and PLC State Display.
PLC Information Section provides metadata and communication details about the connected PLC:
PLC State Display section shows the real-time data read directly from the PLC ladder logic and maps it to the physical world components. The display is divided into five key columns:
The register ID and coil ID formatting follows conventions commonly used in Schneider Electric's Wonderware PLC programming tool's stand, ensuring compatibility and familiarity for industrial engineers as shown below:
Design of Sensor-Signal Relationship Diagram
The Sensor-Signal Relationship Diagram is a core UI component of both the Signal System Monitor HMI, Block Monitor HMI and the HQ Management HMI, offering a real-time visual mapping between the simulated physical world components (stations and junctions), their connected sensors, and the control signal states. It is designed to provide intuitive situational awareness during operation and cyber defense activities.
Below is an example to mapping the physical world simulation components to the sensor-signal relationship diagram display:
The diagram represents the interaction between:
The relationships are visualized in a way that allows operators to instantly assess whether a signal behavior is logically valid based on the current state of its corresponding sensors and PLC logic.
Ladder Logic Verification Mode
A key feature of the Sensor-Signal Relationship Diagram is the "Ladder Logic Verification Mode". When this mode is enabled (typically during cyber defense exercises), the HMI operates in simulation-consistency verification mode, the detail process is:
This verification mechanism is inspired by concepts from the PLC Honeypot Project: https://www.linkedin.com/pulse/python-plc-honeypot-project-yuancheng-liu-vks8c
HMI UI Display Introduction
This chapter introduces the User Interface (UI) design and core functional components of the four HMI types: Signal System Monitor HMI, Railway Block Monitor HMI, Railway Train Control HMI, and HQ Management HMI.
1. Signal System Monitor HMI
The Signal System Monitor HMI provides visualization of sensor-to-signal mapping within both station and junction areas. It is used to show the signal operations in relation to train presence and movement across track forks and platforms. The UI with detail function explanatory note is shown below :
HMI Main Components:
This HMI plays a critical role in simulating switch misbehavior, light malfunction, or control failures under normal or attack conditions.
2. Railway Block Monitor HMI
The Railway Block Monitor HMI focuses on block-level train control and ATP (Automatic Train Protection) management. It simulates block occupancy, sensor detection, and signal enforcement across train blocks. The UI with detail function explanatory note is shown below :
HMI Main Components:
This HMI is especially useful in demonstrating the impact of cyber tampering with ATP logic or unauthorized control access.
3. Railway Train Control HMI
The Railway Train Control HMI is designed for monitoring individual train systems, including traction power, radar input, and real-time diagnostics. It supports both operational simulation and cybersecurity testing. The UI with detail function explanatory note is shown below :
Main Components:
4. HQ Management HMI
The HQ Management HMI acts as the supervisory-level interface for control room operators. It provides an overview of the full railway system’s operational status and enables strategic decision-making. The UI with detail function explanatory note is shown below :
Main Components:
This interface provides centralized visibility and is vital for cyber situational awareness, abnormal pattern detection, and incident response coordination.
HMI Usage and Defense Case Study
This section will introduce three case studies demonstrating how Human-Machine Interfaces (HMIs) in the Land-Based Railway Cyber Range can be actively used by blue team defenders to detect and respond to potential Operational Technology (OT) cyberattacks. These scenarios illustrate the value of real-time monitoring, sensor-signal verification, and cross-HMI data consistency in cyber defense operations.
Case 1: Detecting False Command Injection on PLCs
Objective: Use the HMI’s Sensor-Signal Relationship Diagram to detect inconsistencies between actual PLC output and expected output computed from ladder logic. The steps are shown in below picture:
Detail Steps:
Case 2: Detecting False Data Injection on RTUs
Objective: Use multi-layer HMI verification to identify potential RTU memory manipulation or forged data injection attack. The steps is shown below :
Detail Steps:
Case 3: Detecting ARP Spoofing via PLC Connection Panel
Objective: Identify ARP spoofing and communication drop attacks using HMI network connection indicators . This case demonstrates how blue team members can detect ARP spoofing attacks that may silently drop or redirect communication between the HMI and PLCs. The observation is shown below:
The observations include:
For the case study detail, please refer to this:
OT Cyber Attack Workshop [ Case Study 02 ]: ARP Spoofing Attack on HM : https://www.linkedin.com/pulse/ot-cyber-attack-workshop-case-study-02-arp-spoofing-hmi-yuancheng-liu-howzc
If you want to know more about the land based railway system cyber range, these are some related articles:
Railway system demo video: https://youtu.be/WnJh1T3XZns?si=IlVXDRiWxJ1Rwe-K
Cyber attack case studies on the Railway system:
Railway system technology introduction document:
Thanks for spending time to check the article detail, if you have any question and suggestion or find any program bug, please feel free to message me. Many thanks if you can give some comments and share any of the improvement advice so we can make our work better ~
Spécialiste systèmes Automatisation et SCADA/EMS/DMS
1moVery relevant topic 👍 Thank you for sharing and providing feedback.
Senior Automation & IIOT Engineer | SCADA | ABB RTU | Indusrty 4.0 | WinCC | PLC | Ignition
1moTarek Gamal AMIN