Deteksi URL phishing menggunakan kombinasi model XGBoost dan Random Forest
DOI:
https://doi.org/10.24246/aiti.v23i3.363-377Keywords:
phising, URL, XGBoost, Random Forest, ensemble learningAbstract
Phishing is one form of cyber attack in today's digital era. This attack uses manipulation techniques to deceive users, so that they unknowingly disclose sensitive data through fake websites that mimic the appearance of official websites. Detecting phishing URLs is an important step in improving cyber security and reducing user losses. This study uses an ensemble learning approach by combining two models, Extreme Gradient Boosting (XGBoost) and Random Forest, into one combined model. Both models were trained using a dataset consisting of 11,430 URLs, divided equally between phishing and legitimate classes. The model was tested using accuracy, precision, recall, and F1-score metrics. The results of the experiment show that the combined XGBoost and Random Forest model produced the highest accuracy, at 0.944. This is superior to the single XGBoost (0.942) and Random Forest (0.928) models. These findings reinforce the evidence that the ensemble approach provides better generalization than single models for phishing detection.
Downloads
Metrics
References
L. Bitomsky, O. Bürger, B. Häckel, and J. Töppel, “Value of data meets IT security – assessing IT security risks in data-driven value chains,” Electronic Markets, vol. 30, no. 3, pp. 589–605, Sep. 2020, doi: 10.1007/s12525-019-00383-6. DOI: https://doi.org/10.1007/s12525-019-00383-6
A. A. Orunsolu, A. S. Sodiya, and A. T. Akinwale, “A predictive model for phishing detection,” Journal of King Saud University - Computer and Information Sciences, vol. 34, no. 2, pp. 232–247, Feb. 2022, doi: 10.1016/j.jksuci.2019.12.005. DOI: https://doi.org/10.1016/j.jksuci.2019.12.005
M. K. Prabakaran, P. Meenakshi Sundaram, and A. D. Chandrasekar, “An enhanced deep learning-based phishing detection mechanism to effectively identify malicious URLs using variational autoencoders,” IET Inf Secur, vol. 17, no. 3, pp. 423–440, May 2023, doi: 10.1049/ise2.12106. DOI: https://doi.org/10.1049/ise2.12106
Z. Zhang, L. Zhang, Z. Zhang, G. Hong, Y. Zhang, and M. Yang, “Misdirection of Trust: Demystifying the Abuse of Dedicated URL Shortening Service,” Internet Society, Mar. 2025. doi: 10.14722/ndss.2025.230927.. DOI: https://doi.org/10.14722/ndss.2025.230927
S. Kavya and D. Sumathi, “Multimodal and Temporal Graph Fusion Framework for Advanced Phishing Website Detection,” IEEE Access, vol. 13, pp. 74128–74146, 2025, doi: 10.1109/ACCESS.2025.3564530. DOI: https://doi.org/10.1109/ACCESS.2025.3564530
R. Alazaidah et al., “Website Phishing Detection Using Machine Learning Techniques,” J Stat Appl Probab, vol. 13, no. 1, pp. 119–129, Jan. 2024, doi: 10.18576/jsap/130108. DOI: https://doi.org/10.18576/jsap/130108
T. Kumaresan, V. Eswaramoorthy, V. Kavitha, N. B. U, P. B, and V. R, “Phishing URL Detection using Machine Learning,” in 2025 5th International Conference on Pervasive Computing and Social Networking (ICPCSN), 2025, pp. 1546–1551. doi: 10.1109/ICPCSN65854.2025.11035429. DOI: https://doi.org/10.1109/ICPCSN65854.2025.11035429
R. Natras, B. Soja, and M. Schmidt, “Ensemble Machine Learning of Random Forest, AdaBoost and XGBoost for Vertical Total Electron Content Forecasting,” Remote Sens (Basel), vol. 14, no. 15, Aug. 2022, doi: 10.3390/rs14153547. DOI: https://doi.org/10.3390/rs14153547
M. Mujahid et al., “Data oversampling and imbalanced datasets: an investigation of performance for machine learning and feature engineering,” J Big Data, vol. 11, no. 1, Dec. 2024, doi: 10.1186/s40537-024-00943-4. DOI: https://doi.org/10.1186/s40537-024-00943-4
Y. Ari Kustiawan and K. I. Ghauth, “Evaluating the Impact of Feature Engineering in Phishing URL Detection: A Comparative Study of URL, HTML, and Derived Features,” IEEE Access, vol. 13, pp. 126756–126768, 2025, doi: 10.1109/ACCESS.2025.3579223. DOI: https://doi.org/10.1109/ACCESS.2025.3579223
A. Aljofey, Q. Jiang, Q. Qu, M. Huang, and J. P. Niyigena, “An effective phishing detection model based on character level convolutional neural network from URL,” Electronics (Switzerland), vol. 9, no. 9, pp. 1–24, Sep. 2020, doi: 10.3390/electronics9091514. DOI: https://doi.org/10.3390/electronics9091514
S. Szeghalmy and A. Fazekas, “A Comparative Study of the Use of Stratified Cross-Validation and Distribution-Balanced Stratified Cross-Validation in Imbalanced Learning,” Sensors, vol. 23, no. 4, Feb. 2023, doi: 10.3390/s23042333. DOI: https://doi.org/10.3390/s23042333
J. A. Sáez and J. L. Romero-Béjar, “Impact of Regressand Stratification in Dataset Shift Caused by Cross-Validation,” Mathematics, vol. 10, no. 14, Jul. 2022, doi: 10.3390/math10142538. DOI: https://doi.org/10.3390/math10142538
A. K. Putri, J. Wiratama, S. A. Sanjaya, S. F. Wijaya, M. E. Johan, and A. Faza, “Web URLs Phishing Detection Model with Random Forest Algorithm,” in 2024 5th International Conference on Big Data Analytics and Practices (IBDAP), 2024, pp. 1–5. doi: 10.1109/IBDAP62940.2024.10689685. DOI: https://doi.org/10.1109/IBDAP62940.2024.10689685
M. riki Atsauri, H. Mawengkang, and S. Efendi, “Enhancing Unbalanced Data Classification with Cross-Validation and Extreme Gradient Boosting: A Comprehensive Analysis,” Journal of Informatics and Telecommunication Engineering, vol. 7, no. 1, pp. 30–42, Jul. 2023, doi: 10.31289/jite.v7i1.8690. DOI: https://doi.org/10.31289/jite.v7i1.8690
X. Miao, L. Liu, Z. Wang, and X. Chen, “Improved Error-Based Ensemble Learning Model for Compressor Performance Parameter Prediction,” Energies (Basel), vol. 17, no. 9, May 2024, doi: 10.3390/en17092113. DOI: https://doi.org/10.3390/en17092113
H. Chen, N. Wang, X. Du, K. Mei, Y. Zhou, and G. Cai, “Classification Prediction of Breast Cancer Based on Machine Learning,” Comput Intell Neurosci, vol. 2023, no. 1, Jan. 2023, doi: 10.1155/2023/6530719. DOI: https://doi.org/10.1155/2023/6530719
B. Shannaq, O. Ali, S. Al Maqbali, and A. Al-Zeidi, “Advancing user classification models: A comparative analysis of machine learning approaches to enhance faculty password policies at the University of Buraimi,” Journal of Infrastructure, Policy and Development, vol. 8, no. 13, p. 9311, Nov. 2024, doi: 10.24294/jipd9311. DOI: https://doi.org/10.24294/jipd9311
H. Dong, R. Liu, and A. W. Tham, “Accuracy Comparison between Five Machine Learning Algorithms for Financial Risk Evaluation,” Journal of Risk and Financial Management, vol. 17, no. 2, Feb. 2024, doi: 10.3390/jrfm17020050. DOI: https://doi.org/10.3390/jrfm17020050
Jude Chukwura Obi, “A comparative study of several classification metrics and their performances on data,” World Journal of Advanced Engineering Technology and Sciences, vol. 8, no. 1, pp. 308–314, Feb. 2023, doi: 10.30574/wjaets.2023.8.1.0054. DOI: https://doi.org/10.30574/wjaets.2023.8.1.0054
M. W. Shaukat, R. Amin, M. M. A. Muslam, A. H. Alshehri, and J. Xie, “A Hybrid Approach for Alluring Ads Phishing Attack Detection Using Machine Learning,” Sensors, vol. 23, no. 19, Oct. 2023, doi: 10.3390/s23198070. DOI: https://doi.org/10.3390/s23198070
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 AITI

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

All articles published in AITI: Jurnal Teknologi Informasi is licensed under a Creative Commons Attribution 4.0 International License.













