Shape of the Cloak: Formal Analysis of Clock Skew-Based Intrusion Detection System in Controller Area Networks

Xuhang Ying, Sang Uk Sagong, Andrew Clark, Linda Bushnell, Radha Poovendran

This paper, published in IEEE Transactions on Information Forensics and Security, explores a critical vulnerability in the "fingerprinting" techniques used to secure modern vehicles.

TL;DR

Researchers have developed the "cloaking attack," a method to bypass automotive Intrusion Detection Systems (IDS) that rely on hardware clock skew to identify legitimate components. By precisely timing the injection of spoofed messages, an attacker can mimic a target's unique hardware signature, rendering state-of-the-art physical-layer defenses ineffective.

What Problem Does This Paper Address?

Modern vehicles rely on the Controller Area Network (CAN) bus for communication between Electronic Control Units (ECUs). Because the CAN protocol lacks built-in authentication, it is vulnerable to "masquerade attacks," where a compromised low-priority ECU (like the infotainment system) sends malicious messages disguised as a high-priority unit (like the braking controller).

To counter this, researchers previously proposed using clock skew as a physical fingerprint. Every ECU has a hardware crystal oscillator with microscopic manufacturing variations, causing its clock to run slightly faster or slower than others. State-of-the-art (SOTA) IDSs track these timing offsets to ensure a message actually came from the claimed source. This paper addresses a fundamental flaw: since the IDS estimates skew based on message arrival times, an adversary who controls the transmission timing can "cloak" their own hardware signature and emulate the target's.

Methods

The authors introduce the cloaking attack and provide a rigorous formal analysis of its success probability against two types of IDSs:

  1. SOTA IDS: The current benchmark, which uses Recursive Least Squares (RLS) to estimate skew and a Cumulative Sum (CUSUM) algorithm to detect anomalies.
  2. NTP-based IDS: A new, more robust adaptation developed by the authors based on the Network Time Protocol (NTP) standards.

The core of the attack involves calculating a specific delay, $\Delta T_0$, to add to the inter-transmission times of spoofed messages. This delay is derived from the relative clock skew between the attacker and the target. To validate their theory, the authors developed formal mathematical models to predict the Attack Success Probability ($P_s$) based on network noise, batch sizes, and detection thresholds.

Datasets

The study utilizes three primary data sources:

  • Hardware Prototype: A controlled environment consisting of three Arduino UNO boards with Sparkfun CAN shields.
  • UW EcoCAR: Over 16 hours of real-world CAN data collected from a 2016 Chevrolet Camaro (modified for the University of Washington EcoCAR project).
  • Toyota Dataset: A publicly available dataset from a 2010 Toyota Camry, originally used to evaluate the SOTA IDS in previous literature.

Key Insights and Ideas

  • The Semantic Gap: The most profound insight is that clock skew, while a "physical invariant," is only observable to the IDS through the "lens" of arrival times. By manipulating the software-controlled transmission time, the attacker exploits the gap between the physical hardware and the network-layer observation.
  • NTP Superiority: The authors found that standard NTP definitions for clock offset are significantly more stable than the ad-hoc metrics used in prior SOTA automotive IDSs. The NTP-based IDS is less sensitive to "batch size" (how many messages the IDS looks at before making a decision), making it a more reliable (though still bypassable) defense.
  • The "Shape" of Success: The attack success probability follows a distinct bell-shaped curve. If the attacker’s timing is slightly off, the CUSUM detector eventually triggers. The "width" of this bell curve represents the Maximum Slackness Index (MSI)—the margin of error an attacker has before being caught.

Key Results

  • Attack Effectiveness: The cloaking attack achieved a 100% success rate in bypassing both SOTA and NTP-based IDSs on real vehicle hardware when the optimal delay was applied.
  • Model Accuracy: The authors' formal models were remarkably accurate at predicting success rates. The Area Deviation Error (ADE)—a metric they introduced to measure the difference between predicted and experimental curves—was only 3.0% for the SOTA IDS and 5.7% for the NTP-based IDS.
  • Detection Sensitivity: The NTP-based IDS proved more difficult to bypass than the SOTA version, offering a much narrower window (smaller MSI) for the attacker to hide within.

Limitations and Future Work

While the cloaking attack is highly effective, it requires the attacker to first estimate the target's clock skew, which necessitates eavesdropping on the bus. The current analysis also assumes "perfect timing" for the start of the attack; the authors briefly explore "mistiming" in the appendices, noting that while it reduces success, it doesn't eliminate it.

Future research directions suggested include:

  • Developing IDSs that account for environmental factors like temperature, which can cause clock skew to drift over long periods.
  • Exploring hybrid IDSs that combine clock skew with other physical properties (like signal voltage) to create a multi-factor hardware fingerprint.

Summary updated

BibTeX
@article{ying2019shape,
  author = {Xuhang Ying and Sang Uk Sagong and Andrew Clark and Linda Bushnell and Radha Poovendran},
  title = {{Shape of the Cloak: Formal Analysis of Clock Skew-Based Intrusion Detection System in Controller Area Networks}},
  journal = {IEEE Trans. Inf. Forensics Secur.},
  year = {2019},
  url = {https://openreview.net/forum?id=RD-56qQzap},
}
Figure