Abstract
Network security has emerged as a crucial universal issue that affects enterprises, governments, and individuals. The strategies utilized by the attackers are continuing to evolve, and therefore the rate of attacks targeting the network system has expanded dramatically. An Intrusion Detection System (IDS) is one of the significant defense solutions against sophisticated cyberattacks. However, the challenge of improving the accuracy, detection rate, and minimal false alarms of the IDS continues. This paper proposes a robust and effective intrusion detection framework based on the ensemble learning technique using eXtreme Gradient Boosting (XGBoost) and an embedded feature selection method. Further, the best uniform feature subset is extracted using the up-to-date real-world intrusion dataset Canadian Institute for Cybersecurity Intrusion Detection (CICIDS2017) for all attacks. The proposed IDS framework has successfully exceeded several evaluations on a big test dataset over both multi and binary classification. The achieved results are promising on various measurements with an accuracy overall, precision, detection rate, specificity, F-score, false-negative rate, false-positive rate, error rate, and The Area Under the Curve (AUC) scores of 99.86%, 99.69%, 99.75%, 99.69%, 99.72%, 0.17%, 0.2%, 0.14%, and 99.72 respectively for abnormal class. Moreover, the achieved results of multi-classification are also remarkable and impressively great on all performance metrics.
Introduction
As cyberattacks become increasingly sophisticated, traditional defense mechanisms like firewalls and basic signature-based detection often fall short. Modern Intrusion Detection Systems (IDS) rely on machine learning to spot anomalies, but they face three major hurdles: high dimensionality of network traffic data, significant class imbalance between normal and attack behaviors, and the use of obsolete benchmarks that do not reflect modern attack vectors. This research aims to build a framework that is both computationally efficient and highly accurate across a wide variety of modern attack types.
Methodology
The proposed framework utilizes a four-stage pipeline designed for efficiency and robustness.
- Data Integration: Multiple traffic logs were merged into a single massive dataset of over 2.3 million samples.
- Embedded Feature Selection: Instead of manual selection, a hybrid approach was employed. A tree-based "filter" first ranked features by "Gain." Subsequently, a "wrapper" method with a meta-transformer identified an optimal 50-feature subset that works uniformly for all attack types.
- Handling Imbalance: To prevent model bias toward normal traffic, similar minority attack classes were merged (e.g., grouping various DoS attacks). XGBoost’s inherent ability to handle imbalanced data through iterative boosting further mitigated this issue.
- Ensemble Learning (XGBoost): The core engine consists of an ensemble of 300 decision trees, fine-tuned using grid search and 10-fold cross-validation to optimize hyperparameters such as tree depth and learning rate.
Dataset
The study utilizes the CICIDS2017 dataset from the Canadian Institute for Cybersecurity. This dataset is critical because it contains up-to-date, real-world network traffic, including benign traffic and diverse modern attacks such as DDoS, DoS, Botnets, Infiltration, Web Attacks, and Brute Force. The integrated dataset used in this study includes 2,300,825 samples, comprising 1,743,179 benign and 557,646 attack samples.
Key Results and Insights
The framework demonstrated exceptional performance in both binary and multi-class classification tasks.
- Binary Classification: The model achieved an overall accuracy of 99.86% and an AUC of 99.72%, with an extremely low False Positive Rate of 0.2%.
- Multi-Class Classification: The model achieved a weighted average accuracy of 99.90%. Even challenging classes like "Infiltration" were detected with high precision.
- Efficiency: The model's high efficiency was evidenced by a test time of just 0.25 minutes for over 690,000 samples, making it suitable for high-speed network monitoring.
A significant finding was the extraction of a uniform feature subset. By identifying 50 features that provide a comprehensive "fingerprint" for almost any intrusion, the authors avoided the need for multiple attack-specific models. Furthermore, the "embedded" feature selection method significantly reduced computational overhead compared to traditional exhaustive search methods.
Conclusion
While the results are impressive, future work should focus on real-time deployment to handle massive data traffic in live environments. Additionally, as cybersecurity is a "cat and mouse" game, incorporating continuous learning or "online" updates will be essential to address emerging zero-day attacks.
Summary updated