ScheduLeak: A Novel Scheduler Side-Channel Attack Against Real-Time Autonomous Control Systems

Chien-Ying Chen, Sibin Mohan, Rakesh B. Bobba, Rodolfo Pellizzoni, Negar Kiyavash

Introduction

Real-time systems (RTS) are the backbone of modern autonomous technologies, ranging from automotive anti-lock braking systems to unmanned aerial vehicles (UAVs). These systems rely on preemptive, fixed-priority schedulers to ensure that safety-critical tasks meet stringent timing constraints. Historically, it was assumed that low-priority, unprivileged user-space tasks could not gain visibility into the execution patterns of high-priority tasks without specific system privileges.

This paper introduces ScheduLeak, a novel side-channel attack that challenges this assumption. ScheduLeak allows an attacker to precisely infer the arrival times and execution schedules of critical tasks by observing the gaps in its own execution. This capability serves as a powerful reconnaissance tool, enabling sophisticated downstream attacks such as control signal overriding or synchronized cache-timing attacks.

The ScheduLeak Attack Methodology

The fundamental insight behind ScheduLeak is that in a preemptive scheduler, the execution of a low-priority task is defined by the absence of higher-priority tasks. By monitoring when it is not running, an unprivileged "observer task" can reconstruct the schedule of the victim task.

1. Schedule Reconstruction

The attacker deploys an observer task that repeatedly polls a high-resolution system timer. By calculating the difference between successive timer reads, the observer can detect "jumps" that exceed the expected execution time of its own instructions. These jumps indicate that the observer was preempted by a higher-priority task.

2. Analysis via the Schedule Ladder Diagram

To filter noise from sporadic tasks or other system activities, the observer organizes the recorded execution gaps into a "Schedule Ladder Diagram." This involves wrapping the observed timeline around the known period ($p_v$) of the target victim task. Because the victim task is periodic, its execution consistently blocks the observer at the same relative offset within each period.

3. Inference and the Coverage Ratio

While other tasks with different periods or sporadic arrivals create scattered noise across the ladder diagram, the victim task’s signature remains stationary and reinforces itself over time. The attacker identifies the largest persistent gap to infer the victim's arrival time. The authors provide a mathematical proof for a Coverage Ratio, demonstrating that if an observer runs for a sufficient duration with a specific execution time relative to the victim, it is guaranteed to eventually observe all possible arrival offsets.

Experimental Evaluation

The researchers evaluated ScheduLeak across synthetic environments and real-world hardware platforms, including Raspberry Pi 3 (Real-Time Linux) and Zedboard (FreeRTOS).

Synthetic Simulations

Using 12,000 randomly generated task sets with varying CPU utilizations (0.1 to 1.0) and task counts (5 to 15), the authors tested the attack's robustness. ScheduLeak achieved an inference success rate exceeding 97% and a precision ratio of 0.99 after observing for only five times the Least Common Multiple (LCM) of the system's task periods.

Case Study: Autonomous Rover

On a Raspberry Pi 3 running the Ardupilot software suite, the attacker targeted a 50Hz PWM update task. By using ScheduLeak to identify the exact moment the legitimate control task finished, the attacker issued malicious steering commands immediately afterward. This allowed for successful control overriding with a negligible 2.6% CPU overhead, making the attack nearly invisible to traditional intrusion detection systems.

Case Study: UAV Cache Attack

In a hardware-in-the-loop (HIL) simulation of a surveillance drone, ScheduLeak was used to "prime" a cache-timing attack. By predicting exactly when the image-processing task would execute, the attacker reduced cache-probing noise by 96.9%. This precision allowed the attacker to identify exactly when the drone's camera was activated over a specific target.

Discussion and Future Work

ScheduLeak represents a significant threat because it requires zero special privileges and can be tuned (via a parameter $\lambda$) to minimize its footprint. The "signal" is the silence—the intervals where the attacker cannot run—making it inherently stealthy.

However, the current research focuses on uniprocessor systems. Multi-core environments introduce parallel execution, which may mask preemption signals and complicate the ladder diagram analysis. Additionally, extreme timing jitter in the operating system could degrade the accuracy of the inference. Defending against ScheduLeak remains a challenge, as randomization techniques often conflict with the deterministic requirements of safety-critical real-time systems.

Summary updated

BibTeX
@inproceedings{chen2019scheduleak,
  author = {Chien-Ying Chen and Sibin Mohan and Rakesh B. Bobba and Rodolfo Pellizzoni and Negar Kiyavash},
  title = {{ScheduLeak: A Novel Scheduler Side-Channel Attack Against Real-Time Autonomous Control Systems}},
  booktitle = {RTAS},
  year = {2019},
  url = {https://openreview.net/forum?id=X0Kt-H4MnM},
}
Figure