Detecting Deception Attacks on Autonomous Vehicles via Linear Time-Varying Dynamic Watermarking

Matthew Porter, Sidhartha Dey, Arnav Joshi, Pedro Hespanhol, Anil Aswani, Matthew Johnson-Roberson, Ram Vasudevan

Abstract

Autonomous vehicles (AVs) are increasingly vulnerable to deception attacks, such as replay attacks, where legitimate sensor data is manipulated to mask malicious control. Traditional defense mechanisms like Dynamic Watermarking often assume Linear Time-Invariant (LTI) systems, failing to account for real-world maneuvers like turns and lane changes. This paper presents an improved Dynamic Watermarking technique specifically for Linear Time-Varying (LTV) systems. By introducing a mathematical normalizing factor ($G_n$) and accounting for sensor lag, the researchers demonstrate robust real-time attack detection in both high-fidelity simulations and physical hardware experiments.

Introduction

As autonomous vehicles move from controlled environments to public roads, securing their sensor-to-controller feedback loop is critical. A particularly dangerous threat is the replay attack, where an adversary records legitimate sensor data during safe operation and replays it to the vehicle's computer while simultaneously injecting malicious steering or acceleration commands. To the vehicle's control system, the incoming data appears normal, even as the car is steered off-course.

Comparison of desired vs. attacked paths in CarSim simulation (top) and physical rover experiments (bottom).

To counter this, researchers utilize Dynamic Watermarking—adding a secret, low-power "noise" signal to control inputs. If the sensors do not report back this specific signature, the system identifies a breach. However, existing models often fail during complex maneuvers because they assume the vehicle's dynamics are constant (LTI). Real-world driving is inherently Linear Time-Varying (LTV), requiring a more sophisticated mathematical approach.

Methodology

The proposed framework extends LTV Dynamic Watermarking by addressing three practical realities of autonomous driving:

  1. Relaxed Visibility ($\kappa$): Real-world sensors often exhibit lag. The authors introduced a delay parameter, allowing the system to detect attacks even if the watermark signature takes several time steps to appear in the sensor feedback.
  2. Auto-correlation Normalizing Factor ($G_n$): In LTV systems, the system's internal noise can correlate with itself over time, leading to false alarms. The authors derived a new matrix factor, $G_n$, to normalize these statistical effects, ensuring the detection test remains consistent regardless of the vehicle's current maneuver.
  3. Statistical Likelihood Testing: The system calculates the "Negative Log Likelihood" (NLL) of sensor measurements within a sliding window. An attack is flagged when the NLL exceeds a predefined threshold.

Experimental Validation

The approach was validated in two distinct environments:

  • CarSim™ Simulation: An industry-standard simulator used to model a vehicle on a 1,137m path with varying speeds and turning radii.
  • Physical 1/10 Scale Rover: A real-world test using a small autonomous rover on a 38.8m track equipped with motion capture and IMU sensors.

In both scenarios, a generalized replay attack was simulated by feeding recorded "safe" measurements back to the controller while the vehicle was in motion.

Key Results

The inclusion of the $G_n$ factor proved essential for reliable detection. Without it, the NLL metric exhibited high variance, making it difficult to distinguish between normal maneuver-induced noise and an actual attack. With $G_n$, the background noise was flattened, allowing for a clear, immediate spike in the NLL when an attack was initiated.

Impact of the normalizing factor $G_n$ on the Negative Log Likelihood (NLL) detection metric. The inclusion of $G_n$ (left) significantly reduces variance compared to the baseline (right).

In CarSim trials, the system provided a repeatable detection signal the moment the attack began. Similarly, on the physical rover, the system successfully detected attacks despite the presence of real-world sensor noise, maintaining the NLL consistently above the alarm threshold throughout the duration of the interference.

Conclusion and Future Work

This research bridges the gap between theoretical watermarking and practical AV security. By accounting for time-varying dynamics and sensor delays, the system provides a robust defense against stealthy replay attacks without compromising driving performance. Future work will focus on optimizing threshold selection to balance sensitivity and false alarm rates, as well as developing resilient control strategies to safely manage the vehicle once an attack is detected.

Summary updated

Abstract

Cyber-physical systems (CPS) such as autonomous vehicles rely on both on-board sensors and external communications to estimate their state. Unfortunately these communications render the system vulnerable to cyber-attacks. While many attack detection methods have begun to address these concerns they are limited to linear time-invariant (LTI) systems. Though LTI system models provide accurate approximations for CPS such as autonomous vehicles at constant speed and turning radii they are inaccurate for more complex motions such as lane changes turns and changes in velocity. Since these more complex motions are more suitably described by linear time-varying (LTV) system models rather than LTI models Dynamic Watermarking which adds a private excitation to the input signal to validate measurements has recently been extended to LTV systems. However this extension does not allow for LTV systems that require several steps before the ef ect of a given control input can be seen in the measurement signal. Additionally there is no consideration for the time-varying effects of auto-correlation. Furthermore a proof of concept was only provided using simulations of a simplified model. This paper relaxes the requirement for inputs to be visible in a single step and constructs an auto-correlation normalizing factor to remove the effects of auto-correlation. In addition, Dynamic Watermarking is applied to a high-fidelity vehicle model in CarSim <sup xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">TM</sup> and a 1/10 scale autonomous rover to further reinforce the proof of concept for realistic systems. In each case, the vehicle follows a predefined path with time-varying velocity and turning radii. A replay attack, which replays previously recorded measurements, is shown to be detectable using LTV Dynamic Watermarking in a quick and repeatable manner.
BibTeX
@inproceedings{porter2020detecting,
  author = {Matthew Porter and Sidhartha Dey and Arnav Joshi and Pedro Hespanhol and Anil Aswani and Matthew Johnson-Roberson and Ram Vasudevan},
  title = {{Detecting Deception Attacks on Autonomous Vehicles via Linear Time-Varying Dynamic Watermarking}},
  booktitle = {CCTA},
  year = {2020},
  url = {https://openreview.net/forum?id=J2bCO-8Oqd},
}
Figure