A Certifiable Security Patch for Object Tracking in Self-Driving Systems via Historical Deviation Modeling

Xudong Pan, Qifan Xiao, Mi Zhang, Min YangarXiv 2022

Abstract

Self-driving cars (SDC) commonly implement the perception pipeline to detect the surrounding obstacles and track their moving trajectories, which lays the ground for the subsequent driving decision making process. Although the security of obstacle detection in SDC is intensively studied, not until very recently the attackers start to exploit the vulnerability of the tracking module. Compared with solely attacking the object detectors, this new attack strategy influences the driving decision more effectively with less attack budgets. However, little is known on whether the revealed vulnerability remains effective in end-to-end self-driving systems and, if so, how to mitigate the threat. In this paper, we present the first systematic research on the security of object tracking in SDC. Through a comprehensive case study on the full perception pipeline of a popular open-sourced self-driving system, Baidu's Apollo, we prove the mainstream multi-object tracker (MOT) based on Kalman Filter (KF) is unsafe even with an enabled multi-sensor fusion mechanism. Our root cause analysis reveals, the vulnerability is innate to the design of KF-based MOT, which shall error-handle the prediction results from the object detectors yet the adopted KF algorithm is prone to trust the observation more when its deviation from the prediction is larger. To address this design flaw, we propose a simple yet effective security patch for KF-based MOT, the core of which is an adaptive strategy to balance the focus of KF on observations and predictions according to the anomaly index of the observation-prediction deviation, and has certified effectiveness against a generalized hijacking attack model. Extensive evaluation on 4 KF-based existing MOT implementations (including 2D and 3D, academic and Apollo ones) validate the defense effectiveness and the trivial performance overhead of our approach.

Introduction

The safety of self-driving cars (SDCs) hinges on a robust perception pipeline. This pipeline identifies obstacles (Detection) and predicts their future positions (Tracking) to inform driving decisions. While adversarial attacks on object detectors are well-documented, the security of the tracking module—specifically Multi-Object Tracking (MOT) systems—has remained largely unexamined. This paper identifies a critical vulnerability in the industry-standard Kalman Filter (KF) based trackers, which allows attackers to manipulate perceived trajectories with minimal effort.

Visualization of an attack scenario where adversarial bounding box shifts lead to trajectory deviation and eventual emergency braking.

The Kalman Filter Vulnerability

Our analysis of Baidu’s Apollo system reveals that KF-based MOT is inherently unsafe. The "KF Paradox" lies in its mathematical design: the filter is programmed to trust a sensor observation more as its deviation from the internal prediction increases. Attackers exploit this by introducing small, intentional errors (e.g., shifting a bounding box) that the KF interprets as a significant state change rather than adversarial noise. This can lead to "hijacking" a target's track, causing the ego vehicle to perform dangerous maneuvers like sudden braking or swerving.

Proposed Defense: Historical Deviation Modeling

To mitigate this threat, we introduce a certifiable security patch that monitors and modulates sensor influence based on historical data.

  1. Deviation Monitoring: The system tracks the distance between predicted and observed object states in a runtime buffer ($B_\Delta$).
  2. Gamma Distribution Modeling: Unlike standard Gaussian assumptions, we model these deviations using a Gamma distribution to better capture the "light-tailed" nature of real-world driving errors.
  3. Adaptive Modulation: We implement a modulation function ($\phi$) that "clips" the influence of any observation exceeding a safety threshold (e.g., the 95th percentile of historical deviations).
  4. Security Certification: Using stochastic control theory, we mathematically prove that this patch maintains trajectory deviations within a predefined "safe range," regardless of the attacker's strategy.
The proposed security patch mechanism, contrasting standard KF state estimation with the modulated defense approach.

Experimental Results

We evaluated the patch using the KITTI dataset and the LGSVL simulator across four mainstream trackers (Jia’s 2DMOT, AB3DMOT, and Apollo’s 2D/3D MOT).

  • Attack Mitigation: In the Apollo 3DMOT system, the patch reduced the maximum false deviation from 4.53m to just 0.3m.
  • Safety Thresholds: The defense successfully kept errors below the 0.895m limit required to prevent off-road accidents in all tested 3D scenarios.
  • Efficiency: The patch is computationally lightweight, maintaining real-time performance (30-60 FPS) with a negligible impact (typically <1%) on standard tracking metrics like MOTA and MOTP.

Conclusion

This work presents the first systematic study of object tracking security in SDCs. By addressing the fundamental design flaws of KF-based trackers with a historical deviation-based patch, we provide a certifiable layer of security that protects against trajectory hijacking while maintaining the high performance required for autonomous driving.

Summary updated

BibTeX
@misc{pan2022certifiable,
  author = {Xudong Pan and Qifan Xiao and Mi Zhang and Min Yang},
  title = {{A Certifiable Security Patch for Object Tracking in Self-Driving Systems via Historical Deviation Modeling}},
  year = {2022},
  eprint = {2207.08556},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2207.08556},
}
Figure