Research and Application of Key Technologies for Network Security Situational Awareness Based on Machine Learning

Hongbin Gu, Xiaolong Li, X. Jessie Yang, Kongpeng WeiAtlantis 2023 · DOI · OpenAlex

TL;DR

This paper explores how machine learning can transform network security from a reactive "firewall-and-forget" approach to a proactive system of Situational Awareness (SA). By benchmarking various algorithms on modern datasets, the authors demonstrate that while complex models like Neural Networks offer superior accuracy, simpler methods like Stochastic Gradient Descent provide a vital balance between performance and the real-time processing speeds required for live network monitoring.

What Problem Does This Paper Address?

Traditional network security relies on "perimeter" defenses—think firewalls, access control lists, and basic intrusion detection systems (IDS). While useful, these tools are often siloed and reactive; they tell you if a specific rule was broken, but they struggle to provide a "big picture" view of the network's overall health or predict where an attack might go next.

The authors address the challenge of Network Security Situational Awareness (NSSA). NSSA is about moving beyond simple detection to a three-step process:

  1. Acquisition: Gathering data from heterogeneous sources.
  2. Understanding: Assessing the current security posture.
  3. Prediction: Forecasting future trends and potential threats.

The core problem is identifying which machine learning techniques can handle the massive, high-dimensional data generated by modern networks while remaining efficient enough to be useful in a production environment.

Methods

The researchers conducted a comparative study of several machine learning algorithms using the popular Python library scikit-learn. The study focused on two primary tasks: posture assessment (understanding the current state) and posture prediction (forecasting).

The algorithms tested include:

  • High-complexity models: Neural Networks and Support Vector Machines (SVM).
  • Linear/Regularized models: Linear Regression, Ridge Regression, Lasso Regression, and Elastic Net.
  • Optimization-based models: Stochastic Gradient Descent (SGD).
  • Probabilistic/Tree models: Decision Trees and Plain Bayesian.

Data Pre-processing was a critical step in their methodology. They utilized two main techniques to prepare the raw network traffic for the models:

  • Normalization: Scaling features to a range between 0 and 1.
  • Standardization: Adjusting features to have a mean of 0 and a variance of 1.
  • Label Encoding: Converting categorical "class identifiers" (like attack types) into numerical values that algorithms can process.

Datasets

The authors utilized two key datasets to validate their findings:

  • CIC-IDS-2017: A modern dataset containing benign traffic and common up-to-date attacks (like DDoS, Heartbleed, and Botnets). It is considered more reliable and reflective of current network trends than older benchmarks.
  • KDDCUP99: A classic, though aging, benchmark dataset from 1998. The authors used this primarily as a point of comparison to see how models behave on different data distributions.

Key Insights and Ideas

  • The Accuracy-Latency Trade-off: The most sophisticated models aren't always the best for deployment. While Neural Networks achieved the highest accuracy, their training time was orders of magnitude higher than simpler models.
  • Dataset Sensitivity: A model's effectiveness is heavily dependent on the quality of the data. On the older KDDCUP99 dataset, the performance gap between different algorithms narrowed significantly, suggesting that modern, diverse datasets like CIC-IDS-2017 are necessary to truly differentiate model capabilities.
  • The "Sweet Spot" of SGD: Stochastic Gradient Descent emerged as a "best of both worlds" candidate. It maintained high predictive power (R2 of 0.88) while being incredibly fast to train (0.22 seconds), making it a strong candidate for systems that need to update models frequently as new data arrives.

Key Results

The authors evaluated the models based on RMSE (Root Mean Square Error), R2 (Coefficient of Determination), and Training Time. Using the CIC-IDS-2017 dataset, the results were striking:

  • Top Performer (Accuracy): Neural Networks achieved an near-perfect R2 of 0.9930 and the lowest RMSE (0.0017), but took 16.8 seconds to train.
  • The Computational Heavyweight: Support Vector Machines (SVM) performed well (R2 of 0.9797) but were extremely slow, taking 307.96 seconds—nearly 20 times longer than the Neural Network.
  • The Efficiency Winner: Stochastic Gradient Descent (SGD) provided a solid R2 of 0.8845 with a lightning-fast training time of just 0.2293 seconds.
  • Poor Performers: Interestingly, Decision Trees and Plain Bayesian models performed poorly on this specific situational awareness task, yielding negative R2 values, which indicates they failed to follow the trend of the data effectively.

Limitations and Future Work

The paper primarily focuses on the performance of individual algorithms in a controlled environment. A few areas remain for further exploration:

  • Real-world Deployment: The study uses static datasets. Future work could look at how these models perform in "streaming" environments where data arrives continuously.
  • Feature Engineering: While the paper mentions basic pre-processing, it does not dive deep into which specific network features (e.g., packet length vs. duration) contributed most to the models' success.
  • Hardware Constraints: The authors note that "complex models take more time... in case of insufficient computing power," but they do not specify the exact hardware used for the benchmarks, which would be helpful for engineers looking to replicate the results on edge devices.

Summary updated

Abstract

With the emergence of a large number of network attacks due to the booming network, it is no longer possible to meet the higher requirements of network security if we only rely on simple network security protection technologies such as access control, firewall, intrusion detection, etc.In this situation, the research of network security situational awareness is increasingly applied to network security protection.Network security situational awareness is an environment-based, dynamic, and holistic insight into security risks.Based on the conceptual model of situational awareness, this paper introduces the key technologies of network security situational awareness, and compares the evaluation and prediction effects of different machine learning algorithms applied to network security situational awareness based on the massive network security situational data from multiple heterogeneous sources.
BibTeX
@inproceedings{gu2023research,
  author = {Hongbin Gu and Xiaolong Li and X. Jessie Yang and Kongpeng Wei},
  title = {{Research and Application of Key Technologies for Network Security Situational Awareness Based on Machine Learning}},
  booktitle = {Atlantis},
  year = {2023},
  doi = {10.2991/978-94-6463-198-2\_163},
}

Loading related content...

Figure