CANShield: Deep Learning-Based Intrusion Detection Framework for Controller Area Networks at the Signal-Level

Md Hasan Shahriar, Yang Xiao, Pablo Moriano, Wenjing Lou, Y. Thomas Hou
5/3/2022
cs.CRcs.LG

Official code: shahriar0651/CANShield (25 stars, Python, last commit 2025-06-19).

Abstract

Modern vehicles rely on a fleet of electronic control units (ECUs) connected through controller area network (CAN) buses for critical vehicular control. With the expansion of advanced connectivity features in automobiles and the elevated risks of internal system exposure, the CAN bus is increasingly prone to intrusions and injection attacks.

Show full abstract

As ordinary injection attacks disrupt the typical timing properties of the CAN data stream, rule-based intrusion detection systems (IDS) can easily detect them. However, advanced attackers can inject false data to the signal/semantic level, while looking innocuous by the pattern/frequency of the CAN messages. The rule-based IDS, as well as the anomaly-based IDS, are built merely on the sequence of CAN messages IDs or just the binary payload data and are less effective in detecting such attacks. Therefore, to detect such intelligent attacks, we propose CANShield, a deep learning-based signal-level intrusion detection framework for the CAN bus. CANShield consists of three modules: a data preprocessing module that handles the high-dimensional CAN data stream at the signal level and parses them into time series suitable for a deep learning model; a data analyzer module consisting of multiple deep autoencoder (AE) networks, each analyzing the time-series data from a different temporal scale and granularity, and finally an attack detection module that uses an ensemble method to make the final decision. Evaluation results on two high-fidelity signal-based CAN attack datasets show the high accuracy and responsiveness of CANShield in detecting advanced intrusion attacks.

View on arXivView PDF

Code Implementations(1)

CANShield: Deep Learning-Based Intrusion Detection Framework for Controller Area Networks at the Signal-Level

252Python, Jupyter NotebookNov 3, 20221 years ago
anomalautoencontroller-area-networkconvolutional-neural-networkdeep+2 more

Similar Papers

Cite this paper

@article{shahriar2022canshield,
  title  = {CANShield: Deep Learning-Based Intrusion Detection Framework for Controller Area Networks at the Signal-Level},
  author = {Md Hasan Shahriar and Yang Xiao and Pablo Moriano and Wenjing Lou and Y. Thomas Hou},
  year   = {2022},
  eprint = {2205.01306},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2205.01306}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2205.01306.svg)](https://codeofpaper.com/paper/2205.01306)

Discussion