Perbandingan Metode Random Forest dan Convolutional Neural Network dalam Deteksi Website Phishing pada Lingkungan Universitas XYZ
DOI:
https://doi.org/10.51903/elkom.v19i1.3602Keywords:
Phishing Detection; Random Forest;; Convolutional Neural Network; Machine Learning; EngineeringAbstract
Phishing attacks are a cybersecurity threat often used to steal sensitive user information through fake websites that resemble legitimate sites. Therefore, this study aims to analyze and compare the performance of the Random Forest and Convolutional Neural Network (CNN) algorithms in detecting phishing websites based on Uniform Resource Locator (URL) features. The dataset used was obtained from Web Application Firewall (WAF) security logs on the network infrastructure at XYZ University, which record URL access activities on the web system. The data was then processed and labeled into two categories: phishing and legitimate websites. The dataset used in this study consists of 549,346 URL records. The research stages include data exploration (Exploratory Data Analysis / EDA), URL text preprocessing, character-based feature extraction and URL tokenization, and model training using the Random Forest algorithm and a 1D Convolutional Neural Network (1D-CNN) architecture. Model evaluation was conducted using accuracy, precision, recall, and F1-score metrics as well as confusion matrix analysis. The results showed that the Random Forest model achieved an accuracy of 82.69%, while the 1D-CNN model achieved a higher accuracy of 95.94%. Furthermore, the CNN training process demonstrated a steady increase in accuracy and a decrease in loss values in each epoch. Based on these results, it can be concluded that the deep learning approach using CNN outperforms the Random Forest method in detecting URL-based phishing websites
References
[1] M. R. Fatiha, I. Setiawan, A. N. Ikhsan, and I. R. Yunita, “Optimisasi sistem deteksi phishing berbasis web menggunakan algoritma decision tree,” Jurnal Ilmiah IT CIDA, vol. 10, no. 2, 2024.
[2] D. B. Suwarno and M. Hardjianto, “Deteksi website phishing dari analisis URL menggunakan algoritma Random Forest,” BIT (Fakultas Teknologi Informasi Universitas Budi Luhur), vol. 21, no. 2, 2024.
[3] S. Silcilia, N. P. Salsabila, and T. Apriani, “Analisis performa Random Forest, Decision Tree, dan Naive Bayes untuk deteksi link phishing berbasis fitur URL,” ROUTERS: Jurnal Sistem dan Teknologi Informasi, vol. 4, no. 1, pp. 13–20, 2026.
[4] A. Mughaid, S. AlZu’bi, A. Hnaif, S. Taamneh, A. Alnajjar, and E. A. Elsoud, “An intelligent cyber security phishing detection system using deep learning techniques,” Cluster Computing, 2022, doi: 10.1007/s10586-022-03604-4.
[5] M. Aljabri and A. Alharthi, “Machine learning based phishing detection using URL features,” IEEE Access, vol. 10, pp. 105127–105139, 2022.
[6] M. A. Alshamrani, A. Chowdhary, S. Pisharody, and D. Huang, “Phishing detection using machine learning: A systematic literature review,” IEEE Access, vol. 10, pp. 103564–103586, 2022.
[7] E. P. Ghani, A. Sofwan, and M. Somantri, “AI-driven network security: Detecting and mitigating DDoS, malware, and backdoor attacks with isolation and Random Forest algorithm,” in Proceedings of the International Conference on Smart Computing IoT and Machine Learning, 2025, pp. 1–6.
[8] U. Haresh and P. R. Kumari, “Advanced machine learning framework for robust phishing website identification,” International Journal of Scientific Research and Engineering Trends, vol. 11, no. 3, 2025.
[9] A. Jadhao, L. Mahindre, K. Rahangdale, V. Singh, R. Shipurkar, and U. Kosarkar, “Phish guard: Phishing website detection using machine learning algorithms,” International Journal of Trend in Scientific Research and Development, 2024.
[10] M. S. Kumari, C. K. Priya, G. Bhavya, H. Neha, M. Awasthi, and S. Tripathi, “Viable detection of URL phishing using machine learning approach,” E3S Web of Conferences, vol. 430, 2023, doi: 10.1051/e3sconf/202343001037.
[11] M. Fahri, “Penerapan algoritma Random Forest untuk deteksi phishing pada website,” Jurnal Ilmiah Teknologi Sistem Informasi, 2025.
[12] S. D. Gupta, K. T. Shahriar, H. Alqahtani, D. Alsalman, and I. H. Sarker, “Modeling hybrid feature-based phishing websites detection using machine learning techniques,” Annals of Data Science, 2022, doi: 10.1007/s40745-022-00379-8.
[13] Z. Alshingiti, R. Alaqel, J. Al-Muhtadi, Q. E. Ul Haq, K. Saleem, and M. H. Faheem, “A deep learning-based phishing detection system using CNN, LSTM, and LSTM-CNN,” Electronics, vol. 12, 2023.
[14] H. Abutair and A. Belghith, “Using machine learning to detect phishing attacks in URLs,” Computers & Security, vol. 118, p. 102696, 2022.
[15] M. Zamir, H. Khan, M. I. Khan, M. S. Nisar, M. A. Khan, and S. Kadry, “Phishing website detection using machine learning and deep learning models,” IEEE Access, vol. 8, pp. 132544–132554, 2020.
[16] A. Wijoyo, A. Saputra, A. Aditia, M. R. A. Pratama, and R. Rahman, “Analisis serangan phishing dan strategi deteksinya,” JRIIN: Jurnal Riset Informatika dan Inovasi, vol. 1, no. 4, 2023.
[17] V. Indriani, H. Listiyono, and Saefurrahman, “Deteksi phishing website menggunakan support vector machine, gradient boosting, dan neural networks,” JATI (Jurnal Mahasiswa Teknik Informatika), vol. 9, no. 2, pp. 3107–3113, 2025.
[18] Lukito and W. B. T. Handaya, “Deteksi website phishing menggunakan teknik machine learning,” Jurnal Informatika Atma Jogja, vol. 6, no. 1, pp. 69–80, 2025.
[19] V. A. Windarni, A. F. Nugraha, S. T. A. Ramadhani, D. A. Istiqomah, F. M. Puri, and A. Setiawan, “Deteksi website phishing menggunakan teknik filter pada model machine learning,” Information Systems Journal, vol. 6, no. 1, pp. 39–43, 2023.
[20] N. Azzahra, M. D. Handayani, and A. Aliyah, “Evaluasi kinerja AI berbasis recurrent neural network (RNN) dalam mengidentifikasi ancaman phishing pada URL website,” Bridge: Jurnal Publikasi Sistem Informasi dan Telekomunikasi, vol. 3, no. 3, pp. 15–37, 2025.
[21] E. A. Aldakheel, M. Zakariah, G. A. Gashgari, F. A. Almarshad, and A. I. Alzahrani, “A deep learning-based innovative technique for phishing detection in modern security with uniform resource locators,” Sensors, vol. 23, no. 9, p. 4403, 2023.
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Elkom: Jurnal Elektronika dan Komputer

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.






