Logo Lanfrica

bandym05/Cryptojacking-detection-using-ML

Domaine:

digital infrastructure

Type de record:

model
Créateur:
ban
Hôte:
🔒 Machine Learning model for detecting cryptojacking attacks based on host and network activity, built for UmojaHack Africa 2023. # 🔒 Cryptojacking Detection using Machine Learning Welcome to the Cryptojacking Detection Challenge solution developed for the UmojaHack Africa 2023 competition! This project leverages machine learning techniques to classify network activity as either **cryptojacking** or **normal** behavior based on host-based and network-based features. ## 🧠 What is Cryptojacking? Cryptojacking is a type of cyberattack in which malicious scripts hijack computing resources to mine cryptocurrency without the user's consent or knowledge. This leads to reduced system performance, crashes, and increased energy consumption. ## 🎯 Objective Build a binary classification model that can effectively detect cryptojacking activity using various system and network performance metrics. --- ## 📁 Dataset Overview The dataset contains the following files: - `Train.csv` – contains the training data with labeled instances. - `Test.csv` – contains the unlabeled data for predictions. - `SampleSubmission.csv` – format to submit predictions. Each row in the dataset represents a snapshot of network activity and includes features like: - I/O operations and bytes - Processor time - Disk read/write speeds - Network bytes sent/received - Page errors, etc. --- ## 🧪 Workflow ### 1. **Importing Libraries** Essential libraries used include: - `pandas`, `numpy` for data handling - `matplotlib`, `seaborn` for visualization - `sklearn` for machine learning and evaluation - `imblearn` for handling class imbalance ### 2. **Exploratory Data Analysis** - Statistical summaries - Missing values & duplicates check - Target label distribution - Correlation heatmap ### 3. **Data Preprocessing** - Standardization using `StandardScaler` - Splitting the dataset into training and validation sets - Addressing class imbalance using `SMOTETomek` ### 4. **Modeling** Several models were tested (Logistic Regression, Decision Trees, SVM), but the best performance was achieved using: ✅ **Random Forest Classifier** …