Manuscript Offprint

arXiv:2610.20658

Empirical Evaluation of Machine Learning for Cloud Cryptojacking Detection: Effects of Preprocessing and Evaluation Protocols

Amitabh Chakravorty, Nelly Elsayed

Amitabh Chakravorty and Nelly Elsayed

School of Information Technology, University of Cincinnati, Cincinnati, OH, USA

chakraa4@mail.uc.edu, elsayeny@ucmail.uc.edu

Abstract. Artificial intelligence (AI) has been widely applied to cloud crypto-jacking detection. Classical machine learning models remain among the most widely used approaches for cloud cryptojacking detection. This paper presents an empirical evaluation of six widely used classical machine learning models for AI-based cloud cryptojacking detection under different preprocessing and evaluation settings. Because no public cloud-native cryptojacking dataset is currently available, experiments were conducted using two publicly available proxy datasets, DS2OS and NSL-KDD. The evaluated models include Random Forest, XGBoost, LightGBM, Gradient Boosting, Decision Tree, and K-Nearest Neighbors (KNN). Experimental results show that preprocessing choices and evaluation protocols have a measurable impact on model performance. On DS2OS, removing identifier-related features reduced the accuracy of most models to approximately 96%, while KNN achieved higher accuracy with lower attack recall. On NSL-KDD, models obtained 77 to 80% accuracy on the official test set containing unseen attack types, compared with above 99.5% under a random train-test split. Attack-class precision, recall, and Matthews Correlation Coefficient (MCC) further provide complementary insights into classifier performance beyond overall accuracy. The results provide an empirical comparison of commonly used classical machine learning models under consistent experimental settings and offer insights into how preprocessing, dataset selection, and evaluation methodology influence reported performance.

Keywords: Cloud cryptojacking · Cloud security · Machine learning · Intrusion detection · Empirical evaluation

1 Introduction

Cryptojacking is the unauthorized use of computing resources to mine cryptocurrency [25]. In cloud environments the threat is acute. Elasticity, multi-tenancy and automated provisioning let an attacker scale a single foothold into large mining workloads while the cost lands on the victim [17]. Every hijacked processor cycle also burns energy on a workload that serves no legitimate purpose, so timely detection supports sustainable cloud operation as much as it supports security. The behavior is stealthy by design [27, 29]. Mining processes throttle their own resource use and mimic legitimate high-intensity workloads such as model training or batch analytics, which makes them difficult to separate from benign activity [25].

A. Chakravorty and N. Elsayed

A large body of work applies artificial intelligence to cryptojacking detection, including in cloud settings, using both classical machine learning and deep learning techniques [14,15,18,20,28][14, 15, 18, 20, 28]. Reported performance is generally high across a variety of datasets and experimental settings. However, differences in datasets, preprocessing strategies, and evaluation protocols make direct comparison between studies difficult. An empirical evaluation under consistent experimental conditions is therefore valuable for understanding the relative performance of commonly used machine learning models.

To the best of our knowledge, no publicly available cloud-native cryptojacking dataset currently exists [8]. This study therefore evaluates six widely used classical machine learning models using two publicly available proxy datasets, DS2OS and NSL-KDD, under consistent preprocessing and evaluation settings.

The main contributions of our proposed paper are:

– We empirically evaluate six widely used classical machine learning models for AI-based cloud cryptojacking detection on two publicly available proxy datasets.

– We analyze the impact of preprocessing choices, including feature leakage removal, on model performance using the DS2OS dataset.

– We compare model performance under different evaluation protocols using the official NSL-KDD holdout and a random train-test split.

– We compare model accuracy, attack-class metrics, and computational cost to provide a comprehensive empirical assessment of the evaluated models.

Section 2 summarizes the background and motivation. Section 3 presents the methodology. Section 4 describes the experimental setup. Section 5 reports the empirical results. Section 6 discusses the findings. Section 7 presents the threats to validity, and Section 8 concludes the paper.

References (27)