Abstract
We demonstrate the presence of a novel scheduler side-channel in preemptive, fixed-priority real-time systems (RTS); examples of such systems can be found in automotive systems, avionic systems, power plants and industrial control systems among others. This side-channel can leak important timing information such as the future arrival times of real-time tasks. This information can then be used to launch devastating attacks, two of which are demonstrated here (on real hardware platforms). Note that it is not easy to capture this timing information due to runtime variations in the schedules, the presence of multiple other tasks in the system and the typical constraints (e.g., deadlines) in the design of RTS. Our ScheduLeak algorithms demonstrate how to effectively exploit this side-channel. A complete implementation is presented on real operating systems (in Real-time Linux and FreeRTOS). Timing information leaked by ScheduLeak can significantly aid other, more advanced, attacks in better accomplishing their goals.
Introduction: The Vulnerability of Real-Time Schedulers
Embedded real-time systems (RTS)—found in critical infrastructure like anti-lock brakes, power plants, and autonomous vehicles—rely on "fixed-priority" schedulers. These schedulers ensure that high-priority tasks (e.g., engine control) always preempt lower-priority ones (e.g., dashboard logging). While these systems are designed for extreme reliability and timing determinism, this very predictability creates a security vulnerability.
Researchers have uncovered ScheduLeak, a novel side-channel attack that allows an unprivileged, low-priority task to precisely infer the arrival times of high-priority "victim" tasks. Unlike covert channels that require two colluding malicious tasks, ScheduLeak involves a single malicious "observer" task that spies on a victim task simply by monitoring its own execution interruptions.
The ScheduLeak Methodology
The attack follows a structured three-step process to bypass the typical isolation between tasks in an RTS:
- Reconstruction: The attacker-controlled observer task runs at the lowest priority. Using a high-resolution system timer, it records exactly when it is executing and when it is preempted by higher-priority tasks. This allows the attacker to reconstruct its own execution patterns.
- The Schedule Ladder Diagram: This is the core analytical innovation. The attacker takes the recorded execution intervals and "folds" them into a grid (the ladder diagram) where each row represents one period of the victim task.
- Inference: Because the victim task is periodic, it consistently preempts the observer at the same relative time in every row of the ladder. By identifying consistent "gaps" across many periods, the observer can filter out noise from sporadic system tasks and pinpoint the victim's exact arrival time and initial offset.
To ensure the attack is viable, the authors introduced a Coverage Ratio metric. This helps an attacker determine if their observer task has enough "viewing time" to capture the victim's behavior without violating system constraints or triggering watchdog timers.
Experimental Evaluation and Results
The effectiveness of ScheduLeak was validated through extensive simulations and real-world hardware tests:
- Synthetic Testing: Using 12,000 randomly generated task sets, the algorithms achieved a success rate of over 97% and an inference precision ratio of 0.99 after observing just 5-10 system cycles.
- Real-Time Linux (Rover): On a Raspberry Pi 3 controlling a physical rover via Ardupilot, ScheduLeak enabled the attacker to time PWM (Pulse Width Modulation) signal overrides with near-perfect precision, increasing attack success from 41.5% to nearly 100% with only 2.6% CPU overhead.
- FreeRTOS (UAV): In a drone surveillance simulation, timing information was used to launch a cache-timing attack. By knowing exactly when the camera task executed, the attacker reduced data noise by 96.9%, successfully identifying when the drone captured high-resolution photos of sensitive locations.
Discussion and Future Directions
The determinism required for RTS reliability is a double-edged sword, as it enables statistical averaging to ignore random system noise. While the current attack assumes knowledge of the victim's period—often derivable from physical system requirements—it demonstrates that unprivileged tasks can effectively "see" the execution of the most privileged tasks in the system.
Future work will address the complexities of multi-core schedulers, which introduce more non-determinism. While perturbing schedules with randomness could defend against ScheduLeak, doing so without violating strict real-time deadlines remains a significant engineering challenge. ScheduLeak highlights a fundamental need to balance security with schedulability in the next generation of real-time operating systems.
Summary updated