arXiv:2610.07489cs.CROct 2026

Manuscript Offprint

arXiv:2610.07489

Deep Defence on Wheels: A Dual Intrusion Detection System Architecture for Comprehensive In-Vehicle Network Security

Shashwat Khandelwal, Shanker Shreejith

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

SHASHWAT KHANDELWAL ∗^{*} and SHANKER SHREEJITH ∗^{*}, Trinity College Dublin, Ireland

The combination of increasing connectivity to the outside world and the lack of inbuilt security mechanisms has made legacy intra-vehicular networks extremely vulnerable to cyberattacks. Consequently, significant research has been devoted to analysing the impact of potential attacks, yielding datasets crucial for developing effective mitigation schemes like intrusion detection and prevention systems (IDSs/IPSs). Initial research addressing this problem focused heavily on maximising attack detection accuracy (for both known and unknown attack vectors), often relying on large, full-precision machine learning models. However, embedding IDS into complex vehicular electronic systems adds challenges beyond accuracy, including the need for low detection latency (e.g., 2,000 CAN frames/sec), energy efficiency, and minimal overhead in electronic control unit (ECU) resources like silicon area, memory, and processor use. To address these deployment constraints, recent research has focused on lightweight machine learning models that balance high classification accuracy with these practical limitations. In this work, we propose a dual IDS framework comprising both supervised and unsupervised learning-based solutions, each optimised for real-time, resource-constrained deployment on embedded automotive platforms. We present a quantised LSTM-based IDS (QLSTM-IDS) that achieves over 99.9% detection accuracy across various attack types: DoS/Flooding, Fuzzing, and Spoofing/Malfunction, using a single model and two widely-used datasets. The model is trained using the brevitas quantisation aware training library, transformed into a dataflow accelerator with custom blocks compatible with AMD's FINN toolchain, and synthesised using Vitis HLS. Complementing this, we introduce an 8-bit quantised convolutional autoencoder-based IDS (QCAE-IDS) for detecting previously unseen anomalies that alter CAN-ID sequence patterns, with >99% accuracy. QCAE-IDS is quantised using AMD's Vitis-AI toolchain. We detail an integration architecture enabling both IDS models to operate on a single FPGA device, bridging the network interface IP and processor system to minimise software overhead. QLSTM-IDS achieves 0.25ms inference latency and 0.8mJ energy consumption, while QCAE-IDS achieves 0.42ms latency and 1.1mJ energy, supporting real-time, efficient detection of both known and unknown attacks on high-speed CAN buses. Both solutions are deployed and evaluated on the ZCU104 SoC (XCZU7EV FPGA), demonstrating a robust, flexible hardware/software co-design for securing modern vehicular networks.

CCS Concepts: • Embedded and cyber-physical systems; • Real-time systems; • Intrusion/anomaly detection and malware mitigation; • Network security; • Quantised Machine Learning;

Additional Key Words and Phrases: Intrusion Detection Systems, Intra-Vehicular Networks, Quantised LSTMs, Autoencoders, Unseen-attack detection, CAN-ID sequence modelling, Controller Area Network

ACM Reference Format:

Shashwat Khandelwal and Shanker Shreejith. 2026. Deep Defence on Wheels: A Dual Intrusion Detection System Architecture for Comprehensive In-Vehicle Network Security. J. ACM 1, 1 (November 2026), 30 pages. https://doi.org/10.1145/nnnnnnn.nnnnnnn

∗^{*}Both authors contributed equally to this research.

Authors' Contact Information: Shashwat Khandelwal, khandels@tcd.ie; Shanker Shreejith, shankers@tcd.ie, Trinity College Dublin, Dublin, Dublin, Ireland.

Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from permissions@acm.org.

© 2026 Copyright held by the owner/author(s). Publication rights licensed to ACM.

ACM 1557-735X/2026/11-ART

https://doi.org/10.1145/nnnnnnn.nnnnnnn

Khandelwal et al.

1 Introduction

In-vehicle networks in modern vehicles enable distributed electronic control units (ECUs) to exchange control and data messages to achieve the global functions of the vehicle. Multiple protocols are used in vehicular systems to cater to different functions based on their criticality and to optimise the cost of electric/electronic (E/E) systems. The Controller Area Network (CAN), due to its low cost and robustness, continues to be the standard network protocol for carrying out both critical and non-critical communication in vehicles. Despite its popularity, CAN protocol is inherently insecure and lacks any built-in mechanisms to authenticate the transmitter, receiver, or message content [6]. CAN nodes are unable to verify the origin of messages intended for them; for instance, a data frame conveying engine stoppage information could originate from the infotainment ECU and still be accepted as valid. This absence of authentication renders CAN highly susceptible to attacks such as message sniffing, fuzzing, spoofing, replay attacks, and Denial-of-Service (DoS) attacks [15, 27, 32, 35]. Additionally, CAN utilises a broadcast-based transmission mechanism, allowing any attacker who gains control of any node on the network to send harmful frames to any other node. The broadcast nature also exposes CAN to passive sniffing attacks, where an attacker can surreptitiously capture all transmitted frames, including sensitive data, and subsequently use this information to execute replay attacks or more targeted spoofing attacks, which are particularly difficult to detect. These sniffing attacks are relatively straightforward to perform, as CAN communication is unencrypted, making it easy for attackers to access and interpret critical network information. Notably, these attacks do not require physical access to the vehicle, which can be largely attributed to the increased connectivity of vehicles to the outside world and diagnostic requirements that bridge different in-vehicle networks, which, in turn, expose internal CAN bus data to the outside world. The relative ease of launching such attacks and the widespread acceptance of CAN as the protocol of choice for vehicular systems have made the detection of such attacks/intrusions an area of crucial interest in the research community for the past few years.

Various types of intrusion detection systems (IDSs) have been extensively explored in the research literature, including rule-based and entropy-based approaches. More recently, machine learning (ML) techniques based on both supervised (for detecting known attacks) and unsupervised learning (for detecting unknown attacks) have demonstrated significant success in identifying attack vectors on CAN [8, 31, 46, 59]. In particular, ML-based IDSs are favoured due to their generalisable nature, which has been shown to yield higher accuracy compared to traditional rule-based systems. However, most ML-based IDSs predominantly focus on detection accuracy across various attacks as their primary evaluation metric and strive to push this metric further. While this is an important factor, the deployment of ML-based IDSs in vehicular networks must also address other critical constraints, such as detection latency and energy consumption. High-speed CAN networks in critical E/E systems can exchange over 2000 messages per second on average [46]. Consequently, the IDS must be capable of processing these messages with minimal detection latency to ensure timely responses to such threats, while consuming limited energy. Excessive energy consumption is another critical factor that can hinder the scalability and feasibility of IDS deployment across multiple ECUs simultaneously, thus limiting its practical application. Recent research has increasingly focused on these deployment challenges, leveraging techniques such as network pruning and quantisation to optimise the performance of ML models in these contexts [12, 22, 24, 25, 38, 59]. Given the continuously evolving vehicular applications and the deployment constraints inherent in E/E systems (such as traditional ECUs), IDS solutions should ideally be capable of performing for both known (multi-class) and unknown attack classification with high detection accuracy, preferably on a single device (such as a gateway ECU). This feature enables the consolidation of attack detection into a limited number of ECUs, as opposed to deploying multiple IDSs for each specific attack vector.

and previously unseen attacks. However, many IDSs in the literature either lack the computational efficiency for per-message classification, cannot simultaneously detect multiple attack vectors due to limited model capacity, or are incapable of identifying unknown attacks.

In this paper, we propose a concurrent dual-IDS system for CAN comprising both a supervised and an unsupervised learning (SL & UL) model, which has been optimised for deployment on resource-constrained vehicular ECUs. The SL model is a quantised Long Short-Term Memory (QLSTM) based IDS, designed for accurate, real-time per-message classification of multiple attack vectors. Complementing this is an 8-bit quantised convolutional autoencoder (QCAE)-based IDS, an UL solution capable of identifying unknown attacks in vehicular networks. The QLSTM model learns ordered dependencies among the fields within individual CAN frames for supervised attack classification, while the QCAE model learns normal patterns in sequences of CAN identifiers without attack labels to identify anomalous message blocks. The models were compressed through custom-precision quantisation and pruning for deployment on AMD's Zynq UltraScale+ ZU7EV heterogeneous SoC, which combines FPGA programmable logic for hardware acceleration with an ARM-based processing system for system control and data movement, mimicking an extensible ECU system (for example, a gateway device). The precision optimisation for the models ensures a low-latency, low-energy intrusion detection architecture that can be accelerated on the FPGA fabric and coupled closely with the CAN network interface. The following are the major contributions of the paper:

• We propose a quantised LSTM-based intrusion detection system (QLSTM-IDS) for CAN networks that performs per-message multiclass classification and detects multiple attack vectors using a single model.

• We complement the supervised classification of known attacks with an unsupervised, quantised convolutional autoencoder (QCAE-IDS), trained exclusively on benign traffic to detect anomalous CAN-ID sequences that are absent from model training.

• We present a tightly coupled hardware/software dual-IDS architecture that integrates both models with the CAN interface on a single FPGA-based SoC, thereby reducing data-movement and software overheads while satisfying the line-rate processing and energy constraints of in-vehicle deployment. To the best of our knowledge, this is among the first hardware-deployed CAN IDS frameworks to concurrently combine known-attack classification with anomalous sequence detection under real-world deployment constraints.

• We evaluate QLSTM-IDS using two widely adopted real-world automotive attack datasets, the Car Hacking and Survival Analysis datasets on which it achieves an average classification accuracy exceeding 99.9% across the evaluated attack vectors.

• We evaluate the per-message detection latency and energy consumption of QLSTM-IDS against existing IDS implementations reported in the literature. Relative to the most directly comparable per-message classification approach, QLSTM-IDS achieves a 2.29×2.29\times reduction in detection latency while consuming 0.8 mJ per message-level inference.

• We evaluate QCAE-IDS on two vehicle subsets of the Survival Analysis dataset, achieving an accuracy exceeding 99%. Compared with our previous QCAE implementation, the proposed model maintains comparable per-block processing latency while improving energy efficiency by 1.9×, with an energy consumption of 1.1 mJ per block-level inference.

Additionally, we have open-sourced the training scripts, hardware build files, and deployment scripts of the QLSTM-IDS in a publicly accessible GitHub repository https://github.com/RCSL-TCD/QLSTM-IDS.

The rest of the paper is organised as follows: Section 2 describes the background on CAN and the various types of IDSs (SL & UL based) proposed for it in the research literature; Section 3 discusses

Khandelwal et al.

the proposed models along with datasets information and their integration architecture within the ECU; Section 4 discusses the results obtained and comparison with the state-of-the-art IDS/IPS proposed in the literature and Section 5 concludes the paper.

References (15)