Beyond Benchmark Accuracy: A Hybrid Framework for Phishing URL and Email Detection

Phishing detectors can achieve almost perfect accuracy on benchmark datasets and still struggle with the links people encounter in practice. This paper investigates that gap and describes a hybrid framework for assessing URLs and emails through machine learning, language analysis, header inspection, and transparent rules. Our URL model combines character-level TF-IDF with 17 lexical features in a logistic regression classifier. Analysis of the 235,795 URLs in PhiUSIIL revealed pronounced differences in how the two classes were represented: every legitimate example used a simple HTTPS domain format, while 59.9% of phishing URLs included a path and 51.3% used HTTP. A classifier trained on raw URLs achieved 99.71% test accuracy, yet incorrectly marked 26 of 30 ordinary legitimate links as phishing. To limit reliance on these patterns, we trained a second classifier on 197,591 unique registered domains. On held-out domains, it achieved 86.02% accuracy, a ROC-AUC of 0.892, and 89.02% phishing precision. We then combined its predictions with URL-pattern checks, NLTK-based email cues, and SPF, DKIM, and DMARC evidence in a Flask prototype that reports a risk score and supporting reasons. The results show why dataset composition and realistic tests matter as much as headline accuracy when evaluating phishing detection.

Authors

Publication Details

Journal
Preprints.org
Published
2026-11-04
DOI
https://doi.org/10.20944/preprints202611.0290.v1
Primary Topic
Spam and Phishing Detection
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
preprint

Beyond Benchmark Accuracy: A Hybrid Framework for Phishing URL and Email Detection

Ahmed Abdelrahman
Preprints.org
Spam and Phishing Detection
preprint

Beyond Benchmark Accuracy: A Hybrid Framework for Phishing URL and Email Detection

Ahmed Abdelrahman
preprint en

Abstract

Phishing detectors can achieve almost perfect accuracy on benchmark datasets and still struggle with the links people encounter in practice. This paper investigates that gap and describes a hybrid framework for assessing URLs and emails through machine learning, language analysis, header inspection, and transparent rules. Our URL model combines character-level TF-IDF with 17 lexical features in a logistic regression classifier. Analysis of the 235,795 URLs in PhiUSIIL revealed pronounced differences in how the two classes were represented: every legitimate example used a simple HTTPS domain format, while 59.9% of phishing URLs included a path and 51.3% used HTTP. A classifier trained on raw URLs achieved 99.71% test accuracy, yet incorrectly marked 26 of 30 ordinary legitimate links as phishing. To limit reliance on these patterns, we trained a second classifier on 197,591 unique registered domains. On held-out domains, it achieved 86.02% accuracy, a ROC-AUC of 0.892, and 89.02% phishing precision. We then combined its predictions with URL-pattern checks, NLTK-based email cues, and SPF, DKIM, and DMARC evidence in a Flask prototype that reports a risk score and supporting reasons. The results show why dataset composition and realistic tests matter as much as headline accuracy when evaluating phishing detection.

Preprints.org
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