CAN-MM: Multiplexed Message Authentication Code for Controller Area Network message authentication in road vehicles

Franco Oberti, Ernesto Sanchez, Alessandro Savino, Filippo Parisi, Stefano Di CarloarXiv 2022 · DOI

TL;DR

CAN-MM (CAN Multiplexed MAC) introduces a novel way to secure legacy automotive networks by embedding Message Authentication Codes (MACs) directly into the physical layer of standard CAN communication. By using high-frequency digital modulation, it transmits security data simultaneously with standard messages, achieving modern cryptographic protection with zero payload overhead and full backward compatibility.

What Problem Does This Paper Address?

The Controller Area Network (CAN 2.0) remains the backbone of in-vehicle communication, connecting critical Electronic Control Units (ECUs) like the engine and transmission modules. However, designed decades ago, CAN 2.0 lacks built-in security features, leaving vehicles vulnerable to sophisticated cyberattacks such as Man-in-the-Middle (MitM), Replay, Janus, and Cloak attacks.

Fig. 1: Vehicle CAN network surface attack scheme. A small CAN vehicle network scheme composed of 4 modules: Engine Control Module (ECM), Transmission Control Module (TCM), Diesel Exhaust Fluid Controller (DEFC), and Variable Geometry Turbine (VGT). These ECUs communicate with sensors and actuators in real-time, making integration essential for their operation. (A) Corrupted vehicle CAN node runs unauthorized code. (B) Attack vector through external CAN module plugged upstream to CAN victim node. (C) The external CAN module directly accesses the OBD port inside the vehicle cabin.

While modern frameworks like AUTOSAR SecOC append a MAC to ensure data integrity and authenticity, doing so on a classic CAN 2.0 frame is highly problematic. CAN 2.0 payloads are limited to just 8 bytes; dedicating space to a MAC severely restricts data capacity. Furthermore, appending security data increases the frame length, driving up bus utilization and causing critical real-time messages to miss their strict deadlines. Upgrading entire vehicle architectures to newer protocols like CAN FD or CAN XL is a costly alternative for manufacturers.

Methods

The authors propose CAN-MM (CAN Multiplexed MAC), a hardware-driven solution that overlays security data onto the standard CAN physical signal without altering the original frame format.

  • CAN-MM Type-A (On-Off Keying): This baseline approach utilizes On-Off Keying (OOK) to superimpose a high-frequency carrier wave (with a peak-to-peak amplitude of $V_{pp} = 300\text{ mV}$) onto the standard differential CAN high (CANH) and CAN low (CANL) lines. A logical "1" in the MAC bitstream switches the carrier wave on, while a logical "0" leaves the standard CAN signal unaltered.
  • Synchronization: The system synchronizes using the Identifier Extension (IDE) bit within the CAN Control field, ensuring the MAC digest maps precisely to the data payload.
  • CAN-MM Type-B (Carrier Phase Shift Modulation): To counter scenarios where environmental noise frequencies perfectly match the carrier frequency, the authors designed an advanced "Type-B" architecture. This version uses Carrier Phase Shift Modulation (CPSM), introducing a 90° to 270° phase shift between the CANH and CANL carrier signals to ensure robust noise rejection.
Fig. 2: Physical Electrical CAN-MM Signal Scheme

On the receiving end, a custom analog-digital decoder circuit operates in parallel with the standard CAN transceiver. It filters, compares, and counts the high-frequency carrier pulses to extract the MAC bitstream simultaneously as the standard transceiver processes the data payload.

Datasets

While this paper does not use traditional machine learning datasets, the authors evaluated their system using a real-world vehicle noise profile. They captured actual physical CAN bus noise from a vehicle's OBD port during engine idle. This recorded noise profile spanned frequencies from 10 kHz to 10 MHz with amplitudes between -100 mV and 100 mV, providing a realistic baseline for evaluating the system's electromagnetic compatibility (EMC) and noise immunity.

Key Insights and Ideas

  • Exploiting the Physical Layer for Concurrency: The core "aha" moment is that data and security do not need to compete for frame bytes. By treating the physical layer as a multi-lane highway, standard data can occupy the baseband while cryptographic data rides on a high-frequency carrier.
  • Transparent Backward Compatibility: Because standard CAN transceivers naturally filter out high-frequency components as negligible background noise, un-upgraded legacy ECUs can sit on the same bus and read standard messages perfectly without throwing errors.
  • Eliminating the Security Latency Penalty: Traditional software-based MAC verification pauses host systems or adds transmission lag. By decoding the MAC in parallel at the hardware layer, CAN-MM delivers the security payload in a much shorter time window.

Key Results

The architecture was validated using LTSpice simulations and a physical hardware prototype connected to a vehicle interface tool.

  • Zero Transmission Overhead: Traditional methods of appending a 64-bit MAC to a 500 kbps CAN network add an extra transmission time (MET) of 128 µs. CAN-MM reduces this extra transmission time to 0 µs because the MAC is sent concurrently.
  • High Noise Resilience: Under standard vehicle noise conditions, the system achieved a Signal-to-Noise Ratio (SNR) of 14.31 dB.
  • Type-B Performance: When subjected to extreme, out-of-specification noise (200 mV amplitude matching the carrier frequency) where Type-A failed, the Type-B CPSM architecture successfully decoded the MAC stream, maintaining an SNR of 17.32 dB.

Limitations and Future Work

While CAN-MM Type-A maintains flawless backward compatibility, the more robust Type-B architecture introduces a trade-off. Type-B requires an upstream hardware re-phaser block at the receiver side to correct the phase shifts before standard decoding can occur, which slightly compromises the pure "plug-and-play" nature of the upgrade for legacy nodes.

Moving forward, the authors note that this modulation technology is not limited to CAN 2.0; future work includes extending and optimizing these multiplexed physical-layer security schemas for newer, higher-speed protocols like CAN FD and CAN XL.

Summary updated

BibTeX
@misc{oberti2022can,
  author = {Franco Oberti and Ernesto Sanchez and Alessandro Savino and Filippo Parisi and Stefano Di Carlo},
  title = {{CAN-MM: Multiplexed Message Authentication Code for Controller Area Network message authentication in road vehicles}},
  year = {2022},
  eprint = {2206.02603},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2206.02603},
}
Figure