Skip to content
Open access

Machine Learning-Based Malware Detection: A Comparative Study of Random Forest, Decision Tree, KNN, and Linear SVM

Aug 2026 · American Journal of Agricultural Science, Engineering and Technology · 0 citations · 15 references

TL;DR

Random Forest achieves the highest performance with a test accuracy of 96.3%, F1-score of 0.947, and AUC of 0.993, establishing it as the optimal algorithm for static malware detection tasks and establishing it as the optimal algorithm for static malware detection tasks.

Abstract

The growing prevalence of malware presents a critical threat to cybersecurity, causing substantial financial and operational damage to organizations worldwide. Traditional signature-based detection approaches are increasingly insufficient against polymorphic and zero-day threats. This paper presents a comprehensive comparative study of four machine learning (ML) algorithms — Random Forest (RF), Decision Tree (DT), K-Nearest Neighbor (KNN), and Linear Support Vector Machine (SVM) — for malware detection using static feature analysis on Portable Executable (PE) files. Experiments were conducted on a combined dataset derived from Drebin-215 and Malgenome-215 containing 18,830 instances with 208 features. A stratified 10-fold cross-validation with GridSearch CV hyperparameter tuning was employed. Evaluation metrics include accuracy, precision, recall, F1-score, and Area Under the ROC Curve (AUC). Results demonstrate that Random Forest achieves the highest performance with a test accuracy of 96.3%, F1-score of 0.947, and AUC of 0.993, outperforming all other classifiers and establishing it as the optimal algorithm for static malware detection tasks.

Read PDF

Similar papers

Open access 2026

Large-Scale Static Malware Detection Using Classical Machine Learning Models: An Evaluation on the EMBER Dataset

The results suggest that well-designed classical ensemble approaches are still quite competitive for scalable and interpretable static malware detection even with the rising usage of more and more powerful machine learning architectures.

A. Fauzan, Tito Pinandita, Aulia Desy Nur Utomo · 0 citations
Conference Jul 2026

A Comparative Analysis of Machine Learning and Deep Learning Methods for Malware Detection in Portable Executable Files

Malware severely threatens cybersecurity through Portable Executable (PE) files. In this study, the performances of machine learning and deep learning models for malware detection are compared using static analysis features extracted from PE files. Tree-based ensemble models like Random Forest, XGBoost, LightGBM, and C...

Gokay Mutlu, Neşe Rihani, E. Bayazit · 0 citations
Open access 2026

Explainable AI for Malware Detection: Feature Importance Analysis Using SHAP and Machine Learning

A machine learning-based malware detection framework using features extracted from Windows Portable Executable (PE) files is presented and the SHAP-based feature importance approach helps identify the most influential features responsible for malware detection while also reducing model complexity and computational cost...

Balachandra Chikkoppa, H. J. · 0 citations
Open access Jul 2026

AI-Based Adaptive Malware Detection Using Portable Executable (PE) Header Analysis and Hybrid Machine Learning

Experimental results demonstrate that the proposed approach achieves high classification performance while improving transparency in malware detection decisions, making it suitable for practical cybersecurity applications.

V. Padmapriya, S. Uma, S. Sumathi et al. · 0 citations
Review Open access Aug 2026

A Comparative Evaluation of Malware Families and Machine-Learning Detection Techniques, and an Optimized Stacked-Ensemble Model for Predicting Software Maliciousness

An efficient stacked-ensemble model that estimates how likely a given executable is to be malicious and is compared against recent malware research/types are compared and identified for future research work/area.

Deepak Singh Rana, S. Dimri · 0 citations
Open access Jul 2026

A Unified Machine Learning-Based IDS/IPS Framework with Bio-Inspired Feature Selection for Real-Time Detection of Malware-Laden URLs

A unified machine-learning framework for defence against malware-laden URLs, which simultaneously targets intrusion detection and intrusion prevention through module-aware, bio-inspired feature selection through module-aware, bio-inspired feature selection.

Mohammad Sh. Daoud, M. Abualhaj, Sumaya S. Al-Khatib et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.