Malware Detection using the concept of Random Forest Algorithm

Authors

  • DharmendraThapa
  • Hari Narayan Ray Yadav
  • Madhav Dhakal

DOI:

https://doi.org/10.46243/jst.2025.v10.i05.pp38-49

Keywords:

Decision Tree,, Malware Detection,, Machine learning,, Random Forest,

Abstract

Malicious software is abundant in a world of innumerable computer users, who are constantly faced with these threats from
various sources like the internet, local networks and portable drives. Malware is potentially low to high risk and can cause
systems to function incorrectly, steal data and even crash. Malware may be executable or system library files in the form of
viruses, worms, Trojans, all aimed at breaching the security of the system and compromising user privacy. In this study, the
proposed machine learning algorithm is RF algorithm which use Gini index CART algorithm to create multiple decision tree
with majority of the outputs from each decision trees. Here, total 1,38,047 data is collected which contain 96,724 malware and
41,323 legit. RF algorithm achieved 99.54% accuracy during malware detection followed by 99.13% precision, 99.35% recall
and 99.24% f1 score respectively during testing.

References

P. Mell, K. A. Kent, and J. Nusbaum, “Guide to malware incident prevention and handling,” National Institute of Standards and Technology, Gaithersburg, MD, 2005. doi: 10.6028/nist. sp.800-83. DharmendraThapa, Hari Narayan Ray Yadav, Madhav Dhakal: Malware Detection using the concept of Random Forest Algorithm

Khammas, B. M. (2020). Ransomware detection using random forest technique. ICT Express, 6(4), 325-331

Garcia, F. C. C., & Muga II, F. P. (2016). Random forest for malware classification. arXiv preprint arXiv:1609.07770

Sun, J., Yan, K., Liu, X., Yang, C., & Fu, Y. (2017, May). Malware detection on android smartphones using keywords vector and svm. In 2017 IEEE/ACIS 16th International Conference on Computer and Information Science (ICIS) (pp. 833-838). IEEE

Pang, J., & Bian, J. (2019, October). Android malware detection based on naive bayes. In 2019 IEEE 10th International Conference on Software Engineering and Service Science (ICSESS) (pp. 483-486). IEEE

Masum, M., & Shahriar, H. (2019, December). Droid-NNet: Deep learning neural network for android malware detection. In 2019 IEEE International Conference on Big Data (Big Data) (pp. 5789-5793). IEEE

Aboaoja, F. A., Zainal, A., Ghaleb, F. A., Al-rimy, B. A. S., Eisa, T. A. E., & Elnour, A. A. H. (2022). Malware Detection Issues, Challenges, and Future Directions: A Survey. Applied Sciences, 12(17), 8482. https://doi.org/10.3390/ app12178482

Gavrilut, D., Cimpoesu, M., Anton, D., & Ciortuz, L. (2009). Malware Detection Using Machine Learning. 4

Published

2025-05-21

How to Cite

DharmendraThapa, Hari Narayan Ray Yadav, & Madhav Dhakal. (2025). Malware Detection using the concept of Random Forest Algorithm. Journal of Science & Technology , 10(5), 38–49. https://doi.org/10.46243/jst.2025.v10.i05.pp38-49