Introduction
Cyber-Physical Systems (CPS), such as power grids, water treatment plants, and industrial manufacturing facilities, are the backbone of modern infrastructure. These systems rely heavily on embedded controllers like Programmable Logic Controllers (PLCs) and Remote Terminal Units (RTUs). A significant portion of these devices operate on Real-Time Operating Systems (RTOS), with VxWorks being a dominant choice.
Unlike general-purpose operating systems, RTOS environments are often monolithic and lack the transparency required for robust security monitoring. They typically do not feature standard command-line shells or extensive logging, making them "black boxes" to operators. This lack of visibility creates a critical security gap: sophisticated adversaries can exploit vulnerabilities to insert malicious code or alter device logic. Because Human-Machine Interfaces (HMIs) can be spoofed by on-device malware, operators may observe "normal" readings while a system is under active compromise. Traditional network-based monitoring often fails to detect these internal, stealthy modifications.
The DIVER Architecture
To address this transparency gap, we present DIVER (Defensive Implant for Visibility into Embedded Run-times). DIVER is a lightweight framework designed to provide deep, real-time visibility into system internals without compromising the strict real-time requirements of CPS.
The architecture consists of two primary components:
- The Measurer (On-Device): A kernel module deployed directly onto the embedded controller. It operates as a TCP server, utilizing a library of back-end functions to collect granular system data, including task statuses, program counters, stack pointers, and "timer trees" (hierarchical structures of system interrupts). A built-in scripting engine supports dynamic configuration of measurements.
- The Listener (Remote): To minimize the computational burden on the embedded device, data analysis is offloaded to a remote listener. This component receives exfiltrated data, establishes behavioral baselines, and performs anomaly detection.
Security is maintained through the use of Ascon, a NIST-standard lightweight authenticated encryption algorithm, protecting the communication channel between the device and the listener.
Experimental Evaluation
The portability and efficacy of DIVER were evaluated using two distinct hardware platforms:
- Motorola ACE3600 RTU: A 32-bit PowerPC device running VxWorks 5.5, a staple in power grid infrastructure.
- Raspberry Pi 4: A 64-bit ARM device running VxWorks 7, representing modern IoT and edge computing applications.
To assess real-time performance impact, a representative closed-loop control system (an inverted pendulum) was implemented. This allowed for precise measurement of any jitter or latency introduced by the monitoring process.
Key Results and Performance
DIVER demonstrates that high-fidelity monitoring is possible even on resource-constrained legacy hardware.
Minimal Resource Footprint
The base implant is exceptionally small, requiring only 10.6kB on the Motorola ACE and 7.3kB on the Raspberry Pi. Even with full encryption and scripting capabilities enabled, the total memory footprint remains below 55kB, making it suitable for devices with extremely limited storage.
Negligible Performance Impact
In the inverted pendulum control test, DIVER's monitoring activities added only approximately 0.02ms of jitter to the control loop on the Motorola ACE. This level of overhead is well within the operational tolerances of most industrial processes, ensuring that safety-critical functions remain unaffected.
Robust Anomaly Detection
DIVER successfully identified ten different attack scenarios, ranging from unauthorized kernel module insertion to stealthy modifications of task priorities and timer callback functions. By monitoring the "timer tree"—hashing the code of callback functions registered to system timers—DIVER can detect if an attacker has hijacked periodic tasks to execute malicious payloads.
Conclusion
DIVER provides a path toward securing the "black box" controllers of critical infrastructure. By operating at the kernel level, it gains access to the "ground truth" of the operating system, making it significantly harder for malware to remain hidden compared to application-level solutions. While current deployment requires administrative access to load kernel modules, the framework offers a powerful tool for defenders to monitor and protect the cyber-physical systems that underpin modern society.
Summary updated