Reinforcement Learning-Guided Adversarial Training to Enhance Intrusion Detection Robustness on the Mirai Dataset
Abstract
Despite demonstrating impressive detection capabilities, deep learning-based intrusion detection systems (IDS) exhibit significant vulnerability to adversarial examples, particularly under gradient-based attacks such as FGSM. To address this issue, this study proposes a reinforcement learning (RL)-guided adversarial training framework, in which a Q-learning agent adaptively optimizes perturbation strengths (ε values) during training. This adaptive mechanism allows the model to defend against a broad range of threat intensities without manual tuning, thereby overcoming the limitations of traditional fixed-ε adversarial training methods. The proposed approach is evaluated on the Mirai subset of the Kitsune dataset, selecting 40,000 labeled samples. Experimental results demonstrate that the RL-based adversarial training model significantly outperforms both a baseline model (trained only on clean data) and a fixed-ε model (ε = 0.1) in terms of robustness. For instance, under strong adversarial perturbation (ε = 0.2), the RL-guided model achieves an accuracy of 96%, compared to 90% for the fixed-ε model and 82% for the baseline. Furthermore, the agent converges toward selecting ε ≈ 0.11 as the optimal trade-off between training stability and defense effectiveness. These findings validate the efficacy of reinforcement learning in dynamically optimizing adversarial training, offering a scalable defense against gradient-based attacks.
References
- Houda Jmila, Mohamed Ibn Khedher. 2022. “Adversarial Machine Learning for Network Intrusion Detection: A Comparative Study, ” Computer Networks, Volume 214, 2022, 109073, ISSN 1389-1286.
- Rajwar, S.K., et al. (2022). Comparative Evaluation of Machine Learning Methods for Network Intrusion Detection System. In: Reddy, V.S., Prasad, V.K., Mallikarjuna Rao, D.N., Satapathy, S.C. (eds) Intelligent Systems and Sustainable Computing. Smart Innovation, Systems and Technologies, vol 289. Springer, Singapore.
- M. S. Haroon and H. M. Ali, 2022. “Adversarial Training Against Adversarial Attacks for Machine Learning-Based Intrusion Detection Systems, ” Comput. Mater. Contin., vol. 73, no. 2, pp. 3513–3527.
- H.Ding, Y. Sun, N. Huang, Z. Shen and X. Cui, 2024. "TMG-GAN: Generative Adversarial Networks-Based Imbalanced Learning for Network Intrusion Detection, " in IEEE Transactions on Information Forensics and Security, vol. 19, pp. 1156-1167.
- Mahjoub, C., Hamdi, M., Alkanhel, R.I. et al. 2024. An adversarial environment reinforcement learning-driven intrusion detection algorithm for Internet of Things. J Wireless Com Network 2024, 21.
- Afrah Gueriani, Hamza Kheddar, Ahmed Cherif Mazari, 2024. “Deep Reinforcement Learning for Intrusion Detection in IoT: A Survey”, arXiv: 2405.20038.
- Yulong Wang, Tong Sun, Shenghong Li, Xin Yuan, Wei Ni, Ekram Hossain, H. Vincent Poor, 2023. “Adversarial Attacks and Defenses in Machine Learning-Powered Networks: A Contemporary Survey, ” arXiv preprint arXiv: 2304.05644.
- Albulayhi, Khalid & Abu Al-Haija, Qasem. (2023). Adversarial Deep Learning in Anomaly based Intrusion Detection Systems for IoT Environments. International Journal of Wireless and Microwave Technologies. 13. 1-10. 10.5815/ijwmt.2023.04.01.
- Wen Ding, Xiong, Kai Lun, Luo, Rui Li, “AIDTF: Adversarial training framework for network intrusion detection, ” Computers & Security, Volume 128, 2023, 103141, ISSN 0167-4048, https: //doi.org/10.1016/j.cose.2023.103141.
- Pau de Jorge et al. 2022. "Make Some Noise: Reliable and Efficient Single-Step Adversarial Training, " arXiv preprint, arXiv: 2202.01181.
- Alhadad B, Nickray M. 2025. A Transformer-Based Intrusion Detection Approach with Fast Gradient Sign Method Adversarial Training [J]. International Journal of Intelligent Engineering & Systems, 18(1)..0229.79