Jurnal Riset Multidisiplin Edukasi
Vol. 3 No. 11 (2026): Jurnal Riset Multidisiplin Edukasi (November 2026)

IMPLEMENTASI ALGORITMA DECISION TREE DAN RANDOM FOREST PADA SISTEM DETEKSI PHISHING URL REAL-TIME BERBASIS WEB

Alma Werdi Mora Hutasuhut (Universitas Islam Sumatera Utara, Medan, Indonesia)
Khairuddin Nasution (Universitas Islam Sumatera Utara, Medan, Indonesia)
Darjat Saripurna (STMIK Triguna Dharma)



Article Info

Publish Date
29 Nov 2026

Abstract

Phishing is one of the most common cybersecurity threats because it uses fake URLs to steal users’ sensitive information. This study aims to implement the Random Forest algorithm in a web-based, real-time phishing URL detection system, with a Decision Tree as the baseline model for comparison. The dataset used is PhreshPhish from Hugging Face, which contains URLs labeled as phishing or benign. The research stages include data preprocessing, feature extraction from URLs, splitting the data into training and test sets, and training both models. To address class imbalance, both models use class weighting. The Decision Tree was trained with a max_depth of 22 and a min_samples_leaf of 5, while the Random Forest was trained with 150 trees, unlimited depth, a min_samples_leaf of 3, and class_weight set to balanced_subsample. Model performance was evaluated using accuracy, precision, recall, and F1-score. The test results show that the Random Forest achieved an accuracy of 91.59% and an F1-score of 90.20%, higher than the Decision Tree, which achieved an accuracy of 91.26% and an F1-score of 89.88%. Based on these results, the Random Forest was selected as the model deployed in the system. The model is integrated into a browser extension that checks the URL being visited and warns the user before the page is fully loaded in the browser. Thus, the developed system has the potential to serve as an additional layer of protection for users against phishing attacks while browsing the internet.

Copyrights © 2026






Journal Info

Abbrev

jurmie

Publisher

Subject

Other

Description

Jurnal Riset Multidisiplin Edukasi adalah jurnal peer-review yang bertujuan untuk memfasilitasi pertukaran pengetahuan dan ide-ide inovatif di antara para peneliti, akademisi, dan praktisi dari berbagai disiplin ilmu. Kami menerima kontribusi ilmiah dalam bentuk artikel penelitian, tinjauan pustaka, ...