Classifying Malicious Websites Using Machine Learning Algorithms

PDF (1674KB), PP.307-329

Views: 0 Downloads: 0

Author(s)

Ayedh abdulaziz Mohsen 1,2,* Salah AL-Hagree 1,2 Nashwan Ahmed Al-Majmar 1,2 Rashed Ali Ahmed Al-Shaebi 1,2 Somia Noaman 1,2

1. Department of Computer Science and IT, IBB University, Yemen

2. Department of Computers, Aljazeera University, Yemen

* Corresponding author.

DOI: https://doi.org/10.5815/ijem.2026.06.16

Received: 5 Jun. 2026 / Revised: 2 Jul. 2026 / Accepted: 7 Aug. 2026 / Published: 8 Dec. 2026

Index Terms

Machine Learning, Cybersecurity, Malicious Website, Classification, VirusTotal

Abstract

The classification of websites and the identification of malicious websites are crucial. As web applications are used and relied upon more frequently, cyberattacks targeting them are becoming more frequent, making their protection crucial. If an attack is successful, services may be interrupted, and private information may be stolen. The goal of this study was to create a system that can effectively classify malicious websites using cutting-edge machine learning (ML) tools. Information was gathered from 321 websites, 259 of which were benign and 62 were malicious. Ten distinct ML algorithms were used, considering classification efficiency. According to the results, Random Forest had the highest accuracy (98.4%), precision (99%), recall (98%), F1-score (98%). The findings also showed that, across most model types, the Age of Domain feature was the most useful feature for classification. Strong relationships between traits, such as the inverse relationship between VirusTotalReputation and VirusTotalMalicious, were revealed in the correlation heatmap. In addition, this study offers an integrated system for identifying fraudulent websites that includes intelligent website classification and a thorough analysis of security features. Error management, result caching, and multi-threaded processing (VirusTotal + WHOIS) all enhance system performance.

Cite This Paper

Ayedh Abdulaziz Mohsen, Salah AL-Hagree, Nashwan Ahmed Al-Majmar, Rashed Ali Ahmed Al-Shaebi, Somia Noaman, "Classifying Malicious Websites Using Machine Learning Algorithms", International Journal of Engineering and Manufacturing (IJEM), Vol.16, No.6, pp.307-329, 2026. DOI:10.5815/ijem.2026.06.16

Reference

[1]Al Hwaitat, A. K., Fakhouri, H. N., Alawida, M., Atoum, M. S., Abu-Salih, B., Salah, I. K.,  & Alassaf, N. (2024). Overview of Mobile Attack Detection and Prevention Techniques Using Machine Learning. International Journal of Interactive Mobile Technologies, 18(10),doi: https://doi.org/10.3991/ijim.v18i10.46485.
[2]Ozkan-Okay, M., Akin, E., Aslan, Ö., Kosunalp, S., Iliev, T., Stoyanov, I., & Beloev, I. (2024). A comprehensive survey: Evaluating the efficiency of artificial intelligence and machine learning techniques on cyber security solutions. IEEe Access, 12, 12229-12256, DOI: https://doi.org/10.1109/ACCESS.2024.3355547.‏
[3]Ayeni, R. K., Adebiyi, A. A., Okesola, J. O., & Igbekele, E. (2024, April). Phishing attacks and detection techniques: A systematic review. In 2024 International Conference on Science, Engineering and Business for Driving Sustainable Development Goals (SEB4SDG) (pp. 1-17). IEEE, DOI: https://doi.org/10.1109/SEB4SDG60871.2024.10630203.‏
[4]Reyes-Dorta, N., Caballero-Gil, P., & Rosa-Remedios, C. (2024). Detection of malicious URLs using    machine learning. Wireless Networks, 30, 7543–7560, doi: https://doi.org/10.1007/s11276-024-03700-w.
[5]Hannousse, A., & Yahiouche, S. (2021). Towards benchmark datasets for machine learning based website phishing detection: An experimental study. Engineering Applications of Artificial Intelligence, 104, 104347 doi: https://doi.org/10.1016/j.engappai.2021.104347   
[6]Prince, M. S. M., Hasan, A., & Shah, F. M. (2021, April). A new ensemble model for phishing detection based on hybrid cumulative feature selection. In 2021 IEEE 11th IEEE Symposium on Computer Applications & Industrial Electronics (ISCAIE) (pp. 7-12). IEEE.‏, doi: https://doi.org/10.1109/ISCAIE51753.2021.9431782.
[7]Krishnan, S., & Naik S, M. (2025). An Efficient Framework for Phishing URL Detection Using Adaptive Drift‐Aware Feature Monitoring and Online Learning. Security and Privacy, 8(4), e70057, https://doi.org/10.1002/spy2.70057.
[8]Elsheh, M. M., & Swayeb, K. (2023, May). Phishing website detection using a hybrid approach based on support vector machine and ant colony optimization. In 2023 IEEE 3rd International Maghreb Meeting of the Conference on Sciences and Techniques of Automatic Control and Computer Engineering (MI-STA) (pp. 402-406). IEEE.‏,doi: https://doi.org/10.1109/MI-STA57575.2023.10169464.
[9]Zhang, L., & Zhang, P. (2020, October). PhishTrim: Fast and adaptive phishing detection based on deep representation learning. In 2020 IEEE International Conference on Web Services (ICWS) (pp. 176-180). IEEE.‏ doi: 10.1109/ICWS49710.2020.00030.
[10]Mahesh, Ananth, Dheepthi, editors. Using Machine Learning to Detect and Classify URLs: A Phishing Detection Approach. 2023 4th International Conference on Electronics and Sustainable Communication Systems (ICESC); 2023: IEEE.doi: 10.1109/ICESC57686.2023.10193559.
[11]Bat-Erdene, M., Buyantur, O., Batbayar, D. et al. Detecting Malicious URLs Using Machine Learning. J. Electr. Eng. Technol. 20, 4537–4550 (2025), https://doi.org/10.1007/s42835-025-02282-7.
[12]Ramana A, Rao KL, Rao RS. Stop-Phish: an intelligent phishing detection method using feature selection ensemble. Social Network analysis and mining. 2021;11(1), doi: https://doi.org/10.1007/s13278-021-00829-w.
[13]R. Choutapally and T. Das, "Web-Based Machine Learning Framework for Phishing URL Detection and Analysis," 2025 IEEE Conference on Artificial Intelligence (CAI), Santa Clara, CA, USA, 2025, pp. 970-975, doi: https://doi.org/10.1109/CAI64502.2025.00170.
[14]Pandey, A., Gill, N., Sai Prasad Nadendla, K., Thaseen, I.S. (2020). Identification of Phishing Attack in Websites Using Random Forest-SVM Hybrid Model. In: Abraham, A., Cherukuri, A., Melin, P., Gandhi, N. (eds) Intelligent Systems Design and Applications. ISDA 2018 2018. Advances in Intelligent Systems and Computing, vol 941. Springer, Cham. https://doi.org/10.1007/978-3-030-16660-1_12.
[15]A. A. Alhemyari, Z. A. A. Hassan, M. A. Saeed, R. A. M. Alselwi and R. A. Alhemyari, "Real-Time Phishing Attack Detection Using Machine Learning," 2025 5th International Conference on Emerging Smart Technologies and Applications (eSmarTA), Ibb, Yemen, 2025, pp. 1-8, doi: 10.1109/eSmarTA66764.2025.11132204.
[16]Kalabarige LR, Rao RS, Abraham A, Gabralla LA. Multilayer stacked ensemble learning model to detect phishing websites. IEEE Access. 2022; 10:79543-52, doi:10.1109/ACCESS.2022.3194672.  
[17]Aslam S, Aslam H, Manzoor A, Chen H, Rasool A. AntiPhishStack: LSTM-Based Stacked Generalization Model for Optimized Phishing URL Detection. Symmetry. 2024;16(2):248. https://doi.org/10.3390/sym16020248
[18]Munaye, Y. Y., et al. (2025). Effective Detection of Malicious URLs Using Deep-Learning Techniques. Algorithms, 18(6), 355.
[19]Zheng, F.; Yan, Q.; Leung, V.C.; Yu, F.R.; Ming, Z. HDP-CNN: Highway deep pyramid convolution neural network combining word-level and character-level representations for phishing website detection. Comput. Secur. 2022, 114, 102584, https://doi.org/10.1016/j.cose.2021.102584. 
[20]Ramos Júnior, L.S.; Macêdo, D.; Oliveira, A.L.I.; Zanchettin, C. LogBERT-BiLSTM: Detecting malicious web requests. In Artificial Neural Networks and Machine Learning—ICANN 2022; Springer: Berlin/Heidelberg, Germany, 2022; pp. 704–715, https://doi.org/10.1007/978-3-031-15934-3_58. 
[21]Yuan, L.; Zeng, Z.; Lu, Y.; Ou, X.; Feng, T. A character-level BiGRU-attention for phishing classification. In Proceedings of the Information and Communications Security: 21st International Conference, ICICS 2019, Beijing, China, 15–17 December 2019; Springer: Berlin/Heidelberg, Germany, 2020; pp. 746–762, https://doi.org/10.1007/978-3-030-41579-2_43.
[22]Aljabri, M., Alhaidari, F., Mohammad, R.M.A., Mirza, S.; Alhamed, D.H.; Altamimi, H.S., Chrouf, S.M.B. An Assessment of Lexical, Network, and Content-Based Features for Detecting Malicious URLs Using Machine Learning and Deep Learning Models. Comput. Intell. Neurosci. 2022, 2022, 3241216, https://doi.org/10.1155/2022/3241216.
[23]Yuan, J., Liu, Y., & Yu, L. (2021). A novel approach for malicious URL detection based on the joint model. Security and Communication Networks, 2021(1), 4917016.‏ https://doi.org/10.1155/2021/4917016. 
[24]Shrivastava, T., Bhatt, S., Roy, N. R., & Bhasney, A. (2022, December). Phishing url detection using machine learning: A survey. In 2022 4th International Conference on Advances in Computing, Communication Control and Networking (ICAC3N) (pp. 1992-1997). IEEE., 10.1109/ICAC3N56670.2022.10074337. 
[25]Manyumwa, T., Chapita, P. F., Wu, H., & Ji, S. (2020, December). Towards fighting cybercrime: Malicious URL attack type detection using multiclass classification. In 2020 IEEE international conference on big data (Big Data) (pp. 1813-1822). IEEE,doi: 10.1109/BigData50022.2020.9378029. 
[26]Su, M. Y., & Su, K. L. (2023). Bert-based approaches to identifying malicious urls. Sensors, 23(20), 8499, https://doi.org/10.3390/s23208499.