Your Car Tells Me Where You Drove: A Novel Path Inference Attack via CAN Bus and OBD-II Data
Tommaso Bianchi, Alessandro Brighente, Mauro Conti, Andrea Valori
TL;DR
The paper presents OPD-II, a deterministic path inference attack that reconstructs a vehicle's traveled path using only CAN-Bus and OBD-II data, given the initial location and bearing. By combining a bicycle-kinematic model with dynamic map-matching (via Valhalla and OpenStreetMap), the approach yields GPX tracks without training data or GPS signals, achieving about 95% average accuracy across 41 tracks and four vehicles. The authors implement the attack with a low-resource setup and release open-source code, demonstrating substantial location privacy risks in modern vehicles. The work highlights the need for defensive measures to prevent unauthorized CAN/OBD data exfiltration and route inference in real-world deployments.
Abstract
Despite its well-known security issues, the Controller Area Network (CAN) is still the main technology for in-vehicle communications. Attackers posing as diagnostic services or accessing the CAN bus can threaten the drivers' location privacy to know the exact location at a certain point in time or to infer the visited areas. This represents a serious threat to users' privacy, but also an advantage for police investigations to gather location-based evidence. In this paper, we present On Path Diagnostic - Intrusion \& Inference (OPD-II), a novel path inference attack leveraging a physical car model and a map matching algorithm to infer the path driven by a car based on CAN bus data. Differently from available attacks, our approach only requires the attacker to know the initial location and heading of the victim's car and is not limited by the availability of training data, road configurations, or the need to access other victim's devices (e.g., smartphones). We implement our attack on a set of four different cars and a total number of 41 tracks in different road and traffic scenarios. We achieve an average of 95% accuracy on reconstructing the coordinates of the recorded path by leveraging a dynamic map-matching algorithm that outperforms the 75% and 89% accuracy values of other proposals while removing their set of assumptions.
