A Hybrid Model for BGP Anomaly Detection Using Median Absolute Deviation and Machine Learning
Open Access
- 17 March 2025
- journal article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Open Journal of the Communications Society
- Vol. 6, 2102-2116
Abstract
Detecting anomalies in the Border Gateway Protocol (BGP) has proved relevant in the cybersecurity field due to the protocol’s critical role in the Internet’s infrastructure. BGP vulnerabilities can lead to major disruptions and connectivity failures, highlighting the need for early detection to maintain stable and secure Internet services. To address this challenge, our article presents an enhanced version of our previously published Median Absolute Deviation (MAD) anomaly detection system. We introduce a novel dynamic threshold mechanism that significantly enhances anomaly detection performance in BGP, achieving superior accuracy and F1-score. Through a comparative analysis of machine learning (ML) classification models–including Random Forest, Extra Trees, XGBoost, LightGBM, and CatBoost–we demonstrate that integrating our MAD detection system with these ML models can improve anomaly detection significantly. Additionally, we explore how MAD performs when combined with neural networks such as RNN, GRU, and LSTM, providing a valuable comparison between machine learning and neural network-based approaches. We evaluate the models performance in well-known events, such as CodeRed 1 v2, Slammer, Nimda, the Moscow blackout, and the Telekom Malaysia (TMnet) misconfiguration. Our results show an overall accuracy of 0.99 and F1-score of 0.98, demonstrating the effective integration of MAD and ML models for the identification of security threats. Our approach enables proactive detection with minimal computational costs and reduced preprocessing, proving that efficient anomaly detection is achievable.Keywords
Funding Information
- Fondo Regional para la Innovación Digital en América Latina y el Caribe
This publication has 17 references indexed in Scilit:
- A new intrusion detection system based on using non-linear statistical analysis and features selection techniquesComputers & Security, 2022
- Tabular data: Deep learning is not all you needInformation Fusion, 2022
- Detecting Internet Worms, Ransomware, and Blackouts Using Recurrent Neural Networks2020
- Machine Learning with Oversampling and Undersampling Techniques: Overview Study and Experimental Results2020
- Comparing Machine Learning Algorithms for BGP Anomaly Detection using Graph Features2019
- Selection of Effective Features for BGP Anomaly Detection2019
- Detecting BGP Route Anomalies with Deep Learning2019
- BGP Anomaly Detection Techniques: A SurveyIEEE Communications Surveys & Tutorials, 2016
- Securing BGP — A Literature SurveyIEEE Communications Surveys & Tutorials, 2010
- The mean and median absolute deviationsMathematical and Computer Modelling, 2001