Reassessing Machine Learning for Phishing Email Detection: Data Leakage, Cross-Dataset Performance, and False Positives

Strong performance on a familiar email dataset can overstate how well a phishing detector handles other mail. We audited a public corpus of 18,650 labeled emails and found that 419 messages in the original test set (6.81%) also appeared in training. Removing empty entries and duplicates left 17,513 messages. We compared four classifiers based on term frequency–inverse document frequency with four fine-tuned transformers. We used three seeded train, validation, and test partitions and trained with either the original class proportions or an equal number of examples per class. Validation data guided model and threshold selection. We tested the selected models on held-out messages and on 11,502 synthetic emails labeled as English in E-PhishLLM. RoBERTa’s mean F1 fell from 98.56% on the primary test sets to 62.56% on E-PhishLLM. Multinomial naive Bayes had the highest mean F1 on that challenge (72.57%). In a separate exploratory comparison, Qwen3-4B flagged one of 5506 legitimate emails on E-PhishLLM and detected 53.64% of the phishing emails. For 15 of 16 model and training settings, mean false-positive rates on E-PhishLLM exceeded the 1% validation cap. These results show why phishing evaluations should report recall and false positives on other corpora alongside within-corpus F1.

Authors

Institutions

Publication Details

Journal
Future Internet
Published
2026-11-26
DOI
https://doi.org/10.3390/fi18120653
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

Reassessing Machine Learning for Phishing Email Detection: Data Leakage, Cross-Dataset Performance, and False Positives

Thaier S. Hayajneh, Maria Chano, Benjamin Craven
Future Internet
Spam and Phishing Detection
article

Reassessing Machine Learning for Phishing Email Detection: Data Leakage, Cross-Dataset Performance, and False Positives

Thaier S. Hayajneh, Maria Chano, Benjamin Craven
article en

Abstract

Strong performance on a familiar email dataset can overstate how well a phishing detector handles other mail. We audited a public corpus of 18,650 labeled emails and found that 419 messages in the original test set (6.81%) also appeared in training. Removing empty entries and duplicates left 17,513 messages. We compared four classifiers based on term frequency–inverse document frequency with four fine-tuned transformers. We used three seeded train, validation, and test partitions and trained with either the original class proportions or an equal number of examples per class. Validation data guided model and threshold selection. We tested the selected models on held-out messages and on 11,502 synthetic emails labeled as English in E-PhishLLM. RoBERTa’s mean F1 fell from 98.56% on the primary test sets to 62.56% on E-PhishLLM. Multinomial naive Bayes had the highest mean F1 on that challenge (72.57%). In a separate exploratory comparison, Qwen3-4B flagged one of 5506 legitimate emails on E-PhishLLM and detected 53.64% of the phishing emails. For 15 of 16 model and training settings, mean false-positive rates on E-PhishLLM exceeded the 1% validation cap. These results show why phishing evaluations should report recall and false positives on other corpora alongside within-corpus F1.

Future InternetVol. 18(12)
Fordham University (US), Guttman Community College (US)
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