A Reconnaissance Attack Mechanism for Fixed-Priority Real-Time Systems

Chien-Ying Chen, AmirEmad Ghassami, Sibin Mohan, Negar Kiyavash, Rakesh B. Bobba, Rodolfo Pellizzoni, Man-Ki YoonarXiv 2017

TL;DR

This paper introduces "ScheduLeak," a novel attack that precisely reconstructs the execution schedule of fixed-priority real-time systems. By inferring task start times without detection, this attack significantly enhances the success of subsequent stealthy attacks, such as cache-based side-channels, on critical embedded systems.

What Problem Does This Paper Address?

Real-time embedded systems (RTS) are increasingly prevalent in safety-critical domains like automotive and avionics. Traditionally, these systems were isolated, but growing connectivity and the use of common off-the-shelf (COTS) components expose them to security threats. While previous attacks often exploited a lack of authentication, this paper focuses on a more subtle threat: reconnaissance. Attackers need to understand the system's behavior to launch effective, stealthy attacks. For RTS, this means knowing when specific tasks execute, especially since deviations from predictable schedules are easily detected. Existing attacks often lack this precise timing information, limiting their effectiveness. This paper addresses the gap by providing a method to accurately extract the task schedule, even when the attacker has limited knowledge of the system (specifically, unknown task arrival times).

Methods

The core of the paper is the "ScheduLeak" algorithm, designed to reconstruct the task schedule of fixed-priority preemptive RTS. The attack model assumes an adversary with access to the system's task set (periods, execution times, priorities) but crucially, not the initial arrival times (offsets) of tasks. The attacker utilizes a low-priority "observer task" to monitor the system's busy intervals – periods when at least one task is executing.

ScheduLeak proceeds in several key steps:

  1. Capturing Busy Intervals: The observer task continuously monitors for preemptions. When a preemption occurs, it marks the start and duration of a busy interval. This process is repeated over a hyper-period (the least common multiple of all task periods) to capture the complete schedule pattern.
  2. Decomposing Busy Intervals: For each captured busy interval, the algorithm estimates the number of jobs of each task that could have executed within that interval. This is done using mathematical theorems (Theorem 1) that leverage the known task periods and execution times, and the observed busy interval length. This step often results in ambiguous possibilities (e.g., a task could have executed N or N+1 times).
  3. Inferring Task Arrival Windows: The algorithm then refines these possibilities by inferring "arrival windows" for each task within each busy interval. These windows represent a range of possible arrival times. This step uses further theorems (Theorem 2) to partition busy intervals and identify segments where task arrivals are likely.
  4. Eliminating Ambiguous Estimates: The inferred arrival windows are used to validate the ambiguous job counts from step 2. By checking for conflicts or consistencies, the algorithm iteratively narrows down the possible job counts and arrival windows until they stabilize.
  5. Reconstructing Schedules: Finally, once precise arrival times (or the earliest possible arrival time from the window) are determined for each job, a scheduling translator reconstructs the exact start times of all jobs within each busy interval.

The key novelty lies in the systematic approach to inferring task offsets and job counts from observed busy intervals without perturbing the system.

Datasets

The paper does not use pre-existing datasets. Instead, it generates synthetic task sets for evaluation. These task sets are categorized by:

  • Utilization: Groups range from 0-10% to 90-100% CPU utilization.
  • Number of Tasks: Subgroups within utilization groups have a fixed number of tasks (10-15).
  • Task Periods: Periods are derived from prime factors (2, 3, 5, 7, 11, 13) to create diverse task interactions.
  • Execution Time Variation: Normal distributions are used to simulate execution time variations, with mean values set at 60% or 80% of the worst-case execution time (WCET).

The paper also demonstrates the attack on a real hardware platform (Zedboard) running a UAV model and synthetic task sets.

Key Insights and Ideas

  • Predictability is a Double-Edged Sword: The inherent predictability of real-time systems, designed for safety and reliability, paradoxically makes them vulnerable to precise timing attacks.
  • Task Offsets are the Key: The attacker's primary goal is to discover task offsets (initial arrival times), which are often unknown and difficult to obtain through traditional means. ScheduLeak effectively bridges this knowledge gap.
  • Observer Task as a Stealthy Spy: Using a low-priority observer task allows the attacker to gather schedule information without significantly impacting the system's performance or raising alarms.
  • Busy Intervals as a Rich Information Source: Even seemingly simple observations of when the system is busy can be deconstructed to reveal detailed scheduling information.
  • Iterative Refinement is Crucial: The algorithm's strength lies in its iterative process of inferring, validating, and refining estimates of job counts and arrival windows, leading to high precision.

Key Results

  • High Success Rate: The ScheduLeak algorithm achieved a high inference precision ratio, averaging 0.95 even with execution time variations.
  • Robustness to Variation: The algorithm remains effective even with execution time variations, yielding a precision ratio of 0.95 for a mean execution time of 80% WCET and 0.929 for 60% WCET.
  • Hardware Demonstration: The attack was successfully demonstrated on a real hardware platform (Zedboard), confirming its practical feasibility.
  • Impact of Factors:
    • Execution Time Variation: Larger variations decrease precision.
  • Number of Tasks: More tasks increase complexity and slightly decrease precision.
  • Task Set Utilization: Lower utilization can lead to smaller, scattered busy intervals, making inference harder and reducing precision.
  • Observation Duration: Longer observation periods (more collected busy intervals) consistently improve precision.
  • Attack Enhancement: The paper demonstrates how the reconstructed schedule enables a significantly more effective cache-based side-channel attack, filtering out noise and precisely targeting victim task behavior.

Limitations and Future Work

  • Harmonic Tasks: The paper notes that in cases with harmonic tasks, distinguishing them can be difficult, potentially limiting the precision ratio from reaching a perfect 1.0.
  • Observer Task Overhead: While minimal, the observer task does introduce some overhead. The paper argues this overhead is negligible compared to typical RTS task execution times.
  • Future Work: The authors suggest further refining the algorithms and developing methods to deter such attacks, indicating a need for defensive mechanisms against schedule inference. They also aim to explore a broader range of RTS security challenges.

Summary updated

BibTeX
@misc{chen2017reconnaissance,
  author = {Chien-Ying Chen and AmirEmad Ghassami and Sibin Mohan and Negar Kiyavash and Rakesh B. Bobba and Rodolfo Pellizzoni and Man-Ki Yoon},
  title = {{A Reconnaissance Attack Mechanism for Fixed-Priority Real-Time Systems}},
  year = {2017},
  eprint = {1705.02561},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1705.02561},
}
Figure