This project applies Machine Learning to detect malware by analyzing features extracted from executable files (.exe).
It uses a hybrid feature engineering approach combining:
- 🔹 Static features (header metadata, imports, entropy)
- 🔹 Dynamic behavioral features (runtime indicators if available)
Multiple ML models are trained and evaluated to determine the best-performing approach.
| File | Description |
|---|---|
Malware_comparative_analysis.ipynb |
Main notebook containing preprocessing, feature extraction, model training, and visualizations |
data_file.csv |
Dataset used for the model (must be downloaded separately) |
MALWARE PROJECT.docx |
Full written report |
This project requires a dataset to run the notebook.
📌 Download dataset here:
https://www.kaggle.com/datasets/joebeachcapital/windows-malwares
After downloading, place it inside the project folder as:
/Malware-Project/data_file.csv
Open Colab:
🔗 https://colab.research.google.com/
Upload the notebook:
Malware_comparative_analysis.ipynb
Upload the dataset when prompted.
git clone https://github.com/rootmass56/Malware-Project.git
cd Malware-Projectpip install -r requirements.txtjupyter notebook Malware_comparative_analysis.ipynb| Model | Included |
|---|---|
| Logistic Regression | ✔️ |
| Decision Tree | ✔️ |
| Random Forest | ✔️ |
| Gradient Boosting | ✔️ |
| KNN | ✔️ |
| LightGBM | ✔️ (Best Performance) |
Models were evaluated using:
- Accuracy
- Precision
- Recall
- F1-Score
📌 LightGBM achieved the highest performance and was the most reliable in detecting malware accurately.
The project requires the following Python packages:
pandas
numpy
scikit-learn
matplotlib
seaborn
scipy
joblib
lightgbm
A requirements.txt file is included for quick installation.
This project is intended strictly for research and educational purposes.
Commercial use is not allowed without explicit permission.
If you use this project in research, publications, or academic work, please cite it as:
@software{karpuram2025malware,
author = {Saketh Karpuram},
title = {Malware Detection Using Hybrid Static and Dynamic Features},
year = {2025},
url = {https://github.com/rootmass56/Malware-Project},
note = {Machine Learning Malware Detection Project},
}
## 👤 Author
**Saketh Karpuram**
🔗 GitHub: https://github.com/rootmass56
---
⭐ **If this project helped you, please consider giving it a STAR on GitHub!**