STC-IDS: Spatial-temporal correlation feature analyzing based intrusion detection system for intelligent connected vehicles

Pengzhou Cheng, Mu Han, Aoxue Li, Fengwei ZhangInt. J. Intell. Syst 2022

Introduction

As modern vehicles evolve into intelligent connected systems, they increasingly rely on complex electronic architectures. At the heart of this architecture is the Controller Area Network (CAN) bus, which facilitates communication between various Electronic Control Units (ECUs). However, the CAN protocol's lack of inherent security mechanisms—such as encryption or authentication—leaves vehicles vulnerable to sophisticated cyberattacks. This paper introduces STC-IDS, a novel intrusion detection system that leverages spatial-temporal correlation features to secure in-vehicle networks with high precision and real-time efficiency.

The Vulnerability of Modern Vehicles

Modern vehicles are essentially mobile data centers. While connectivity features like LTE and OBD-II ports offer convenience and diagnostic capabilities, they also serve as entry points for malicious actors. Attackers can exploit these interfaces to gain remote or physical access, injecting forged packets into the CAN bus to hijack critical vehicle functions like steering, braking, or acceleration.

Attack vectors targeting the in-vehicle CAN bus network.

Existing Intrusion Detection Systems (IDS) often fall short because they typically focus on either the timing of messages (temporal features) or the data values within the messages (spatial features). By ignoring the complex interplay between these two dimensions, traditional systems struggle to distinguish between normal operational fluctuations and subtle, targeted attacks.

Methodology: Capturing Spatial and Temporal Patterns

The STC-IDS architecture addresses these shortcomings by treating CAN traffic as a multi-dimensional signal. The system employs a dual-stream feature extraction process that operates in parallel:

  1. Spatial Attention (A-Conv2D): This component utilizes a Convolutional Neural Network (CNN) enhanced with an attention mechanism. By treating sequences of CAN frames as image-like structures, the model can identify which specific bytes are most relevant to an attack. This allows the system to "zoom in" on suspicious data changes while filtering out routine background noise.
  2. Temporal Attention (A-LSTM): Simultaneously, a Long Short-Term Memory (LSTM) network captures the sequential dependencies of the network traffic. The integrated attention layer helps the model prioritize crucial historical sequences or specific timing anomalies that characterize injection attacks.
Heatmaps illustrating the data distribution of different CAN IDs, highlighting the spatial patterns analyzed by the CNN component.

To optimize performance, the researchers introduced a multi-frame model that aggregates 64 consecutive messages into a 2D matrix. This approach significantly reduces the per-message computational overhead, making deep learning viable for the resource-constrained environment of an automotive ECU. Furthermore, Bayesian Optimization was employed to automatically tune hyperparameters, ensuring the model reaches peak performance without manual intervention.

Experimental Results and Performance

The STC-IDS was evaluated using a real-world car-hacking dataset containing Denial of Service (DoS), Fuzzy, and Spoofing attacks (RPM/Gear). The results demonstrate that STC-IDS significantly outperforms baseline models such as DCNN and DAE across all critical metrics:

  • Detection Accuracy: The system achieved a near-perfect average precision of 99.97% and a recall of 99.96% for DoS attacks.
  • False Alarm Reduction: The False Negative Rate (FNR) was reduced by up to 90% compared to standard deep learning architectures.
  • Real-time Viability: The multi-frame model achieved a detection latency of approximately 0.09 ms per message. Given that a standard CAN bus transmits roughly 2,000 messages per second, STC-IDS is approximately five times faster than the requirement for real-time processing.

Conclusion

STC-IDS represents a significant advancement in automotive cybersecurity. By effectively capturing the spatial-temporal correlations of CAN bus traffic through parallel attention-based networks, the system provides a robust defense against common injection attacks. While future work is needed to address "zero-day" vulnerabilities and further optimize the system for lower-power automotive hardware, STC-IDS proves that high-accuracy deep learning models can be both efficient and effective in securing the next generation of intelligent connected vehicles.

Summary updated

BibTeX
@article{cheng2022stc,
  author = {Pengzhou Cheng and Mu Han and Aoxue Li and Fengwei Zhang},
  title = {{STC-IDS: Spatial-temporal correlation feature analyzing based intrusion detection system for intelligent connected vehicles}},
  journal = {Int. J. Intell. Syst.},
  year = {2022},
  doi = {10.1002/int.23012},
}
Figure