Abstract
Modern Network Intrusion Detection (NID) systems face significant challenges due to the high volume and dimensionality of raw traffic data. Traditional dimensionality reduction techniques, such as Principal Component Analysis (PCA), often fail to preserve task-relevant information or account for temporal dependencies. This paper introduces FSNID (Feature Selection for Network Intrusion Detection), a novel information-theoretic framework that leverages Transfer Entropy and Recurrent Neural Networks (LSTMs) to identify the most informative features for cyberattack detection. Our approach is the first to integrate temporal integration into the feature selection process, enabling the identification of complex attack patterns while significantly reducing data overhead. Evaluations across six benchmark datasets demonstrate that FSNID maintains near-optimal detection performance while drastically pruning redundant features.
Introduction
In the domain of cybersecurity, the proliferation of network traffic data necessitates efficient processing to ensure real-time threat detection. Practitioners often rely on feature extraction and selection to manage this "firehose" of data. However, common methods like PCA are "task-blind," reducing dimensions based on variance rather than discriminative power for intrusion detection. This leads to increased computational resource consumption and the potential loss of critical information. Furthermore, existing selection methods frequently ignore temporal dependencies, which are vital for identifying sophisticated attacks like slow brute-force or Distributed Denial of Service (DDoS) that unfold over time.
Methodology: The FSNID Framework
The FSNID framework addresses these limitations through three core components:
- Transfer Entropy (TE): FSNID utilizes TE to measure the directed flow of information from individual features to attack labels. Unlike simple correlation, TE quantifies how much a specific metric reduces uncertainty regarding the presence of an attack.
- Neural Function Approximation: To overcome the mathematical intractability of calculating TE in high-dimensional spaces, the authors employ neural networks to estimate Mutual Information using the Donsker-Varadhan representation. This allows the model to capture non-linear relationships that traditional statistical methods might overlook.
- Temporal Integration (LSTM-FSNID): By incorporating Long Short-Term Memory (LSTM) networks as estimators, FSNID accounts for temporal sequences. This "time-aware" selection recognizes features that may appear insignificant in isolation but are crucial when viewed as part of a temporal pattern.
To mitigate redundancy, FSNID employs a sequential selection algorithm. This ensures that if multiple features provide overlapping information, only the most relevant one is retained, resulting in a parsimonious feature set.
Experimental Evaluation
The effectiveness of FSNID was validated across six diverse datasets: TON-IoT, Bot-IoT, NSL-KDD, CIC-DDoS2019, UNSW-NB 15, and CICIDS17. These datasets cover a wide range of scenarios, from IoT sensor data to modern state-of-the-art attack flows.
Key Results
- Feature Pruning: On the TON-IoT dataset, FSNID achieved significant reductions in the feature set size while outperforming existing methods like UMFI, which tended to select redundant features.
- Performance Retention: Despite the massive reduction in features, models trained on FSNID-selected data achieved F1-scores and accuracies nearly identical to those using the full feature set.
- Scalability: FSNID exhibits linear scalability, making it suitable for large-scale enterprise networks, unlike metaheuristic approaches that suffer from exponential complexity.
Discussion and Limitations
While FSNID offers substantial improvements in efficiency and accuracy, there are trade-offs. The LSTM-based estimator, while more effective for time-dependent data, requires significantly longer training times compared to the vanilla MLP version. For instance, training on the TON-IoT dataset took approximately 185,477 seconds for the LSTM version versus 1,723 seconds for the vanilla version. Additionally, the method requires careful hyperparameter tuning for different network environments.
Future research will explore alternative architectures like Transformers for the estimation process and investigate the performance of FSNID in dynamic, online network settings.
Summary updated