Phantom of the Masquerade: Graph Neural Network-Based Detection of Masquerade Attacks in Controller Area Networks
Nehal Ameen, Pablo Moriano, Irfan Ahmed
Abstract
The lack of built-in security in controller area networks (CANs) exposes modern vehicles and industrial systems to masquerade attacks that can compromise safety and reliability. These attacks inject malicious messages that mimic legitimate communication patterns, making them difficult to detect using existing intrusion detection systems (IDS). Prior graph-based IDS approaches often rely on shallow embeddings that decouple representation learning from classification, which may limit their ability to fully exploit structural and signal-level information. In this paper, we propose PhantoMasq, a graph neural network (GNN)-based framework for detecting masquerade attacks in CAN systems. PhantoMasq models CAN traffic as message sequence graphs enriched with lightweight statistical features derived from signal behavior, enabling joint learning of structural dependencies and temporal characteristics. The detection task is formulated as a graph-level classification problem and solved using graph convolutional networks (GCNs). We evaluate PhantoMasq on the ROAD dataset under a protocol that prevents overlapping windows from spanning training and test data. Across five masquerade attack types, PhantoMasq achieves mean AUC-ROC between 0.831 and 0.999, with performance depending on the transmission rate of the targeted identifier and the magnitude of the induced signal deviation. Against a state-of-the-art graph-embedding baseline evaluated on the same sliding-window configurations, PhantoMasq achieves higher AUC-ROC on all five attack types, by 0.13 to 0.36, and is less sensitive to window configuration. Window-processing latency ranges from 2.33 to 5.94 ms per window on CPU, corresponding to a throughput of 168 to 429 windows per second. We make our implementation and experimental artifacts available to support reproducibility.
Create a lesson
Related papers
Suspected Until Inspected: Neuro-Symbolic Detection of Broken Access Control in Server-Side Web Applications
Shared title terminology · Chengyao Yang, Zifeng Kang, Dongqi Han et al.
A Unified Framework for Intelligent Cyber Attack Detection and Alert Correlation
Shared title terminology · Miguel Silva, João Vitorino, Daniela Pinto et al.
FlowSH: Detecting Web Attacks by Correlating Anomalous Network Flows and Endpoint Logs
Shared title terminology · Nuno Durão, Rodrigo Branco, Vinicius V. Cogo et al.
Network-Exposed Configuration Attacks on LLM-Controlled Social Robots
Shared title terminology · Stanley Akingbola, Ugbede Ibrahim, Yan Lin Aung et al.
Hierarchical Personalized Federated Learning for Fine-Grained Intrusion Detection: A Multi-Class Analysis in Heterogeneous Attack Environments
Shared title terminology · Abul Kalam Azad, Travis Atkison
LLMs as Validators for Cross-Chain Bridges: Evaluating Source-Level and Transaction-Level Attack Detection on Solana
Shared title terminology · Yasir Rahman, Ishraq Samiha, Shahnewaz Karim Sakib et al.