Skip to main content
QUICK REVIEW

[Paper Review] Cyber Attack Detection thanks to Machine Learning Algorithms

Antoine Delplace, Sheryl Hermoso|arXiv (Cornell University)|Jan 17, 2020
Network Security and Intrusion DetectionComputer Science23 references10 citations
TL;DR

This paper proposes a machine learning-based approach for detecting botnets in network traffic using NetFlow data, extracting 22 features and applying supervised learning algorithms. The Random Forest Classifier achieves over 95% detection accuracy in 8 out of 13 scenarios and improves to over 55% in the most challenging cases using bootstrapping data augmentation.

ABSTRACT

Cybersecurity attacks are growing both in frequency and sophistication over the years. This increasing sophistication and complexity call for more advancement and continuous innovation in defensive strategies. Traditional methods of intrusion detection and deep packet inspection, while still largely used and recommended, are no longer sufficient to meet the demands of growing security threats. As computing power increases and cost drops, Machine Learning is seen as an alternative method or an additional mechanism to defend against malwares, botnets, and other attacks. This paper explores Machine Learning as a viable solution by examining its capabilities to classify malicious traffic in a network. First, a strong data analysis is performed resulting in 22 extracted features from the initial Netflow datasets. All these features are then compared with one another through a feature selection process. Then, our approach analyzes five different machine learning algorithms against NetFlow dataset containing common botnets. The Random Forest Classifier succeeds in detecting more than 95% of the botnets in 8 out of 13 scenarios and more than 55% in the most difficult datasets. Finally, insight is given to improve and generalize the results, especially through a bootstrapping technique.

Motivation & Objective

  • Address the limitations of traditional signature-based and behavior-based intrusion detection systems in detecting evolving botnets.
  • Explore machine learning as a scalable and privacy-preserving alternative for real-time cyber attack detection using NetFlow data.
  • Improve detection accuracy for low-represented or complex botnet behaviors through feature engineering and data augmentation.
  • Compare multiple machine learning algorithms to identify the most effective model for botnet detection in network traffic.
  • Generalize detection performance across diverse botnet types and network conditions using robust feature selection and model tuning.

Proposed method

  • Extract 22 network features from CTU-13 NetFlow datasets using time-windowed aggregation to capture temporal traffic patterns.
  • Apply filter, wrapper, and embedded feature selection techniques to identify the most discriminative features for botnet detection.
  • Train and evaluate five supervised learning models: Logistic Regression, SVM, Random Forest, Gradient Boosting, and Dense Neural Network.
  • Use bootstrapping to augment underrepresented training data in challenging scenarios to improve model generalization and detection rates.
  • Apply statistical analysis across 50 random test splits to validate model robustness and reliability in low-data regimes.
  • Evaluate models using precision, recall, and F1-score to balance detection performance and false positive rates.

Experimental results

Research questions

  • RQ1Can machine learning models effectively detect botnet traffic in NetFlow data with high precision and recall across diverse botnet types?
  • RQ2How do different machine learning algorithms compare in detecting botnets under varying data representativeness and complexity?
  • RQ3To what extent can data augmentation via bootstrapping improve detection performance in scenarios with scarce or unrepresentative botnet samples?
  • RQ4Which network features extracted from NetFlow are most predictive of botnet activity, and how do they contribute to model performance?
  • RQ5Can unsupervised or alternative deep learning architectures (e.g., LSTM) further improve detection in the most challenging detection scenarios?

Key findings

  • The Random Forest Classifier achieved over 95% F1-score in detecting botnets across 8 out of 13 test scenarios, demonstrating strong generalization on diverse botnet types.
  • In the most challenging scenarios (4, 5, 7, 11, 12), the Random Forest maintained detection performance above 55% F1-score after applying bootstrapping data augmentation.
  • Logistic Regression and Dense Neural Network models performed poorly in low-data scenarios, with F1-scores below 0.10 for some botnets like Sogou and NSIS.ay.
  • Gradient Boosting showed performance close to Random Forest, particularly excelling in scenarios with higher data representativeness, such as Virut (F1 = 0.73 in test set).
  • The F1-score for scenario 4 reached 0.75 and for scenario 12 reached 0.54 after bootstrapping, indicating partial success in improving detection for hard cases.
  • Statistical analysis across 50 random test splits confirmed that model performance was stable and reproducible, supporting the reliability of the results.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.