MKF-ADS: Multi-Knowledge Fusion Based Self-supervised Anomaly Detection System for Control Area Network

Pengzhou Cheng, Zongru Wu, Gongshen LiuarXiv 2024 · DOI

Introduction: The Security Gap in Automotive Networks

The Controller Area Network (CAN) serves as the primary communication protocol for Electronic Control Units (ECUs) in modern vehicles. Despite its ubiquity, CAN was developed without inherent security features like encryption or authentication. As vehicles become increasingly connected via 5G, Bluetooth, and external diagnostic ports, they become vulnerable to cyber-attacks such as Denial of Service (DoS), fuzzying, and sophisticated "masquerade" attacks where a compromised ECU mimics a legitimate one.

Current Intrusion Detection Systems (IDS) for CAN buses face a significant trade-off: lightweight statistical models are fast but struggle with complex, stealthy attacks, while advanced Deep Learning models like Transformers offer high accuracy but are too computationally intensive for resource-constrained automotive hardware.

Methodology: The MKF-ADS Framework

To bridge this gap, the authors propose MKF-ADS (Multi-Knowledge Fusion Anomaly Detection System). This system leverages a self-supervised "teacher-student" framework to achieve high-performance detection on embedded hardware.

1. Data Preprocessing and Signal Extraction

Raw CAN traffic consists of high-dimensional, noisy bitstreams. MKF-ADS utilizes the "READ" algorithm to reverse-engineer these frames and extract continuous physical signals (e.g., vehicle speed, engine RPM). This shifts the analysis from abstract bits to meaningful physical trends.

Structure of a standard CAN frame highlighting the data field where physical signals are embedded.

2. Teacher-Student Knowledge Distillation

The core of MKF-ADS is a dual-model architecture designed to overcome the "capability bottleneck" of traditional IDS:

  • The Teacher (PatchST): A complex "Patch Sparse-Transformer" designed to capture deep contextual relationships across independent univariate time series.
  • The Student (STcAM): A lightweight module combining 1D Convolutional Neural Networks (for spatial features) and Bidirectional LSTMs with an attention mechanism (for temporal features).

Through Cross-Knowledge Distillation, the Teacher model transfers its sophisticated contextual understanding to the Student model during training. At deployment, only the lightweight Student model runs on the vehicle's hardware, providing "Transformer-level" intelligence with minimal latency.

Key Insights: Multi-Knowledge Fusion

The "Multi-Knowledge" aspect refers to the system's ability to analyze CAN traffic through three distinct lenses: temporal periodicity, spatial bit patterns, and contextual physical signals.

Characterization of CAN data: (a) message periodicity, (b) bit flip rates, and (c) extracted physical signals.

By fusing these types of knowledge, MKF-ADS can detect "fine-grained" attacks. For instance, in a masquerade attack, the message frequency might remain normal, but the trend of the physical signal or the bit flip rate within the data field may deviate from the learned "normal" behavior. The system operates in a self-supervised manner, learning normal patterns from unlabeled data and triggering alarms when actual signals deviate significantly from predicted values.

Evaluation and Results

The system was rigorously tested on two benchmarks: the HCRL (Car Hacking) dataset and the ROAD (Real ORNL Automotive Dynamometer) dataset. The latter is particularly challenging as it includes stealthy masquerade attacks that often bypass simpler frequency-based detectors.

  • Detection Accuracy: MKF-ADS achieved a 97.3% F1-score with a low False Alarm Rate (FAR) of 2.41%, significantly outperforming baseline models like LSTM-P and DeepConvGRU.
  • Real-Time Efficiency: When deployed on an NVIDIA Jetson AGX Xavier (an automotive-grade embedded GPU), the system maintained an average detection latency of just 2.28 ms, well within the requirements for real-time safety.

Conclusion and Future Directions

MKF-ADS demonstrates that sophisticated contextual analysis can be brought to resource-constrained automotive environments through knowledge distillation. While highly effective, future work will focus on improving robustness against environmental noise and developing a unified model capable of monitoring all CAN IDs simultaneously without per-ID tuning, further simplifying deployment in production vehicles.

Summary updated

BibTeX
@misc{cheng2024mkf,
  author = {Pengzhou Cheng and Zongru Wu and Gongshen Liu},
  title = {{MKF-ADS: Multi-Knowledge Fusion Based Self-supervised Anomaly Detection System for Control Area Network}},
  year = {2024},
  eprint = {2403.04293},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.04293},
}
Figure