Abstract
Learning-based Network Intrusion Detection Systems (NIDSs) are widely deployed for defending various cyberattacks. Existing learning-based NIDS mainly uses Neural Network (NN) as a classifier that relies on the quality and quantity of cyberattack data. Such NN-based approaches are also hard to interpret for improving efficiency and scalability. In this paper, we design a new local-global computation paradigm, FEDFOREST, a novel learning-based NIDS by combining the interpretable Gradient Boosting Decision Tree (GBDT) and Federated Learning (FL) framework. Specifically, FEDFOREST is composed of multiple clients that extract local cyberattack data features for the server to train models and detect intrusions. A privacy-enhanced technology is also proposed in FEDFOREST to further defeat the privacy of the FL systems. Extensive experiments on 4 cyberattack datasets of different tasks demonstrate that FEDFOREST is effective, efficient, interpretable, and extendable. FEDFOREST ranks first in the collaborative learning and cybersecurity competition 2021 for Chinese college students.
Introduction
Network Intrusion Detection Systems (NIDS) serve as the frontline of modern cybersecurity. However, current machine learning-based approaches face three major hurdles: privacy concerns regarding centralized sensitive data, the "black-box" nature of Deep Neural Networks (DNNs) which lacks human interpretability, and the inefficiency of training DNNs on tabular network data in a distributed fashion.
To address these challenges, we introduce FEDFOREST, a framework that combines Federated Learning (FL) with Gradient Boosting Decision Trees (GBDT). By moving away from neural networks, FEDFOREST achieves higher accuracy on tabular data with significantly lower communication overhead and enhanced transparency for security experts.
Methodology
FEDFOREST utilizes a "local-global" computation paradigm. Instead of iteratively syncing neural network weights (like the standard FedAvg approach), FEDFOREST operates through four distinct stages:
- Data Selection: A greedy algorithm selects a subset of clients to ensure training data is balanced across various cyberattack types.
- Local Encoders: Each client trains a local GBDT model (e.g., LightGBM or XGBoost) on their private data to act as high-level feature extractors.
- Privacy-Enhanced Encoding: Clients transform raw data into softmax probabilities using these encoders. To prevent privacy leaks, random data masking and Differential Privacy (Laplace noise) are applied to the outputs.
- Global Classifier: The server aggregates these privacy-protected encodings to train a final global GBDT model for multi-class classification.
Key Insights and Results
Trees over Neurons
For tabular network data, GBDTs consistently outperform Multi-Layer Perceptrons (MLPs) in both accuracy and training speed. A core advantage is interpretability; unlike "black-box" neural networks, tree-based models allow experts to extract logical rules from the decision trees to understand why specific traffic was flagged.
Efficiency and Zero-Day Detection
FEDFOREST significantly reduces communication overhead. In simulations, it reduced download data size from ~15GB (for a 7-layer MLP) to just ~7.5MB, resulting in a 9x speedup in training time. Furthermore, the system demonstrated robust zero-day detection capabilities, successfully flagging unknown attacks (like "PORTMAP") by identifying their similarity to known threats.
Performance Benchmarks
Evaluated on four modern benchmarks (DDoS2019, MalDroid2020, Darknet2020, and DoHBrw2020), FEDFOREST achieved an accuracy of 67.03% on the heterogeneous DDoS2019 dataset, outperforming the best MLP-based Federated approach (61.74%). Even under high Differential Privacy noise, the framework maintained superior utility compared to standard unprotected models.
Conclusion
FEDFOREST provides an effective, efficient, and interpretable framework for federated network intrusion detection. Future work will explore the use of AutoML to automate hyperparameter tuning and investigate incentive mechanisms to encourage organizational participation in federated circles.
Summary updated