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

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.

Authors

Publication Details

Journal
Jurnal Riset Multidisiplin Edukasi
Published
2026-11-29
DOI
https://doi.org/10.71282/jurmie.v3i11.2775
Primary Topic
Spam and Phishing Detection
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

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

Khairuddin Nasution, Darjat Saripurna, Alma Werdi Mora Hutasuhut
Jurnal Riset Multidisiplin Edukasi
Spam and Phishing Detection
article

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

Khairuddin Nasution, Darjat Saripurna, Alma Werdi Mora Hutasuhut
article en

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.

Jurnal Riset Multidisiplin Edukasi
Spam and Phishing Detection
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon