Mitigating Message Injection Attacks in Internet of Vehicles Using Deep Learning Based Intrusion Detection System
Research Article  ·  Published: 21 September 2025
Issue cover
ICCK Transactions on Advanced Computing and Systems
Volume 1, Issue 4, 2025: 208-221
Research Article Open Access

Mitigating Message Injection Attacks in Internet of Vehicles Using Deep Learning Based Intrusion Detection System

1 Department of Statistics and Data Science, University of Mianwali, Mianwali 42200, Pakistan
2 Department of Computer Science, Qurtuba University of Science and Information Technology, Peshawar 25000, Pakistan
3 Department of Computer Science and Engineering, Sejong University, Seoul 05006, Republic of Korea
4 Department of Business Informatics, Technical University of Vienna (TU Wien), Vienna 1040, Austria
5 Department of Electrical Engineering, University of Science and Technology Bannu, Bannu 28100, Pakistan
* Corresponding Author: Muhammad Hammad Nawaz, [email protected]
Volume 1, Issue 4
You have full access to this open access article · CC BY 4.0 License

Article Information

Abstract

Real-time communication between autonomous vehicles, infrastructure, and their environment has facilitated the Internet of Vehicles (IoVs). Although this connectivity provides vehicular networks with significant benefits, it also introduces severe security threats, such as message injection attacks, particularly due to the heavy reliance on the Controller Area Network (CAN) protocol, which is inherently vulnerable. Electronic Control Units (ECUs) become primary targets for these attacks, leading to unsafe vehicle behaviors. To address these challenges, an Intrusion Detection System (IDS) based on deep learning architectures, Recurrent Neural Network (RNN), Long Short-Term Memory (LSTM), and Gated Recurrent Unit (GRU) is proposed for detecting and classifying cyberattacks in vehicular networks. Data preprocessing techniques such as NearMiss, Random Over-Sampling (ROS), and Tomek Links are applied to handle class imbalance in the car hacking dataset. A benchmark Car-Hacking dataset, evaluation metrics including accuracy, precision, recall, and F1 score, are used to assess the performance of the models. The experimental results demonstrate that the GRU model achieves the highest accuracy of 99%, followed by LSTM with 98%, and RNN with 94%. These findings indicate that GRU outperforms the other models and, in certain configurations, detects 100% of the attacks. The proposed IDS exhibits considerable superiority over traditional deep learning approaches, presenting a promising and intelligent solution for enhancing the cybersecurity of modern IoV systems.

Graphical Abstract

Mitigating Message Injection Attacks in Internet of Vehicles Using Deep Learning Based Intrusion Detection System

Keywords

Internet of Vehicles car hacking random over-sampling (Ros) NearMiss imbalanced data intrusion detection systems deep learning

Data Availability Statement

Data will be made available on request.

Funding

This work was supported without any funding.

Conflicts of Interest

The authors declare no conflicts of interest.

Ethical Approval and Consent to Participate

Not applicable.

References

  1. Nie, L., Ning, Z., Wang, X., Hu, X., Cheng, J., & Li, Y. (2020). Data-driven intrusion detection for intelligent internet of vehicles: A deep convolutional neural network-based method. IEEE Transactions on Network Science and Engineering, 7(4), 2219-2230.
    [CrossRef] [Google Scholar]
  2. Haghighat, A. K., Ravichandra-Mouli, V., Chakraborty, P., Esfandiari, Y., Arabi, S., & Sharma, A. (2020). Applications of deep learning in intelligent transportation systems. Journal of Big Data Analytics in Transportation, 2(2), 115-145.
    [CrossRef] [Google Scholar]
  3. Macas, M., Wu, C., & Fuertes, W. (2022). A survey on deep learning for cybersecurity: Progress, challenges, and opportunities. Computer Networks, 212, 109032.
    [CrossRef] [Google Scholar]
  4. Ferrag, M. A., Maglaras, L., Moschoyiannis, S., & Janicke, H. (2020). Deep learning for cyber security intrusion detection: Approaches, datasets, and comparative study. Journal of Information Security and Applications, 50, 102419.
    [CrossRef] [Google Scholar]
  5. Raimundo, R. J., & Rosário, A. T. (2022). Cybersecurity in the internet of things in industrial management. Applied Sciences, 12(3), 1598.
    [CrossRef] [Google Scholar]
  6. Amato, F., Coppolino, L., Mercaldo, F., Moscato, F., Nardone, R., & Santone, A. (2021). Can-bus attack detection with deep learning. IEEE Transactions on Intelligent Transportation Systems, 22(8), 5081-5090.
    [CrossRef] [Google Scholar]
  7. Choudhary, V., Tanwar, S., & Choudhury, T. (2024). Evaluation of contemporary intrusion detection systems for internet of things environment. Multimedia Tools and Applications, 83(3), 7541-7581.
    [CrossRef] [Google Scholar]
  8. Mehedi, S. T., Anwar, A., Rahman, Z., & Ahmed, K. (2021). Deep transfer learning based intrusion detection system for electric vehicular networks. Sensors, 21(14), 4736.
    [CrossRef] [Google Scholar]
  9. Yang, L., & Shami, A. (2022, May). A transfer learning and optimized CNN based intrusion detection system for Internet of Vehicles. In ICC 2022-IEEE International Conference on Communications (pp. 2774-2779). IEEE.
    [CrossRef] [Google Scholar]
  10. Yang, L., Moubayed, A., & Shami, A. (2021). MTH-IDS: A multitiered hybrid intrusion detection system for internet of vehicles. IEEE Internet of Things Journal, 9(1), 616-632.
    [CrossRef] [Google Scholar]
  11. Alshathri, S., Sayed, A., & Hemdan, E. E. D. (2024). An intelligent attack detection framework for the internet of autonomous vehicles with imbalanced car hacking data. World Electric Vehicle Journal, 15(8), 356.
    [CrossRef] [Google Scholar]
  12. Guo, J., Bilal, M., Qiu, Y., Qian, C., Xu, X., & Choo, K. K. R. (2024). Survey on digital twins for Internet of Vehicles: Fundamentals, challenges, and opportunities. Digital Communications and Networks, 10(2), 237-247.
    [CrossRef] [Google Scholar]
  13. Hossain, M. D., Inoue, H., Ochiai, H., Fall, D., & Kadobayashi, Y. (2020, December). An effective in-vehicle CAN bus intrusion detection system using CNN deep learning approach. In GLOBECOM 2020-2020 IEEE global communications conference (pp. 1-6). IEEE.
    [CrossRef] [Google Scholar]
  14. Song, H. M., Woo, J., & Kim, H. K. (2020). In-vehicle network intrusion detection using deep convolutional neural network. Vehicular Communications, 21, 100198.
    [CrossRef] [Google Scholar]
  15. Ding, W., Alrashdi, I., Hawash, H., & Abdel-Basset, M. (2024). DeepSecDrive: An explainable deep learning framework for real-time detection of cyberattack in in-vehicle networks. Information Sciences, 658, 120057.
    [CrossRef] [Google Scholar]
  16. Khan, I. A., Moustafa, N., Pi, D., Haider, W., Li, B., & Jolfaei, A. (2021). An enhanced multi-stage deep learning framework for detecting malicious activities from autonomous vehicles. IEEE Transactions on Intelligent Transportation Systems, 23(12), 25469-25478.
    [CrossRef] [Google Scholar]
  17. Ashraf, J., Bakhshi, A. D., Moustafa, N., Khurshid, H., Javed, A., & Beheshti, A. (2020). Novel deep learning-enabled LSTM autoencoder architecture for discovering anomalous events from intelligent transportation systems. IEEE Transactions on Intelligent Transportation Systems, 22(7), 4507-4518.
    [CrossRef] [Google Scholar]
  18. Sun, X., Yu, F. R., & Zhang, P. (2021). A survey on cyber-security of connected and autonomous vehicles (CAVs). IEEE Transactions on Intelligent Transportation Systems, 23(7), 6240-6259.
    [CrossRef] [Google Scholar]
  19. Limbasiya, T., Teng, K. Z., Chattopadhyay, S., & Zhou, J. (2022). A systematic survey of attack detection and prevention in connected and autonomous vehicles. Vehicular Communications, 37, 100515.
    [CrossRef] [Google Scholar]
  20. Nabil, N., Najib, N., & Abdellah, J. (2024). Leveraging artificial neural networks and LightGBM for enhanced intrusion detection in automotive systems. Arabian Journal for Science and Engineering, 49(9), 12579-12587.
    [CrossRef] [Google Scholar]
  21. Javed, A. R., ur Rehman, S., Khan, M. U., Alazab, M., & Reddy, T. (2021). CANintelliIDS: Detecting in-vehicle intrusion attacks on a controller area network using CNN and attention-based GRU. IEEE transactions on network science and engineering, 8(2), 1456-1466.
    [CrossRef] [Google Scholar]
  22. Hassan, H. A., Hemdan, E. E. D., El‐Shafai, W., Shokair, M., & Abd El‐Samie, F. E. (2024). Detection of attacks on software defined networks using machine learning techniques and imbalanced data handling methods. Security and Privacy, 7(2), e350.
    [CrossRef] [Google Scholar]
  23. Abdelkhalek, A., & Mashaly, M. (2023). Addressing the class imbalance problem in network intrusion detection systems using data resampling and deep learning. The Journal of Supercomputing, 79(10), 10611-10644.
    [CrossRef] [Google Scholar]
  24. Lampe, B., & Meng, W. (2023). A survey of deep learning-based intrusion detection in automotive applications. Expert Systems with Applications, 221, 119771.
    [CrossRef] [Google Scholar]
  25. Sajid, M., Malik, K. R., Almogren, A., Malik, T. S., Khan, A. H., Tanveer, J., & Rehman, A. U. (2024). Enhancing intrusion detection: a hybrid machine and deep learning approach. Journal of Cloud Computing, 13(1), 123.
    [CrossRef] [Google Scholar]
  26. Korium, M. S., Saber, M., Beattie, A., Narayanan, A., Sahoo, S., & Nardelli, P. H. (2024). Intrusion detection system for cyberattacks in the Internet of Vehicles environment. Ad hoc networks, 153, 103330.
    [CrossRef] [Google Scholar]

Cited By (5)

  1. Fida Muhammad Khan, Asim Zeb, Taj Rahman, Mahmoud Ahmad Al-Khasawneh, Yousef Ibrahim Daradkeh, Isma Farah Siddiqui, Ali Kashif Bashir, Inam Ullah. XAI-driven Data Mining for Self-defending IoT Systems: Enhancing Cybersecurity Transparency in the Age of Smart Cities. Cognitive Computation, 2026 , 18 (1).
    [CrossRef]
  2. Jing Zhang, Chaonan Wu, Qing Zhao, Hongxia Liu. Real Time Detection and Defense System for AI Attacks on Consumer Electronic Devices Based on Multimodal Data Fusion. IEEE Transactions on Consumer Electronics, 2026 , 72 (4).
    [CrossRef]
  3. Abdullah Alwabli. AI-driven Intelligent Transportation Systems with UAV-assisted communication and IoV integration. Journal of Engineering Research, 2026 .
    [CrossRef]
  4. Junaid, Md Rezanur Islam, Mohammad Shabaz, Fahad Algarni, Kangbin Yim, Aishah Alsehaim, Insaf Ullah. Multi-Vehicle Behavioral Framework for Proactive Threat Hunting in Heterogeneous In-Vehicle CAN Networks for Consumer Electronics. IEEE Transactions on Consumer Electronics, 2026 , 72 (4).
    [CrossRef]
  5. Saddam I. D. Bakhat, Inam Ullah, Xiaoshan Bai, Weidong Zhang, Jianqiang Li, Shuzhi Sam Ge. Advancing Multirobot Task Allocation: A Comprehensive Review of Emerging Trends and Challenges. IEEE Internet of Things Journal, 2026 , 13 (19).
    [CrossRef]
* Citation data provided by Crossref Cited-by.

Cite This Article

APA Style
Nawaz, M. H., Ahsan, A., Khan, I. U., Wang, Y., Ahmad, M., & Akhtar, M. S. (2025). Mitigating Message Injection Attacks in Internet of Vehicles Using Deep Learning Based Intrusion Detection System. ICCK Transactions on Advanced Computing and Systems, 1(4), 208-221. https://doi.org/10.62762/TACS.2025.560376
Export Citation
RIS Format
Compatible with EndNote, Zotero, Mendeley, and other reference managers
TY  - JOUR
AU  - Nawaz, Muhammad Hammad
AU  - Ahsan, Abrar
AU  - Khan, Inam Ullah
AU  - Wang, Yanan
AU  - Ahmad, Mushtaq
AU  - Akhtar, Muhammad Shoaib
PY  - 2025
DA  - 2025/09/21
TI  - Mitigating Message Injection Attacks in Internet of Vehicles Using Deep Learning Based Intrusion Detection System
JO  - ICCK Transactions on Advanced Computing and Systems
T2  - ICCK Transactions on Advanced Computing and Systems
JF  - ICCK Transactions on Advanced Computing and Systems
VL  - 1
IS  - 4
SP  - 208
EP  - 221
DO  - 10.62762/TACS.2025.560376
UR  - https://www.icck.org/article/abs/tacs.2025.560376
KW  - Internet of Vehicles
KW  - car hacking
KW  - random over-sampling (Ros)
KW  - NearMiss
KW  - imbalanced data
KW  - intrusion detection systems
KW  - deep learning
AB  - Real-time communication between autonomous vehicles, infrastructure, and their environment has facilitated the Internet of Vehicles (IoVs). Although this connectivity provides vehicular networks with significant benefits, it also introduces severe security threats, such as message injection attacks, particularly due to the heavy reliance on the Controller Area Network (CAN) protocol, which is inherently vulnerable. Electronic Control Units (ECUs) become primary targets for these attacks, leading to unsafe vehicle behaviors. To address these challenges, an Intrusion Detection System (IDS) based on deep learning architectures, Recurrent Neural Network (RNN), Long Short-Term Memory (LSTM), and Gated Recurrent Unit (GRU) is proposed for detecting and classifying cyberattacks in vehicular networks. Data preprocessing techniques such as NearMiss, Random Over-Sampling (ROS), and Tomek Links are applied to handle class imbalance in the car hacking dataset. A benchmark Car-Hacking dataset, evaluation metrics including accuracy, precision, recall, and F1 score, are used to assess the performance of the models. The experimental results demonstrate that the GRU model achieves the highest accuracy of 99%, followed by LSTM with 98%, and RNN with 94%. These findings indicate that GRU outperforms the other models and, in certain configurations, detects 100% of the attacks. The proposed IDS exhibits considerable superiority over traditional deep learning approaches, presenting a promising and intelligent solution for enhancing the cybersecurity of modern IoV systems.
SN  - 3068-7969
PB  - Institute of Central Computation and Knowledge
LA  - English
ER  - 
BibTeX Format
Compatible with LaTeX, BibTeX, and other reference managers
@article{Nawaz2025Mitigating,
  author = {Muhammad Hammad Nawaz and Abrar Ahsan and Inam Ullah Khan and Yanan Wang and Mushtaq Ahmad and Muhammad Shoaib Akhtar},
  title = {Mitigating Message Injection Attacks in Internet of Vehicles Using Deep Learning Based Intrusion Detection System},
  journal = {ICCK Transactions on Advanced Computing and Systems},
  year = {2025},
  volume = {1},
  number = {4},
  pages = {208-221},
  doi = {10.62762/TACS.2025.560376},
  url = {https://www.icck.org/article/abs/tacs.2025.560376},
  abstract = {Real-time communication between autonomous vehicles, infrastructure, and their environment has facilitated the Internet of Vehicles (IoVs). Although this connectivity provides vehicular networks with significant benefits, it also introduces severe security threats, such as message injection attacks, particularly due to the heavy reliance on the Controller Area Network (CAN) protocol, which is inherently vulnerable. Electronic Control Units (ECUs) become primary targets for these attacks, leading to unsafe vehicle behaviors. To address these challenges, an Intrusion Detection System (IDS) based on deep learning architectures, Recurrent Neural Network (RNN), Long Short-Term Memory (LSTM), and Gated Recurrent Unit (GRU) is proposed for detecting and classifying cyberattacks in vehicular networks. Data preprocessing techniques such as NearMiss, Random Over-Sampling (ROS), and Tomek Links are applied to handle class imbalance in the car hacking dataset. A benchmark Car-Hacking dataset, evaluation metrics including accuracy, precision, recall, and F1 score, are used to assess the performance of the models. The experimental results demonstrate that the GRU model achieves the highest accuracy of 99\%, followed by LSTM with 98\%, and RNN with 94\%. These findings indicate that GRU outperforms the other models and, in certain configurations, detects 100\% of the attacks. The proposed IDS exhibits considerable superiority over traditional deep learning approaches, presenting a promising and intelligent solution for enhancing the cybersecurity of modern IoV systems.},
  keywords = {Internet of Vehicles, car hacking, random over-sampling (Ros), NearMiss, imbalanced data, intrusion detection systems, deep learning},
  issn = {3068-7969},
  publisher = {Institute of Central Computation and Knowledge}
}

Article Metrics

Citations
Views
2248
PDF Downloads
556

Publisher's Note

ICCK stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and Permissions

CC BY Copyright © 2025 by the Author(s). Published by Institute of Central Computation and Knowledge. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/), which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made.
ICCK Transactions on Advanced Computing and Systems
ICCK Transactions on Advanced Computing and Systems
ISSN: 3068-7969 (Online)
Portico
Preserved at
Portico