Intrusion Detection in CAN Networks Using Graph and Transformer Models

Authors

  • J. Jospin Jeya Author
  • M. K. Harish Author
  • J. Arunkumar Author
  • R. K. Keerthivel Department of CSE w/s in Cyber Security, SRM Institute of Science and Technology, Ramapuram, Chennai, Tamil Nadu, India Author

Abstract

Modern vehicles rely heavily on in-vehicle communication networks such as the Controller Area Network (CAN) protocol to coordinate multiple Electronic Control Units (ECUs) responsible for safety-critical functions. Although CAN ensures efficient communication, it lacks built-in security mechanisms such as authentication and encryption, making it vulnerable to cyberattacks including spoofing, replay attacks, and denial-of-service. This paper proposes a hybrid intrusion detection framework that integrates graph-based modeling and Transformer-based deep learning for accurate identification of malicious CAN traffic. The proposed system extracts both structural relationships among ECUs and temporal patterns from message sequences, combines them using feature fusion, and classifies traffic using an attention-based Transformer model. The approach emphasizes accuracy, computational efficiency, and real-world deployability without modifying the CAN protocol. Experimental analysis using public CAN datasets demonstrates promising improvements in detection performance compared to traditional machine learning techniques.

References

[1] Bari, B.S., Yelamarthi, K. and Ghafoor, S., 2023. Intrusion detection in vehicle controller area network (can) bus using machine learning: A comparative performance study. Sensors, 23(7), p.3610.

[2] Khan, J., Lim, D.W. and Kim, Y.S., 2023. Intrusion detection system can-bus in-vehicle networks based on the statistical characteristics of attacks. Sensors, 23(7), p.3554.

[3] Rai, R., Grover, J., Sharma, P. et al. Securing the CAN bus using deep learning for intrusion detection in vehicles. Sci Rep 15, 13820 (2025). https://doi.org/10.1038/s41598-025-98433-

[4] Yang, H. and Effatparvar, M., 2025. A deep learning based intrusion detection system for CAN vehicle based on combination of triple attention mechanism and GGO algorithm. Scientific Reports, 15(1), p.19462.

[5] Gao, F., Liu, J., Li, C., Gao, Z. and Zhao, R., 2025. Signal-relationship-aware explainable intrusion detection in controller area networks using graph transformers. Knowledge-Based Systems, p.114237.

[6] Le, T.D., Truong, H.B.H. and Kim, D., 2024. Multi-classification in-vehicle intrusion detection system using packet-and sequence-level characteristics from time-embedded transformer with autoencoder. Knowledge-Based Systems, 299, p.112091.

[7] Sreelekshmi, M.S. and Aji, S., 2025. A deep architecture for in-vehicle intrusion detection using controller area network-graph relied feature images. Computers and Electrical Engineering, 127, p.110584.

[8] Luo, F., Wang, J., Zhang, X., Jiang, Y., Li, Z. and Luo, C., 2023. In-vehicle network intrusion detection systems: a systematic survey of deep learning-based approaches. PeerJ Computer Science, 9, p.e1648.

[9] Refat, R.U.D., Elkhail, A.A., Hafeez, A. and Malik, H., 2021, August. Detecting can bus intrusion by applying machine learning method to graph based features. In Proceedings Of SAI intelligent systems conference (pp. 730-748). Cham: Springer International Publishing.

[10] Jichici, C., Groza, B., Ragobete, R., Murvay, P.S. and Andreica, T., 2022. Effective intrusion detection and prevention for the commercial vehicle SAE J1939 CAN bus. IEEE Transactions on Intelligent Transportation Systems, 23(10), pp.17425-17439.

[11] Cai, Y., Zuo, J., Fan, M., Zhao, C. and Lu, Y., 2025. An Intrusion Detection System for the CAN Bus Based on Locality-Sensitive Hashing. Electronics, 14(13), p.2572.

[12] Lampe, B. and Meng, W., 2023. A survey of deep learning-based intrusion detection in automotive applications. Expert Systems with Applications, 221, p.119771.

[13] Zhou, X., Qin, G., Liang, Y., Song, J., Liu, W. and Liu, Q., 2025. CGTS: graph transformer-based anomaly detection in controller area networks. Cybersecurity, 8(1), p.62.

[14] Longari, S., Cerracchio, P., Carminati, M. and Zanero, S., 2025. Assessing the Resilience of Automotive Intrusion Detection Systems to Adversarial Manipulation. ACM Transactions on Cyber-Physical Systems.

[15] Aloraini, F., Javed, A. and Rana, O., 2024. Adversarial attacks on intrusion detection systems in in-vehicle networks of connected and autonomous vehicles. Sensors, 24(12), p.3848.

[16] Khandelwal, S. and Shreejith, S., 2025. SecCAN: An Extended CAN Controller with Embedded Intrusion Detection. IEEE Embedded Systems Letters.

Published

2026-09-21