Skip to main content
QUICK REVIEW

[Paper Review] Anomaly Detection in Intra-Vehicle Networks

Ajeet Kumar Dwivedi|arXiv (Cornell University)|May 7, 2022
Vehicular Ad Hoc Networks (VANETs)Engineering6 citations
TL;DR

This paper proposes a machine learning-based Intrusion Detection System (IDS) for intra-vehicle networks using CAN bus traffic, leveraging time-series features like message frequency and timestamps to detect known cyberattacks. The approach achieves over 99% accuracy, with LSTM, XGBoost, and SVM classifiers reaching 100% accuracy when time-series data is included, demonstrating the critical role of temporal patterns in anomaly detection.

ABSTRACT

The progression of innovation and technology and ease of inter-connectivity among networks has allowed us to evolve towards one of the promising areas, the Internet of Vehicles. Nowadays, modern vehicles are connected to a range of networks, including intra-vehicle networks and external networks. However, a primary challenge in the automotive industry is to make the vehicle safe and reliable; particularly with the loopholes in the existing traditional protocols, cyber-attacks on the vehicle network are rising drastically. Practically every vehicle uses the universal Controller Area Network (CAN) bus protocol for the communication between electronic control units to transmit key vehicle functionality and messages related to driver safety. The CAN bus system, although its critical significance, lacks the key feature of any protocol authentication and authorization. Resulting in compromises of CAN bus security leads to serious issues to both car and driver safety. This paper discusses the security issues of the CAN bus protocol and proposes an Intrusion Detection System (IDS) that detects known attacks on in-vehicle networks. Multiple Artificial Intelligence (AI) algorithms are employed to provide recognition of known potential cyber-attacks based on messages, timestamps, and data packets traveling through the CAN. The main objective of this paper is to accurately detect cyberattacks by considering time-series features and attack frequency. The majority of the evaluated AI algorithms, when considering attack frequency, correctly identify known attacks with remarkable accuracy of more than 99%. However, these models achieve approximately 92% to 97% accuracy when timestamps are not taken into account. Long Short Term Memory (LSTM), Xgboost, and SVC have proved to the well-performing classifiers.

Motivation & Objective

  • To address the growing threat of cyberattacks on in-vehicle networks due to the lack of authentication in the CAN bus protocol.
  • To design an effective Intrusion Detection System (IDS) capable of detecting known attacks on CAN-based intra-vehicle networks.
  • To evaluate the impact of time-series features—particularly message frequency and timestamps—on anomaly detection accuracy.
  • To compare multiple machine learning models in classifying four types of known CAN bus attacks with and without temporal features.
  • To demonstrate that incorporating time-series data significantly improves detection performance, especially for sequential models like LSTM.

Proposed method

  • The IDS is trained on a multi-class classification dataset combining real CAN traffic and synthetic attack data from different years, requiring feature alignment across disparate datasets.
  • Key features include message ID, data length, attack-frequency-seconds, and hour-of-day as timestamp-based features to capture temporal patterns.
  • Multiple machine learning models are evaluated: supervised (Logistic Regression, SVC), ensemble (Random Forest, XGBoost), and deep learning (Feed-Forward Neural Network, LSTM).
  • The model performance is assessed using cross-validation, with accuracy, F1-score, and confusion matrices used to measure detection effectiveness.
  • Time-series features are systematically excluded in ablation studies to isolate their contribution to detection performance.
  • The framework is designed to detect four known attack types: DoS, Fuzzing, Replay, and Deletion attacks, based on deviations in message frequency and timing.

Experimental results

Research questions

  • RQ1How does the inclusion of time-series features such as message frequency and timestamps affect the accuracy of anomaly detection in CAN bus networks?
  • RQ2Which machine learning models achieve the highest detection accuracy for known CAN bus attacks when trained on time-series data?
  • RQ3To what extent do different model architectures (supervised, ensemble, deep learning) benefit from temporal features in detecting intra-vehicle network intrusions?
  • RQ4Can a unified IDS framework effectively classify multiple attack types across heterogeneous datasets collected in different years?
  • RQ5What is the trade-off between detection accuracy and model robustness when excluding temporal features in IDS design?

Key findings

  • The inclusion of time-series features, particularly message frequency and hour-of-day, significantly improves detection accuracy, with most models achieving over 99% accuracy.
  • LSTM, XGBoost, and SVM classifiers achieved 100% accuracy and F1-score when time-series features were used, demonstrating their strong suitability for temporal anomaly detection.
  • Without time-series features, the best-performing models (XGBoost, SVM, Random Forest) achieved 97-98% accuracy, indicating that temporal data is crucial for optimal performance.
  • LSTM showed the most dramatic performance drop without time-series data (from 100% to 78.25%), highlighting its dependence on sequential patterns.
  • The confusion matrices showed near-perfect true positive rates (100%) across all classes when time-series features were included, indicating high reliability in attack classification.
  • The study confirms that time-series features are not just beneficial but essential for achieving state-of-the-art detection accuracy in CAN bus IDS, especially for recurrent or frequency-based attacks.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.