Cross-Dataset Reliability Evaluation of Spanish Phishing-Email Detectors Under Distribution Shift

Phishing filters are usually validated on the same corpus used for development, which can hide severe failures when the email distribution changes. This study evaluates cross-dataset reliability within two independently constructed Spanish email corpora (SpaPhish and SpearPhishMX), quantifies recovery under limited labeled target data, and examines the cost of adaptation to the original domain. TF-IDF Logistic Regression, TF-IDF Linear SVM, BETO, and BERTIN were evaluated through bidirectional zero-shot transfer, 0–20% labeled target adaptation, paired statistical analysis, calibration and leakage controls, sequential full fine-tuning, LoRA, and representation diagnostics. Strong in-domain performance did not translate into cross-dataset reliability: SpaPhish → SpearPhishMX zero-shot F1 fell to 0.4611 for BETO and 0.3770 for BERTIN. Ten percent target supervision recovered about 95% of the improvement observed at 20%. At 20% target-only sequential adaptation, full fine-tuning achieved target F1 = 0.9358 but reduced source F1 to 0.4116. The original LoRA r = 8 configuration retained source F1 = 0.8589 but reached target F1 = 0.7829; increasing the rank to r = 32 raised target F1 to 0.8824 while source F1 fell to 0.3508, revealing a capacity-dependent plasticity–retention trade-off. Reverse transfer also produced systematic score inversion, rather than merely random degradation. These findings are limited to the evaluated corpus pair and architectures, but they show that same-corpus accuracy is an insufficient proxy for deployment reliability. External validation, calibration and error monitoring, explicit source-retention testing, and adaptation-capacity selection should, therefore, accompany deployment.

Authors

Institutions

Publication Details

Journal
Journal of Cybersecurity and Privacy
Published
2026-12-01
DOI
https://doi.org/10.3390/jcp6060213
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

Cross-Dataset Reliability Evaluation of Spanish Phishing-Email Detectors Under Distribution Shift

Manuel J. Ibarra, Leidy Madu Lopez Mamani
Journal of Cybersecurity and Privacy
Spam and Phishing Detection
article

Cross-Dataset Reliability Evaluation of Spanish Phishing-Email Detectors Under Distribution Shift

Manuel J. Ibarra, Leidy Madu Lopez Mamani
article en

Abstract

Phishing filters are usually validated on the same corpus used for development, which can hide severe failures when the email distribution changes. This study evaluates cross-dataset reliability within two independently constructed Spanish email corpora (SpaPhish and SpearPhishMX), quantifies recovery under limited labeled target data, and examines the cost of adaptation to the original domain. TF-IDF Logistic Regression, TF-IDF Linear SVM, BETO, and BERTIN were evaluated through bidirectional zero-shot transfer, 0–20% labeled target adaptation, paired statistical analysis, calibration and leakage controls, sequential full fine-tuning, LoRA, and representation diagnostics. Strong in-domain performance did not translate into cross-dataset reliability: SpaPhish → SpearPhishMX zero-shot F1 fell to 0.4611 for BETO and 0.3770 for BERTIN. Ten percent target supervision recovered about 95% of the improvement observed at 20%. At 20% target-only sequential adaptation, full fine-tuning achieved target F1 = 0.9358 but reduced source F1 to 0.4116. The original LoRA r = 8 configuration retained source F1 = 0.8589 but reached target F1 = 0.7829; increasing the rank to r = 32 raised target F1 to 0.8824 while source F1 fell to 0.3508, revealing a capacity-dependent plasticity–retention trade-off. Reverse transfer also produced systematic score inversion, rather than merely random degradation. These findings are limited to the evaluated corpus pair and architectures, but they show that same-corpus accuracy is an insufficient proxy for deployment reliability. External validation, calibration and error monitoring, explicit source-retention testing, and adaptation-capacity selection should, therefore, accompany deployment.

Journal of Cybersecurity and PrivacyVol. 6(6)
Universidad Nacional Micaela Bastidas de Apurimac (PE), Universidad Nacional del Altiplano (PE)
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
Cross-Dataset Reliability Evaluation of Spanish Phishing-Email Detectors Under Distribution Shift — Manuel J. Ibarra, Leidy Madu Lopez Mamani · Journal of Cybersecurity and Privacy (2026) | TGRS Research Map | TGRS