Reassessing Machine Learning for Phishing Email Detection: Data Leakage, Cross-Dataset Performance, and False Positives
Benjamin Craven, Maria Chano, Thaier Hayajneh
Key points
From the paper's conclusion- These results show why phishing evaluations should report recall and false positives on other corpora alongside within-corpus F1.
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.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Cross-model evaluation of phishing detectors against LLM-generated emails.Frontiers in big data · 2026
- Benchmark Shortcuts and Append Robustness in Phishing Detection: Evidence from University Scam EmailsInformation · 2026
- EdgeGuard: Source-aware robustness and edge-feasibility evaluation of lightweight email phishing detectors under cross-LLM generated attacksJournal of King Saud University Computer and Information Sciences · 2026
- Robust Explainable and Calibrated Machine Learning for Phishing URL Detection under Constrained Feature PerturbationsIJAICET - International Journal of Artificial Intelligence Cybersecurity and Emerging Technologies · 2026
- Phishing Email Detection Using BERT and RoBERTaComputation · 2026
- Deep learning-based phishing classification framework for accurate detection using optimized URL intelligenceScientific Reports · 2026