Botnet Command and Control Detection Using Network Flow Analysis — ISAISS 2026 | TechShield Publications
ISAISS 2026 · Conference Article

Botnet Command and Control Detection Using Network Flow Analysis

Authors: Usama Altaf, Muhammad Affaq, Aoun Muhammad, Umar Fayyaz, Sehrish Raza

Abstract

This paper presents a large-scale empirical comparison of machine learning approaches for detecting botnet Command-and-Control (C2) traffic using network flow analysis. We evaluate three distinct methods on the CTU-13 dataset comprising 13.46 million network flows: Random Forest, XGBoost (supervised learning), and an LSTM Autoencoder (anomaly detection). Our comparative analysis demonstrates that Random Forest achieves the highest performance with 99.21% accuracy, 94.31% recall, and 0.9968 ROC-AUC, while XGBoost attains 98.93% accuracy and 90.54% recall. The LSTM Autoencoder shows limited effectiveness with 0.679 ROC-AUC. These findings provide empirical evidence that flow-based supervised learning can effectively detect encrypted C2 traffic without payload inspection, achieving false positive rates below 1%, making it practical for real-time botnet detection in operational networks.

Botnet Detection Command and Control Network Flow Analysis Machine Learning Intrusion Detection

Cite This Paper

U. Altaf, M. Affaq, A. Muhammad, U. Fayyaz, and S. Raza, “Botnet Command and Control Detection Using Network Flow Analysis,” Proc. Int. Symp. on AI and Secure Systems (ISAISS 2026), University of Central Punjab, Bahawalpur, Jan. 2026, doi: 10.67535/tsp.000002.023.