Skip to main content
QUICK REVIEW

[Paper Review] Improving Botnet Detection with Recurrent Neural Network and Transfer Learning

Jeeyung Kim, Alex Sim|arXiv (Cornell University)|Apr 26, 2021
Network Security and Intrusion DetectionComputer Science40 references9 citations
TL;DR

This paper proposes a recurrent variational autoencoder (RVAE) with transfer learning to improve botnet detection by capturing sequential traffic patterns and reducing reliance on labeled data. The method achieves a 91.8% true-positive rate using transfer learning—significantly outperforming semi-supervised RVAE trained only on target data (68.3% TPR)—demonstrating superior detection of previously unseen botnets with minimal labeled data.

ABSTRACT

Botnet detection is a critical step in stopping the spread of botnets and preventing malicious activities. However, reliable detection is still a challenging task, due to a wide variety of botnets involving ever-increasing types of devices and attack vectors. Recent approaches employing machine learning (ML) showed improved performance than earlier ones, but these ML- based approaches still have significant limitations. For example, most ML approaches can not incorporate sequential pattern analysis techniques key to detect some classes of botnets. Another common shortcoming of ML-based approaches is the need to retrain neural networks in order to detect the evolving botnets; however, the training process is time-consuming and requires significant efforts to label the training data. For fast-evolving botnets, it might take too long to create sufficient training samples before the botnets have changed again. To address these challenges, we propose a novel botnet detection method, built upon Recurrent Variational Autoencoder (RVAE) that effectively captures sequential characteristics of botnet activities. In the experiment, this semi-supervised learning method achieves better detection accuracy than similar learning methods, especially on hard to detect classes. Additionally, we devise a transfer learning framework to learn from a well-curated source data set and transfer the knowledge to a target problem domain not seen before. Tests show that the true-positive rate (TPR) with transfer learning is higher than the RVAE semi-supervised learning method trained using the target data set (91.8% vs. 68.3%).

Motivation & Objective

  • Address the challenge of detecting evolving botnets that use multiple protocols and evade traditional signature-based methods.
  • Overcome the limitation of supervised learning by reducing dependency on large, costly labeled datasets for botnet detection.
  • Improve anomaly detection by modeling sequential and periodic patterns in network traffic using recurrent architectures.
  • Develop a transfer learning framework to leverage labeled data from a source domain to enhance detection in a target domain with limited or no labels.
  • Enable real-time, robust detection of previously unseen botnet variants through semi-supervised and transfer learning approaches.

Proposed method

  • Propose a Recurrent Variational Autoencoder (RVAE) to model sequential network traffic patterns, capturing temporal dependencies in botnet behavior.
  • Use semi-supervised learning with only normal traffic samples for training, minimizing reliance on labeled malicious data.
  • Implement a transfer learning framework where a pre-trained model on a labeled source dataset (e.g., CTU-13) is fine-tuned on unlabeled target data.
  • Apply reconstruction error and probability density function (PDF) comparison to identify anomalies, with thresholding based on learned distributions.
  • Use a dynamic sampling strategy ($r_s$) to balance training data distribution and optimize detection performance.
  • Evaluate performance using standard metrics: true positive rate (TPR), false positive rate (FPR), and area under the ROC curve (AUROC).

Experimental results

Research questions

  • RQ1Can a recurrent neural network architecture effectively model sequential patterns in botnet traffic to improve detection beyond non-sequential models?
  • RQ2How does the proposed RVAE-based semi-supervised method compare to traditional ML models in detecting previously unseen botnet variants?
  • RQ3To what extent can transfer learning improve detection performance when labeled data in the target domain is scarce or unavailable?
  • RQ4What impact does the ratio of labeled samples in the training set ($r_s$) have on the performance of the semi-supervised anomaly detection method?
  • RQ5Can the transfer learning framework generalize across different network monitoring data distributions and detect novel botnet behaviors effectively?

Key findings

  • The RVAE model achieved an AUROC of 0.979 on the CTU-13 dataset, outperforming MLP-VAE (AUROC 0.963), demonstrating the advantage of modeling sequential patterns.
  • Transfer learning achieved a true-positive rate (TPR) of 91.8% on unseen target data, significantly higher than the 68.3% TPR of RVAE trained solely on target data.
  • The method effectively detects previously unseen botnet variants, including those using mixed protocols like IRC, P2P, and HTTP, due to its sequential modeling capability.
  • Optimal performance was observed with a low sampling ratio ($r_s$ = 5%), which minimized bias in reconstruction error distribution and reduced false positives.
  • The transfer learning framework enables effective detection in data-scarce environments, making it suitable for real-world deployment where labeled botnet samples are rare.
  • The approach shows robustness across diverse botnet behaviors, including those using proprietary protocols, though FPR remains a relative weakness needing further improvement.

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.