AURA: Adaptive Uncertainty-Routed Analysis for Email Threat Detection

arXiv cs.LG Papers

Summary

This paper introduces AURA, a multimodal email threat detection system that uses adaptive uncertainty routing to analyze email content and URLs, achieving robust generalization against evolving adversarial attacks.

arXiv:2609.19873v1 Announce Type: new Abstract: Email spam and phishing attacks remain a critical security threat. Adversaries increasingly exploit large language models to craft contextually convincing malicious messages, and existing spam detection systems often struggle to keep pace. Generalization across diverse and evolving attack scenarios is limited, which reduces effectiveness once these systems are deployed in practice. This paper introduces Adaptive Uncertainty-Routed Analysis (AURA), a multimodal email threat detection system that analyzes both the content of an email and its embedded URLs. AURA is built around two layers: the first quantifies prediction uncertainty from a URL classifier, and only ambiguous messages are escalated to a fine-tuned transformer encoder for semantic analysis. The system is evaluated on eight heterogeneous training corpora together with two held-out real-world corpora spanning a decade of adversarial campaigns. AURA reaches a macro F1-score of 0.9858 in-distribution, and on NazPhish-Eval and GuenterTrap-Eval it maintains 0.9502 and 0.9436, respectively, which is evidence of robust generalization under genuine distribution shift.
Original Article
View Cached Full Text

Cached at: 09/18/26, 09:09 AM

# AURA: Adaptive Uncertainty-Routed Analysis for Email Threat Detection
Source: [https://arxiv.org/html/2609.19873](https://arxiv.org/html/2609.19873)
Omran BerjawiAffiliation:Institut Polytechnique de Paris, Télécom Paris, Palaiseau, FranceE\-mail[\{omran\.berjawi,rida\.khatoun\}@telecom\-paris\.fr](mailto:{omran.berjawi,rida.khatoun}@telecom-paris.fr)Walid fahsAffiliation:Islamic University of Lebanon, Faculty of Engineering, Wardanieh, LebanonE\-mail[walid\.fahs@iul\.edu\.lb](mailto:[email protected])Rida KhatounAffiliation:Institut Polytechnique de Paris, Télécom Paris, Palaiseau, FranceE\-mail[\{omran\.berjawi,rida\.khatoun\}@telecom\-paris\.fr](mailto:{omran.berjawi,rida.khatoun}@telecom-paris.fr)

###### Abstract

Email spam and phishing attacks remain a critical security threat\. Adversaries increasingly exploit large language models to craft contextually convincing malicious messages, and existing spam detection systems often struggle to keep pace\. Generalization across diverse and evolving attack scenarios is limited, which reduces effectiveness once these systems are deployed in practice\. This paper introduces Adaptive Uncertainty\-Routed Analysis \(AURA\), a multimodal email threat detection system that analyzes both the content of an email and its embedded URLs\. AURA is built around two layers: the first quantifies prediction uncertainty from a URL classifier, and only ambiguous messages are escalated to a fine\-tuned transformer encoder for semantic analysis\. The system is evaluated on eight heterogeneous training corpora together with two held\-out real\-world corpora spanning a decade of adversarial campaigns\. AURA reaches a macro F1\-score of0\.98580\.9858in\-distribution, and on NazPhish\-Eval and GuenterTrap\-Eval it maintains0\.95020\.9502and0\.94360\.9436, respectively, which is evidence of robust generalization under genuine distribution shift\.

mail spam detection Phishing detection Adaptive uncertainty routing Multi\-modal classification LoRA fine\-tuning Out\-of\-distribution evaluation Cross\-modal signal fusion

## 1Introduction

Email has become an indispensable communication medium for individuals, businesses, and government organizations\. This makes it a major target for cybercriminals\. A substantial share of global email traffic now consists of unsolicited or malicious messages\. Phishing remains among the most common initial attack vectors \(\[[15](https://arxiv.org/html/2609.19873#bib.bib28)\]\), and the volume of phishing attacks continues to reach record highs \(\[[5](https://arxiv.org/html/2609.19873#bib.bib27)\]\)\. The problem has only worsened with recent advances in large language models \(LLMs\)\. Attackers can now generate highly personalized, context\-aware malicious emails\. These closely resemble legitimate communications and undercut traditional rule\-based and signature\-based filtering\.

Existing detection approaches share three limitations\. Together, they hinder reliable deployment\. Many methods still rely on handcrafted features or static rule\-based mechanisms\. These struggle to keep up with rapidly evolving spam and phishing strategies\. A second problem is that learning\-based approaches tend to focus on just one signal\. They use either the textual semantics of an email or its embedded URL characteristics\(\[[17](https://arxiv.org/html/2609.19873#bib.bib33),[27](https://arxiv.org/html/2609.19873#bib.bib39)\]\)\. This overlooks what the other modality could contribute and narrows detection capability against sophisticated attacks\. Finally, the evaluation itself is often the weak point\. Methods are commonly tested on balanced or carefully curated benchmark datasets\. These do not reflect the distributional shifts and evolving attack patterns found in real email environments\. Reported generalization performance, therefore, tends to look better than it actually is\. Such protocols miss the degradation that shows up at deployment\. Incoming data is temporally and stylistically different from the training distribution because the threat landscape keeps changing\(\[[18](https://arxiv.org/html/2609.19873#bib.bib26)\]\)\. The result is a gap between benchmark numbers and how reliable these systems actually are once deployed, since rigorous out\-of\-distribution \(OOD\) evaluation is rarely performed\.

This paper introducesAURA, theAdaptiveUncertainty\-RoutedAnalysis system, a multi\-modal email threat detection architecture built to address all three limitations above\. Its central mechanism is an Adaptive Uncertainty Router \(AUR\), which quantifies the prediction uncertainty of a lightweight URL classifier through binary entropy and uses that estimate to decide, per email, what happens next\. If the URL\-based classification is confident enough, the system reaches an immediate decision\. If an email contains no URLs at all, it is sent directly to semantic analysis\. And if the signal is genuinely ambiguous, the email is escalated to a fine\-tuned DistilBERT encoder that performs deep semantic analysis with cross\-modal URL risk injection\. The outputs of both analytical stages are then combined through an equal\-weight evidential fusion layer to produce the final classification\.

Experimentally, AURA achieves a macro F1\-score of0\.98580\.9858on the merged in\-distribution test set\. On NazPhish\-Eval and GuenterTrap\-Eval, two corpora derived from real\-world spam honeypots and entirely disjoint from the training distribution, it maintains0\.95020\.9502and0\.94360\.9436\.

The primary contributions of this paper are as follows:

- •A multi\-modal detection framework that unifies URL structural analysis with deep semantic content analysis, invoking transformer inference selectively for ambiguous cases through an entropy\-based routing mechanism\.
- •An out\-of\-distribution evaluation across two temporally diverse real\-world corpora, assessing email threat detection robustness under genuine distribution shift across a decade of evolving adversarial campaigns\.
- •A modular, deployment\-ready architecture in which independently trainable components permit integration with existing email security platforms and straightforward extension with additional detection layers\.

The remainder of this paper is organized as follows\. Section[2](https://arxiv.org/html/2609.19873#S2)surveys related work and positions AURA within it\. Section[3](https://arxiv.org/html/2609.19873#S3)describes the AURA architecture, and Section[4](https://arxiv.org/html/2609.19873#S4)describes the dataset curation methodology\. Section[5](https://arxiv.org/html/2609.19873#S5)presents the experimental configuration; Section[6](https://arxiv.org/html/2609.19873#S6)presents the results\. Section[7](https://arxiv.org/html/2609.19873#S7)details the deployment and system integration\. Section[8](https://arxiv.org/html/2609.19873#S8)and Section[9](https://arxiv.org/html/2609.19873#S9)interpret the findings, limitations, and future work, respectively\. Finally, Section[10](https://arxiv.org/html/2609.19873#S10)concludes the paper\.

## 2Related Work

Email spam and phishing detection have been studied for over two decades\. The literature organises naturally into three thematic clusters\. These are classical and deep learning approaches, transformer and large language model approaches, and URL\-based detection\. A common weakness runs across all three\. Most evaluation protocols rely on in\-distribution testing and do not reflect operational deployment conditions\.

### 2\.1Classical Machine Learning and Deep Learning Approaches

Classical machine learning classifiers established the foundational vocabulary of spam and phishing detection\. These include naïve Bayes, support vector machines, logistic regression, and random forests\(\[[37](https://arxiv.org/html/2609.19873#bib.bib42),[2](https://arxiv.org/html/2609.19873#bib.bib31)\]\)\. Applied to TF\-IDF or bag\-of\-words email representations, these methods consistently achieved high in\-distribution accuracy\. Valecha et al\.\(\[[41](https://arxiv.org/html/2609.19873#bib.bib32)\]\) enriched the feature space with persuasion\-theoretic cues\. These included authority, urgency, and social proof\. This improved over content\-only baselines by55–20%20\\%in F\-score across multiple phishing corpora\. Bountakas and Xenakis\(\[[7](https://arxiv.org/html/2609.19873#bib.bib29)\]\) combined stacking and soft\-voting ensemble strategies\. They achieved F1 =0\.99420\.9942on a large imbalanced phishing dataset\.

The OOD behaviour of these systems is substantially weaker than their in\-distribution figures suggest\. Kshirsagar et al\.\(\[[22](https://arxiv.org/html/2609.19873#bib.bib23)\]\) stacked five ML and five deep learning pipelines into a meta\-learner\. This reached an accuracy of0\.99050\.9905in\-distribution\. Spam sensitivity dropped to0\.89700\.8970on an unseen corpus\. This is one of the few explicit OOD evaluations in the spam detection literature\. Jáñez\-Martino et al\.\(\[[18](https://arxiv.org/html/2609.19873#bib.bib26)\]\) quantified this degradation directly when naïve Bayes and SVM filters trained on standard corpora were evaluated against a strict OOD dataset\.

Deep learning approaches replaced hand\-crafted features with learned representations\. CNN, LSTM, GRU, and their bidirectional variants demonstrated consistent gains over classical classifiers on Enron and SpamAssassin benchmarks\. Hybrid architectures that combine BERT embeddings with CNN and GRU layers further improved performance\(\[[13](https://arxiv.org/html/2609.19873#bib.bib30)\]\)\. Despite these gains, all single\-modal deep learning systems share the same structural limitation\. They process either text or URL features exclusively\. They apply the full inference pipeline to every incoming message regardless of classification difficulty\. They are evaluated almost exclusively under in\-distribution conditions\.

### 2\.2Transformer and Large Language Model Approaches

Pre\-trained transformer models advanced the frontier of phishing email detection through fine\-tuned contextual representations\. This includes BERT and its derivatives\(\[[11](https://arxiv.org/html/2609.19873#bib.bib1),[38](https://arxiv.org/html/2609.19873#bib.bib5),[25](https://arxiv.org/html/2609.19873#bib.bib2)\]\)\. Lee et al\.\(\[[23](https://arxiv.org/html/2609.19873#bib.bib3)\]\) proposed CatBERT, a compressed BERT variant fine\-tuned for social engineering email detection\. "It maintained an 87% detection rate under adversarial keyword\-substitution attacks\. Jamal et al\.\(\[[17](https://arxiv.org/html/2609.19873#bib.bib33)\]\) fine\-tuned DistilBERT and RoBERTa for joint phishing, spam, and ham classification\. They achieved F1 =0\.970\.97–0\.980\.98and showed that parameter\-efficient fine\-tuning can match full\-BERT performance at lower inference cost\. Otieno et al\.\(\[[31](https://arxiv.org/html/2609.19873#bib.bib36)\]\) applied fine\-tuned BERT to binary phishing classification\. They highlighted its sensitivity to adversarial input paraphrasing\.

The proliferation of large language models introduced zero\-shot and instruction\-tuned detection alternatives\(\[[34](https://arxiv.org/html/2609.19873#bib.bib34),[44](https://arxiv.org/html/2609.19873#bib.bib43)\]\)\. Rojas\-Galeano\(\[[33](https://arxiv.org/html/2609.19873#bib.bib37)\]\) showed that GPT\-4 achieves F1 =0\.950\.95and Flan\-T5 achieves F1 =0\.900\.90on SpamAssassin without task\-specific training\. Koide et al\.\(\[[21](https://arxiv.org/html/2609.19873#bib.bib4)\]\) proposed the ChatSpamDetector model, which achieved99\.70%99\.70\\%accuracy on a custom honeypot corpus\. Afane et al\.\(\[[1](https://arxiv.org/html/2609.19873#bib.bib24)\]\) evaluated Gmail, SpamAssassin, Proofpoint, and classical ML classifiers on the Nazario corpus\. The results show that performance degraded markedly on LLM\-paraphrased variants for all detectors\.

Despite strong in\-distribution performance, the systems in this cluster share two persistent weaknesses\. They process email text exclusively and make no use of URL\-structural evidence\. They apply full encoder inference uniformly to every incoming message\. This design is both informationally incomplete and computationally inefficient at scale\(\[[37](https://arxiv.org/html/2609.19873#bib.bib42)\]\)\.

### 2\.3URL\-Based Detection

URL\-based phishing detection is motivated by a simple observation\. Malicious links represent a primary attack vector in phishing campaigns\. Early work applied classical ML to hand\-crafted URL features\. These included token entropy, subdomain depth, domain age, and statistics on special characters \(\[[4](https://arxiv.org/html/2609.19873#bib.bib45),[19](https://arxiv.org/html/2609.19873#bib.bib44),[36](https://arxiv.org/html/2609.19873#bib.bib6)\]\)\.

Pre\-trained transformer models have since been applied directly to URL strings\. Wang et al\.\(\[[43](https://arxiv.org/html/2609.19873#bib.bib35)\]\) proposed a PhishBERT that was pre\-trained on malicious URLs\. This achieved a high accuracy on a held\-out URL test set\. Maneriker et al\.\(\[[27](https://arxiv.org/html/2609.19873#bib.bib39)\]\) proposed URLTran\. This introduced a URL\-specific positional encoding scheme\. It outperformed fine\-tuned BERT and RoBERTa baselines\. Aljofey et al\.\(\[[3](https://arxiv.org/html/2609.19873#bib.bib40)\]\) proposed BERT\-PhishFinder\. This is a DistilBERT\-based URL classifier with optimised tokenisation\. It achieved state\-of\-the\-art results on multiple URL benchmarks\. Sabir et al\.\(\[[35](https://arxiv.org/html/2609.19873#bib.bib41)\]\) investigated the robustness of ML\-based URL detectors through adversarial perturbation analysis\. URL classifiers were shown to be susceptible to inputs crafted to manipulate URL entropy and structural features\. This finding directly motivates the entropy\-based uncertainty quantification in AURA’s Adaptive Uncertainty Router\. A fundamental limitation shared by all URL\-only methods is their inability to detect social engineering attacks\. Phishing content can reside entirely in the message body with no anomalous URL characteristics\. AURA addresses this threat category through conditional semantic analysis\.

### 2\.4Positioning of AURA

The preceding literature reveals a consistent structural pattern\. Existing systems either operate on a single modality, apply deep analysis unconditionally to every incoming message, or evaluate exclusively under in\-distribution conditions\. Multi\-modal architectures combining URL and text signals have been proposed\. These include the hierarchical attention model and the late\-fusion approach of Zhang et al\.\[[45](https://arxiv.org/html/2609.19873#bib.bib38)\]\. Neither incorporates selective computation allocation nor uncertainty\-guided routing\. The OOD evaluations of Jáñez\-Martino et al\.\[[18](https://arxiv.org/html/2609.19873#bib.bib26)\]\) and Kshirsagar et al\.\[[22](https://arxiv.org/html/2609.19873#bib.bib23)\]confirm that the gap between in\-distribution accuracy and real\-world robustness is real\. AURA addresses all three gaps at once\. The entropy\-based AUR selectively escalates ambiguous inputs and forces URL\-absent emails to the DistilBERT\-LoRA encoder\. URL and semantic signals are fused adaptively\. Performance is validated on two out\-of\-distribution corpora entirely disjoint from the training distribution\.

## 3Proposed System

This section presents the AURA system, which is composed of five modular components as illustrated in Figure[1](https://arxiv.org/html/2609.19873#S3.F1)\. The system first extracts URL and textual features from each incoming email, then performs lightweight URL\-based risk analysis\. The AUR evaluates prediction confidence and uncertainty to determine whether deeper semantic analysis is required\. Ambiguous emails are further analysed using a fine\-tuned DistilBERT encoder, and the outputs of both analytical stages are combined to produce the final classification decision\. An overview of all AURA modules, their inputs, outputs, and roles is provided in Table[1](https://arxiv.org/html/2609.19873#S3.T1), and the complete inference procedure is formalised in Algorithm[1](https://arxiv.org/html/2609.19873#alg1)\.

![Refer to caption](https://arxiv.org/html/2609.19873v1/Proposed_System.png)Figure 1:Overview of the proposed AURA framework\.### 3\.1Email Ingestion and Preprocessing Module \(EIPM\)

All incoming emails are received by AURA in standard\.emlformat and processed by the EIPM, which serves as the system boundary and produces the structured intermediate representation consumed by all downstream components\. Upon receipt of a raw emailee, EIPM performs two sequential operations\. In the first step, the system decodes the email’s MIME structure to extract the subject line and both the plain\-text and HTML body components\. The resulting textual content is then concatenated in a fixed order and subjected to Unicode normalisation, HTML tag stripping, whitespace normalisation, and truncation to a maximum token length compatible with the downstream encoder model\. In the second operation, all hyperlinks contained in the email body and selected header fields are identified using regular\-expression\-based pattern matching, yielding an ordered list of URL strings𝒰=\{u1,u2,…,uk\}\\mathcal\{U\}=\\\{u\_\{1\},u\_\{2\},\\ldots,u\_\{k\}\\\}\.

The output of EIPM is a structured email representationℰ=\(𝒰,T\)\\mathcal\{E\}=\\bigl\(\\mathcal\{U\},\\;T\\bigr\), where𝒰\\mathcal\{U\}denotes the extracted URL set andTTdenotes the normalised text sequence\. The URL set𝒰\\mathcal\{U\}is forwarded to URAM for first\-stage analysis, while the text sequenceTTis retained for Conditional forwarding to DCAM\.

### 3\.2Layer 1: URL Risk Analysis Module \(URAM\)

URAM constitutes the first analytical stage of AURA\. It acts as a confidence early\-exit classifier for emails whose threat status is unambiguous, avoiding unnecessary semantic analysis for the majority of messages\.

#### URL Feature Extraction Pipeline

For each URLui∈𝒰u\_\{i\}\\in\\mathcal\{U\}, URAM constructs a multi\-tier feature representation𝐱i=\[𝐟ilex∥𝐟iemb\]\\mathbf\{x\}\_\{i\}=\\bigl\[\\mathbf\{f\}^\{\\text\{lex\}\}\_\{i\}\\;\\\|\\;\\mathbf\{f\}^\{\\text\{emb\}\}\_\{i\}\\bigr\]\.

- •Lexical features\[𝐟ilex\]\\bigl\[\\mathbf\{f\}^\{\\text\{lex\}\}\_\{i\}\\bigr\]: derived from the character\-level string representation of the URL and capturing structural patterns commonly associated with malicious links\. Specifically, URL length and token entropy are computed to quantify structural complexity and randomness\. Special character statistics are also extracted, including counts of hyphens, underscores, at\-symbols, percent\-encoded sequences, digits, and other symbols commonly associated with obfuscated or adversarially crafted URLs\. A binary feature indicating HTTPS usage is incorporated to capture whether the secure transport protocol is employed\.
- •Embedding features\[𝐟iemb\]\\bigl\[\\mathbf\{f\}^\{\\text\{emb\}\}\_\{i\}\\bigr\]: produced by encoding the full URL string using a SentenceTransformer model based on the MiniLM\-L6 architecture into a fixed\-dimensional dense vector𝐟iemb∈ℝ384\\mathbf\{f\}^\{\\text\{emb\}\}\_\{i\}\\in\\mathbb\{R\}^\{384\}\. This learned representation captures distributional regularities in URL patterns that lexical features alone may miss\.

When an email contains multiple URLs \(\|𝒰\|\>1\|\\mathcal\{U\}\|\>1\), per\-URL feature vectors are aggregated via element\-wise maximum pooling:𝐱url=maxi=1\|𝒰\|​𝐱i\\mathbf\{x\}\_\{\\text\{url\}\}=\\max\_\{i=1\}^\{\|\\mathcal\{U\}\|\}\\mathbf\{x\}\_\{i\}\. For emails containing no URLs \(𝒰=∅\\mathcal\{U\}=\\emptyset\), URAM substitutes a zero vector for𝐱url\\mathbf\{x\}\_\{\\text\{url\}\}and sets a binary absence flagδ=1\\delta=1to signal to the AUR that no real URL evidence is available for this message\.

#### Random Forest Classifier

URAM employs a Random Forest \(RF\) classifier trained on the aggregated URL feature vector𝐱url\\mathbf\{x\}\_\{\\text\{url\}\}to produce a binary prediction over the label space𝒴=\{spam,ham\}\\mathcal\{Y\}=\\\{\\text\{spam\},\\text\{ham\}\\\}\. A critical requirement for URAM is that its output probability scores be well\-calibrated, that is, thatPurl​\(spam\)P\_\{\\text\{url\}\}\(\\text\{spam\}\)reflects the true empirical spam frequency rather than an artefact of the classifier’s internal confidence scaling\. URAM therefore applies Platt scaling as a post\-hoc calibration step, fitting a sigmoid function over the validation set to correct these artefacts and produce a reliable probability estimate\. The resulting calibrated probabilityPurl​\(spam\)∈\[0,1\]P\_\{\\text\{url\}\}\(\\text\{spam\}\)\\in\[0,1\]represents the degree of confidence that the email is malicious based on its URL content and is subsequently consumed by both the AUR and, conditionally, the AEFM\.

### 3\.3Adaptive Uncertainty Router \(AUR\)

The AUR constitutes the architectural core of AURA\. It implements a principled routing policy that determines, on a per\-email basis, whether \(i\) the Layer 1 prediction is sufficiently reliable to serve as the final classification decision, \(ii\) the email should bypass URL\-based assessment entirely due to the absence of URL evidence, or \(iii\) deeper semantic analysis is warranted\.

#### Entropy\-Based Uncertainty Quantification

The calibrated probabilityPurl​\(spam\)P\_\{\\text\{url\}\}\(\\text\{spam\}\)produced by URAM conveys the classifier’s estimate of spam likelihood, but a high or low probability value alone does not fully characterise the reliability of that estimate\. To address this, the AUR quantifies prediction uncertainty through binary entropy as defined in Equation \([1](https://arxiv.org/html/2609.19873#S3.E1)\):

Uurl=−Purl​\(spam\)​log2​Purl​\(spam\)−\(1−Purl​\(spam\)\)​log2⁡\(1−Purl​\(spam\)\)U\_\{\\text\{url\}\}=\-P\_\{\\text\{url\}\}\(\\text\{spam\}\)\\log\_\{2\}P\_\{\\text\{url\}\}\(\\text\{spam\}\)\-\(1\-P\_\{\\text\{url\}\}\(\\text\{spam\}\)\)\\log\_\{2\}\(1\-P\_\{\\text\{url\}\}\(\\text\{spam\}\)\)\(1\)
whereUurl∈\[0,1\]U\_\{\\text\{url\}\}\\in\[0,1\]denotes the prediction uncertainty, withUurl=0U\_\{\\text\{url\}\}=0indicating a fully deterministic prediction \(i\.e\.,Purl∈\{0,1\}P\_\{\\text\{url\}\}\\in\\\{0,1\\\}\) andUurl=1U\_\{\\text\{url\}\}=1indicating maximum uncertainty\.

#### Conditional Routing Policy

Based on the URL absence flagδ\\delta, the calibrated probabilityPurl​\(spam\)P\_\{\\text\{url\}\}\(\\text\{spam\}\), and the uncertainty scoreUurlU\_\{\\text\{url\}\}, the AUR applies a four\-case conditional routing policy\. Letτspam\\tau\_\{\\text\{spam\}\},τham\\tau\_\{\\text\{ham\}\}, andτU\\tau\_\{U\}denote the spam confidence threshold, ham confidence threshold, and uncertainty threshold, respectively\.

- •Case 0 — URL Absent Forced Escalation:When URAM signals that no URLs were found in the email \(δ=1\\delta=1\), the AUR bypasses all probability\-based routing and forces the email directly to DCAM\. Case 0 takes precedence over all other cases\. When triggered, the DCAM output serves as the sole classification signal, and the AEFM fusion stage is bypassed\. Route​\(e\)=Escalateifδ=1\\text\{Route\}\(e\)=\\textsc\{Escalate\}\\quad\\text\{if\}\\quad\\delta=1\(2\)
- •Case A — Early Spam Exit:When the URL classifier produces a high spam probability accompanied by low uncertainty, the email is immediately classified as spam without invoking the semantic analysis stage: Route​\(e\)=SpamifPurl​\(spam\)\>τspam​and​Uurl<τU\\text\{Route\}\(e\)=\\textsc\{Spam\}\\quad\\text\{if\}\\quad P\_\{\\text\{url\}\}\(\\text\{spam\}\)\>\\tau\_\{\\text\{spam\}\}\\;\\text\{ and \}\\;U\_\{\\text\{url\}\}<\\tau\_\{U\}\(3\)
- •Case B — Early Ham Exit:Symmetrically, when the URL classifier produces a very low spam probability with low uncertainty, the email is classified as legitimate without semantic analysis: Route​\(e\)=HamifPurl​\(spam\)<τham​and​Uurl<τU\\text\{Route\}\(e\)=\\textsc\{Ham\}\\quad\\text\{if\}\\quad P\_\{\\text\{url\}\}\(\\text\{spam\}\)<\\tau\_\{\\text\{ham\}\}\\;\\text\{ and \}\\;U\_\{\\text\{url\}\}<\\tau\_\{U\}\(4\)
- •Case C — Ambiguous Escalation:When the uncertainty score meets or exceeds the uncertainty threshold, the prediction is deemed insufficiently reliable and the email is escalated to DCAM for deep semantic analysis: Route​\(e\)=EscalateifUurl≥τU\\text\{Route\}\(e\)=\\textsc\{Escalate\}\\quad\\text\{if\}\\quad U\_\{\\text\{url\}\}\\geq\\tau\_\{U\}\(5\)Case C takes precedence over Cases A and B wheneverUurl≥τUU\_\{\\text\{url\}\}\\geq\\tau\_\{U\}, regardless ofPurl​\(spam\)P\_\{\\text\{url\}\}\(\\text\{spam\}\)\.

#### Threshold Optimisation via Grid Search

The three routing thresholdsτspam\\tau\_\{\\text\{spam\}\},τham\\tau\_\{\\text\{ham\}\}, andτU\\tau\_\{U\}are not fixed a priori but are selected through systematic optimisation over the validation set\. A grid search is conducted over the Cartesian product of candidate values:τspam∈\[0\.5,0\.95\]\\tau\_\{\\text\{spam\}\}\\in\[0\.5,0\.95\],τham∈\[0\.05,0\.5\]\\tau\_\{\\text\{ham\}\}\\in\[0\.05,0\.5\],τU∈\[0\.1,0\.9\]\\tau\_\{U\}\\in\[0\.1,0\.9\], with a step size of0\.050\.05for each parameter\. For each candidate threshold combination\(τspam,τham,τU\)\(\\tau\_\{\\text\{spam\}\},\\tau\_\{\\text\{ham\}\},\\tau\_\{U\}\), the macro\-averaged F1\-score is computed over the validation set to evaluate classification quality\. The optimal threshold triple is selected accordingly\.

### 3\.4Layer 2: Deep Content Analysis Module \(DCAM\)

DCAM constitutes the second analytical stage of AURA and is invoked for emails escalated by the AUR under either Case 0 or Case C\. It performs deep semantic analysis of email text content, augmented where available by the URL\-derived risk signal from Layer 1\. DCAM adopts DistilBERT\[[38](https://arxiv.org/html/2609.19873#bib.bib5)\]as its backbone encoder, selected for its demonstrated parameter efficiency and inference speed advantage over BERT\. DistilBERT is fine\-tuned using Low\-Rank Adaptation \(LoRA\)\[[14](https://arxiv.org/html/2609.19873#bib.bib7)\]\), which freezes the pre\-trained transformer weights and injects trainable low\-rank decomposition matrices into selected attention weight matrices\.

The normalised text sequenceTTproduced by EIPM is tokenised and truncated to a maximum length of256256tokens\. The resulting token sequence is processed by the DistilBERT encoder, and the\[CLS\]token representation𝐡cls\\mathbf\{h\}\_\{\\text\{cls\}\}extracted from the final hidden layer is concatenated with the scalar URL risk scorePurl​\(spam\)P\_\{\\text\{url\}\}\(\\text\{spam\}\)from URAM before the classification head𝐡fused=\[𝐡cls∥Purl\(spam\)\]\\mathbf\{h\}\_\{\\text\{fused\}\}=\\bigl\[\\mathbf\{h\}\_\{\\text\{cls\}\}\\;\\\|\\;P\_\{\\text\{url\}\}\(\\text\{spam\}\)\\bigr\]\. The fused representation𝐡fused\\mathbf\{h\}\_\{\\text\{fused\}\}is passed through a two\-layer classification head consisting of a linear projection with ReLU activation, followed by dropout regularisation and a final linear layer with softmax activation, producing the calibrated probabilityPtext​\(spam\)∈\[0,1\]P\_\{\\text\{text\}\}\(\\text\{spam\}\)\\in\[0,1\]\.

### 3\.5Adaptive Evidential Fusion Module \(AEFM\)

When an email is escalated to Layer 2 under Case C, both the URL classifier and the semantic encoder produce independent probability estimates\. AEFM combines these two estimates into a single final spam probability by assigning equal weight to URL\-structural evidence and semantic text evidence:

Pfinal​\(spam\)=0\.5⋅Purl​\(spam\)\+0\.5⋅Ptext​\(spam\)P\_\{\\text\{final\}\}\(\\text\{spam\}\)=0\.5\\cdot P\_\{\\text\{url\}\}\(\\text\{spam\}\)\+0\.5\\cdot P\_\{\\text\{text\}\}\(\\text\{spam\}\)\(6\)
This design reflects the complementary and informationally distinct nature of the two signals\. For emails escalated under Case 0, no URL evidence exists, and AEFM is bypassed entirely; the DCAM outputPtext​\(spam\)P\_\{\\text\{text\}\}\(\\text\{spam\}\)serves directly asPfinal​\(spam\)P\_\{\\text\{final\}\}\(\\text\{spam\}\)\. The final binary classification decision is obtained by thresholdingPfinal​\(spam\)P\_\{\\text\{final\}\}\(\\text\{spam\}\)against a fixed decision boundary of0\.50\.5, labelling the email as spam ifPfinal​\(spam\)≥0\.5P\_\{\\text\{final\}\}\(\\text\{spam\}\)\\geq 0\.5and as ham otherwise\.

Table 1:Summary of AURA module components, inputs, outputs, and design roles\.Algorithm 1AURA: Adaptive Uncertainty\-Routed Analysis System1:Raw email

ee; trained URAM

ℱ1\\mathcal\{F\}\_\{1\}; trained DCAM

ℱ2\\mathcal\{F\}\_\{2\}; optimal thresholds

τspam∗,τham∗,τU∗\\tau^\{\*\}\_\{\\text\{spam\}\},\\,\\tau^\{\*\}\_\{\\text\{ham\}\},\\,\\tau^\{\*\}\_\{U\}
2:Binary label

y^∈\{Spam,Ham\}\\hat\{y\}\\in\\\{\\textsc\{Spam\},\\textsc\{Ham\}\\\}; confidence score

PfinalP\_\{\\text\{final\}\}
3:

\(𝒰,T\)←EIPM​\(e\)\(\\mathcal\{U\},\\,T\)\\leftarrow\\textsc\{EIPM\}\(e\)⊳\\trianglerightParse email into URL set and normalised text

4:

\(Purl,δ\)←ℱ1​\(𝒰\)\(P\_\{\\text\{url\}\},\\,\\delta\)\\leftarrow\\mathcal\{F\}\_\{1\}\(\\mathcal\{U\}\)⊳\\trianglerightLayer 1: calibrated URL risk scoring

5:if

δ=1\\delta=1then⊳\\trianglerightCase 0: no URLs found

6:

Ptext←ℱ2​\(T,0\)P\_\{\\text\{text\}\}\\leftarrow\\mathcal\{F\}\_\{2\}\(T,\\,0\)⊳\\trianglerightDCAM with zero URL risk input

7:

Pfinal←PtextP\_\{\\text\{final\}\}\\leftarrow P\_\{\\text\{text\}\}
8:

y^←Spam\\hat\{y\}\\leftarrow\\textsc\{Spam\}if

Pfinal≥0\.5P\_\{\\text\{final\}\}\\geq 0\.5elseHam

9:return

y^\\hat\{y\},

PfinalP\_\{\\text\{final\}\}
10:endif

11:

Uurl←−Purl​log2​Purl−\(1−Purl\)​log2⁡\(1−Purl\)U\_\{\\text\{url\}\}\\leftarrow\{\-P\_\{\\text\{url\}\}\\log\_\{2\}P\_\{\\text\{url\}\}\-\(1\-P\_\{\\text\{url\}\}\)\\log\_\{2\}\(1\-P\_\{\\text\{url\}\}\)\}⊳\\trianglerightEntropy\-based uncertainty

12:if

Purl\>τspam∗P\_\{\\text\{url\}\}\>\\tau^\{\*\}\_\{\\text\{spam\}\}and

Uurl<τU∗U\_\{\\text\{url\}\}<\\tau^\{\*\}\_\{U\}then

13:return

y^←Spam\\hat\{y\}\\leftarrow\\textsc\{Spam\},

Pfinal←PurlP\_\{\\text\{final\}\}\\leftarrow P\_\{\\text\{url\}\}⊳\\trianglerightCase A: early spam exit

14:elseif

Purl<τham∗P\_\{\\text\{url\}\}<\\tau^\{\*\}\_\{\\text\{ham\}\}and

Uurl<τU∗U\_\{\\text\{url\}\}<\\tau^\{\*\}\_\{U\}then

15:return

y^←Ham\\hat\{y\}\\leftarrow\\textsc\{Ham\},

Pfinal←1−PurlP\_\{\\text\{final\}\}\\leftarrow 1\-P\_\{\\text\{url\}\}⊳\\trianglerightCase B: early ham exit

16:else

17:

Ptext←ℱ2​\(T,Purl\)P\_\{\\text\{text\}\}\\leftarrow\\mathcal\{F\}\_\{2\}\(T,\\,P\_\{\\text\{url\}\}\)⊳\\trianglerightCase C: Layer 2 semantic analysis

18:

Pfinal←0\.5⋅Purl\+0\.5⋅PtextP\_\{\\text\{final\}\}\\leftarrow 0\.5\\cdot P\_\{\\text\{url\}\}\+0\.5\\cdot P\_\{\\text\{text\}\}⊳\\trianglerightEqual\-weight evidential fusion

19:

y^←Spam\\hat\{y\}\\leftarrow\\textsc\{Spam\}if

Pfinal≥0\.5P\_\{\\text\{final\}\}\\geq 0\.5elseHam

20:return

y^\\hat\{y\},

PfinalP\_\{\\text\{final\}\}
21:endif

## 4Dataset Curation and Collection

This section describes the corpora used to train and evaluate AURA\. AURA encompasses two independently trained modules, URAM and DCAM, each trained on a dedicated corpus suited to its input modality\. Table[2](https://arxiv.org/html/2609.19873#S4.T2)provides a consolidated overview of all collections, including their type and class distribution\.

### 4\.1URAM URL Corpus

URAM is trained on a dedicated corpus of labelled URL records constructed by merging four complementary publicly available URL datasets\.

#### Sources of URL Collections

##### URL\-Phish \(U1\)\(\[[24](https://arxiv.org/html/2609.19873#bib.bib8)\]\)

: A feature\-engineered phishing URL dataset published in 2025, comprising100,000100\{,\}000benign samples collected from trusted educational, governmental, and top\-ranked domains, and11,66011\{,\}660phishing samples sourced from the PhishTank repository between November 2024 and September 2025\.

##### LegitPhish \(U2\)\(\[[32](https://arxiv.org/html/2609.19873#bib.bib20)\]\)

: A large\-scale annotated URL corpus introduced in 2025, comprising37,54037\{,\}540legitimate entries sourced from Stack Overflow and Wikipedia, and63,67863\{,\}678phishing URLs obtained from verified threat intelligence feeds including OpenPhish\. The dataset is notable for its manually verified labels and the diversity of its legitimate URL sources\.

##### PhishTank URL Corpus \(U3\)\(\[[30](https://arxiv.org/html/2609.19873#bib.bib21)\]\)\)

: A collection of64,28064\{,\}280real\-world phishing URLs drawn from PhishTank\.

##### PhreshPhish \(U4\)\(\[[10](https://arxiv.org/html/2609.19873#bib.bib22)\]\)

: A large\-scale dataset introduced in 2025, comprising298,402298\{,\}402phishing samples and367,989367\{,\}989benign HTML–URL pairs collected via a real browser\-rendered pipeline to ensure high fidelity of captured page content\.

#### URL Corpus Integration and Partitioning

The four URL datasets are consolidated into a single unified corpus through two preprocessing operations: label normalisation, whereby phishing and malicious URLs are mapped toy=1y=1and benign URLs toy=0y=0, and exact\-duplicate removal via URL string matching to eliminate redundant entries across sources\. The merged corpus is then partitioned using a stratified split strategy applied independently to each source dataset before merging, preserving the class distribution of each source across training \(70%70\\%\), validation \(10%10\\%\), and test \(20%20\\%\) subsets\. The resulting partitions are subsequently combined to form the final unified splits\.

### 4\.2DCAM Email Corpus

DCAM is trained on a unified multi\-domain corpus of eight heterogeneous email collections spanning real\-world and synthetically generated messages\.

#### Sources of Email Collections

##### CSDMC2010 \(D1\)\(\[[42](https://arxiv.org/html/2609.19873#bib.bib25)\]\)

: A spam classification competition corpus comprising raw email messages collected from multiple sources and released as part of the 2010 spam filtering challenge\. The corpus contains2,9292\{,\}929ham and1,3781\{,\}378spam messages\.

##### TREC 2005 \(D2\)\(\[[8](https://arxiv.org/html/2609.19873#bib.bib9)\]\)

: A large\-scale corpus released as part of the NIST Text Retrieval Conference Spam Track, collected from a live mail server and adjudicated by human annotators\. The corpus contains39,39939\{,\}399ham and52,79052\{,\}790spam messages, spanning commercial, social engineering, and bulk unsolicited message types\.

##### TREC 2006 \(D3\)\(\[[26](https://arxiv.org/html/2609.19873#bib.bib10)\]\)

: The second iteration of the TREC Spam Track evaluation corpus, assembled between April and July 2006 from both user accounts and honeypot addresses deliberately published online to attract spam\. The corpus contains12,91012\{,\}910ham and24,91224\{,\}912spam messages\.

##### TREC 2007 \(D4\)\(\[[9](https://arxiv.org/html/2609.19873#bib.bib11)\]\)

: The third iteration of the TREC Spam Track corpus, collected from the same server infrastructure as TREC 2006 over a later temporal window with additional honeypot accounts\. The corpus contains25,22025\{,\}220ham and50,19950\{,\}199spam messages\.

##### SpamAssassin Public Corpus \(D5\)\(\[[6](https://arxiv.org/html/2609.19873#bib.bib12)\]\)

: A widely used benchmark corpus assembled by the Apache SpamAssassin project from personal and shared inboxes, categorised into easy ham, hard ham, and spam partitions\. The corpus contains4,1504\{,\}150ham and1,8971\{,\}897spam messages\.

##### CEAS\-08 \(D6\)\(\[[39](https://arxiv.org/html/2609.19873#bib.bib13)\]\)

: A corpus released as part of the CEAS 2008 Live Spam Filter Challenge, assembled from live email streams during the challenge evaluation period\. The corpus contains17,31217\{,\}312ham and21,84221\{,\}842spam messages\.

##### PhishFuzzer \(D7\)\(\[[40](https://arxiv.org/html/2609.19873#bib.bib15)\]\)

: An LLM\-generated corpus produced by seeding real phishing emails into large language models to generate diverse synthetic phishing variants\. The corpus comprises7,7007\{,\}700ham and15,40015\{,\}400spam messages\.

##### Spam Genuine \(D8\)\(\[[16](https://arxiv.org/html/2609.19873#bib.bib17)\]

: A large\-scale synthetically generated corpus containing100,000100\{,\}000email records designed to simulate the distributional characteristics of real\-world messages, balanced with exactly50,00050\{,\}000ham and50,00050\{,\}000spam samples\.

#### Preprocessing and Integration

All eight datasets undergo a two\-stage curation pipeline before integration\. Each raw email is parsed according to its MIME structure, with the subject and body concatenated into a single normalised text sequenceTT\. Duplicate messages are identified and removed via SHA\-256 hashing ofTT, non\-English text removal, whitespace standardisation, and label normalisation\. Each dataset is then independently stratified and split into training \(70%70\\%\), validation \(10%10\\%\), and test \(20%20\\%\) subsets before merging, preserving the spam\-to\-ham ratio of each source across all partitions\.

### 4\.3OOD Evaluation Datasets

To assess the generalisation capacity of AURA beyond the training distribution, two independent out\-of\-distribution evaluation corpora are employed\. Both corpora are withheld entirely from training and validation and are used solely for hold\-out evaluation\.

##### NazPhish\-Eval \(O1\)\(\[[29](https://arxiv.org/html/2609.19873#bib.bib18)\]\)

This corpus combines the Nazario Phishing Corpus, a long\-running collection of real\-world phishing emails captured via honeypot addresses between 2015 and 2025, with3,0003\{,\}000legitimate messages drawn from the Enron Corpus\(\[[20](https://arxiv.org/html/2609.19873#bib.bib14)\]\)\. The resulting corpus comprises3,0003\{,\}000phishing and3,0003\{,\}000ham messages\.

##### GuenterTrap\-Eval \(O2\)\(\[[12](https://arxiv.org/html/2609.19873#bib.bib19)\]\)

This corpus combines the Bruce Guenter Spam Archive, a continuous spam trap collection harvested from bait addresses configured to attract unsolicited mail, with39,43939\{,\}439legitimate messages drawn from the Enron Corpus\(\[[20](https://arxiv.org/html/2609.19873#bib.bib14)\]\)\. Messages were retrieved covering the period from 2015 to 2025, yielding39,43939\{,\}439spam\-trap messages and39,43939\{,\}439ham messages\.

Table 2:Summary of all datasets used in the experimental evaluation of AURA\.

## 5Experimental Setup

### 5\.1Implementation Details

Both modules are trained under an identical stratified split strategy of70%70\\%training,10%10\\%validation, and20%20\\%test, applied independently to each source dataset before merging to preserve class ratios across all partitions\. The unified URL corpus yields633,636633\{,\}636training \(𝒰train\\mathcal\{U\}\_\{\\text\{train\}\}\),90,52090\{,\}520validation \(𝒰val\\mathcal\{U\}\_\{\\text\{val\}\}\), and181,039181\{,\}039test samples \(𝒰test\\mathcal\{U\}\_\{\\text\{test\}\}\) \. The unified email corpus yields239,225239\{,\}225training \(𝒟train\\mathcal\{D\}\_\{\\text\{train\}\}\),34,17534\{,\}175validation \(𝒟val\\mathcal\{D\}\_\{\\text\{val\}\}\), and68,35068\{,\}350test samples \(𝒟test\\mathcal\{D\}\_\{\\text\{test\}\}\)\. In both cases, the validation partition is used exclusively for model selection and AUR threshold optimisation, while the test partition is treated as a sealed set accessed only once during final evaluation\. The out\-of\-distribution corpora O1 and O2 are withheld entirely from training and validation, serving solely as hold\-out corpora for the generalisation evaluation reported in Section[6](https://arxiv.org/html/2609.19873#S6)\.

#### URAM Configuration

The URL feature vector𝐱url\\mathbf\{x\}\_\{\\text\{url\}\}is constructed as described in Section[3\.2](https://arxiv.org/html/2609.19873#S3.SS2.SSSx1), combining lexical features and a384384\-dimensional SentenceTransformer embedding produced byall\-MiniLM\-L6\-v2\. RF was adopted as the URL classifier on the basis of its established strong performance on URL feature representations in prior work and its native probability output suitable for calibration\. The RF is configured with200200estimators, maximum depth of1010, minimum samples per split of55, minimum samples per leaf of22, balanced class weighting, andsqrtmaximum features\. Probability calibration is applied post\-training via Platt scaling on𝒟valu\\mathcal\{D\}^\{u\}\_\{\\text\{val\}\}to produce the calibrated outputPurl​\(spam\)P\_\{\\text\{url\}\}\(\\text\{spam\}\)consumed by the AUR\.

#### DCAM Configuration

DCAM is built on thedistilbert\-base\-uncasedpre\-trained checkpoint, selected for its demonstrated parameter efficiency and inference speed advantage over full BERT\. LoRA adapters are injected exclusively into the query \(q\_lin\) and value \(v\_lin\) projection matrices of all six attention layers, with all remaining parameters frozen throughout fine\-tuning\. The LoRA configuration uses rankr=16r=16, scaling factorαLoRA=32\\alpha\_\{\\text\{LoRA\}\}=32, and dropout0\.10\.1\. Fine\-tuning is conducted with a learning rate of2×10−42\\times 10^\{\-4\}, a batch size of3232, and the AdamW optimizer, with a maximum of55epochs and early stopping triggered after22consecutive evaluation rounds showing no improvement in macro F1\-score on𝒟val\\mathcal\{D\}\_\{\\text\{val\}\}\.

#### AUR Threshold Configuration

The routing thresholdsτspam\\tau\_\{\\text\{spam\}\},τham\\tau\_\{\\text\{ham\}\}, andτU\\tau\_\{U\}are selected through the grid search procedure described in Section[3\.3](https://arxiv.org/html/2609.19873#S3.SS3.SSSx3), conducted exclusively on𝒟val\\mathcal\{D\}\_\{\\text\{val\}\}\. The grid search identified the optimal threshold triple asτspam∗=0\.80\\tau^\{\*\}\_\{\\text\{spam\}\}=0\.80,τham∗=0\.20\\tau^\{\*\}\_\{\\text\{ham\}\}=0\.20, andτU∗=0\.50\\tau^\{\*\}\_\{U\}=0\.50, achieving a macro F1\-score of0\.98010\.9801on𝒟val\\mathcal\{D\}\_\{\\text\{val\}\}\. These thresholds are applied uniformly across all evaluation conditions reported in Section[6](https://arxiv.org/html/2609.19873#S6)\.

### 5\.2Evaluation Metrics

AURA is evaluated under two complementary protocols\. Under in\-distribution testing, performance is reported on the held\-out test partition of each constituent dataset𝒟ktest\\mathcal\{D\}^\{\\text\{test\}\}\_\{k\}and on the merged test set𝒟test\\mathcal\{D\}\_\{\\text\{test\}\}\. Under out\-of\-distribution testing, AURA is evaluated independently on NazPhish\-Eval \(O1\) and GuenterTrap\-Eval \(O2\) to assess generalisation under genuine distribution shift\. Across both protocols, performance is assessed using the following metrics:

- •Precision: the proportion of spam\-flagged emails that are truly spam, penalizing false alarms\.
- •Recall: the proportion of actual spam messages correctly detected, penalizing missed threats\.
- •F1\-score: the harmonic mean of precision and recall, reported as the macro\-averaged value across both classes to account for class imbalance\.

### 5\.3Computational Environment

All experiments are conducted within Kaggle Notebook environments using a single NVIDIA Tesla P100 GPU with1616GB of HBM2 memory,44CPU cores, and3030GB of host RAM\. The implementation relies on the Hugging Face Transformers and PEFT libraries for DCAM fine\-tuning and on scikit\-learn for URAM classifier training\.

## 6Results

### 6\.1In\-Distribution Results

Table[3](https://arxiv.org/html/2609.19873#S6.T3)reports the performance of AURA on the held\-out test partition of each of the eight constituent datasets and on the unified merged test set𝒟test\\mathcal\{D\}\_\{\\text\{test\}\}\. AURA achieves a macro F1\-score of0\.98580\.9858on the merged test set under the full adaptive routing pipeline\. Performance is consistently strong across the six real\-world server capture and competition corpora \(D1–D6\), with macro F1\-scores ranging from0\.98110\.9811on TREC 2006 \(D3\) to0\.99790\.9979on CEAS\-08 \(D6\)\. TREC 2007 \(D4\) achieves the highest precision of any individual dataset at0\.99790\.9979, reflecting the high proportion of structurally distinct spam in that corpus\. CSDMC2010 \(D1\) and SpamAssassin \(D5\) achieve F1\-scores of0\.99110\.9911and0\.98160\.9816, respectively\.

Table 3:In\-distribution performance of AURA on the per\-dataset test partitions𝒟ktest\\mathcal\{D\}^\{\\text\{test\}\}\_\{k\}and the unified merged test set𝒟test\\mathcal\{D\}\_\{\\text\{test\}\}\.
### 6\.2Out\-of\-Distribution Generalization

Table[4](https://arxiv.org/html/2609.19873#S6.T4)reports the performance of AURA on NazPhish\-Eval \(O1\) and GuenterTrap\-Eval \(O2\)\. Results are reported both per collection year and for the full corpus to enable temporal analysis of detection stability across a decade of evolving adversarial campaigns\.

#### NazPhish\-Eval \(O1\)

Across the eleven annual partitions spanning 2015 to 2025, AURA achieves per\-year F1\-scores ranging from0\.92450\.9245\(2025\) to0\.97930\.9793\(2017\), with an overall corpus F1\-score of0\.95020\.9502\. Performance is strongest in the 2017–2021 period, where F1\-scores consistently exceed0\.95300\.9530, and exhibits a moderate decline in the 2022–2025 partitions, where scores range from0\.92450\.9245to0\.93880\.9388\. This temporal pattern is consistent with the progressive evolution of phishing campaign characteristics\. Specifically, the increasing prevalence of legitimate\-looking domains and LLM\-assisted message crafting in more recent campaigns\.

#### GuenterTrap\-Eval \(O2\)

For the eleven annual partitions spanning 2015 to 2025, AURA achieves per\-year F1\-scores ranging from0\.92200\.9220\(2025\) to0\.96650\.9665\(2018\), with an overall corpus F1\-score of0\.94360\.9436\. The 2019 partition records the lowest F1 of any individual year across both OOD corpora at0\.91230\.9123, suggesting that the spam\-trap messages collected in that period exhibit distributional characteristics less well represented in the training corpus\. Performance recovers in subsequent years, remaining above0\.92200\.9220from 2020 onward\. Across both OOD corpora, AURA’s overall F1\-score differential between in\-distribution \(0\.98580\.9858\) and OOD performance \(0\.94360\.9436–0\.95020\.9502\) amounts to3\.63\.6–4\.24\.2percentage points, a modest degradation that reflects the domain shift inherent in evaluating on unseen temporal and stylistic distributions\.

Table 4:Out\-of\-distribution performance of AURA on NazPhish\-Eval \(O1\) and GuenterTrap\-Eval \(O2\), reported per annual partition and for the full corpus\.

### 6\.3Ablation Study

To isolate the contribution of each analytical layer, two reduced system configurations are evaluated alongside the full AURA system on the merged test set𝒟test\\mathcal\{D\}\_\{\\text\{test\}\}, NazPhish\-Eval \(O1\), and GuenterTrap\-Eval \(O2\):

- •URAM only: the URL classifier alone, applied with a fixed decision threshold of0\.50\.5onPurl​\(spam\)P\_\{\\text\{url\}\}\(\\text\{spam\}\), with no semantic analysis and no URL\-absence handling\.
- •DCAM only: every email is passed unconditionally through the DistilBERT\-LoRA encoder without URL risk injection, producing a text\-only classification signal\.

The ablation results are reported in Table[5](https://arxiv.org/html/2609.19873#S6.T5)\. URAM alone produces the weakest performance across all three evaluation conditions, with F1\-scores of0\.54870\.5487on𝒟test\\mathcal\{D\}\_\{\\text\{test\}\},0\.45910\.4591on O1, and0\.33390\.3339on O2\. The particularly low score on GuenterTrap\-Eval reflects the prevalence of spam\-trap messages whose malicious intent is encoded primarily in message content rather than URL structure, rendering URL\-only analysis ineffective\. The substantially lower score on NazPhish\-Eval \(0\.45910\.4591\) similarly indicates that the phishing campaigns in this corpus frequently exploit legitimate\-looking or compromised domains, producing URL entropy scores insufficient for confident classification\.

DCAM alone produces substantially stronger performance across all conditions, with F1\-scores of0\.95010\.9501on𝒟test\\mathcal\{D\}\_\{\\text\{test\}\},0\.91780\.9178on O1, and0\.90900\.9090on O2\. These results confirm that semantic content analysis provides a more robust and generalisable detection signal than URL structure alone, particularly under distribution shift, where linguistic manipulation patterns remain relatively consistent across phishing campaigns irrespective of URL characteristics\.

Full AURA outperforms DCAM alone on all three evaluation conditions, achieving F1\-score gains of\+0\.0357\+0\.0357on𝒟test\\mathcal\{D\}\_\{\\text\{test\}\},\+0\.0324\+0\.0324on O1, and\+0\.0346\+0\.0346on O2\. These gains are obtained without any modification to the underlying URAM or DCAM models and are attributable to two complementary mechanisms: the AUR’s selective routing, which prevents URL signals from contributing misleading evidence for ambiguous cases, and the equal\-weight fusion in AEFM, which leverages partial URL\-level evidence for cases where both signals are available\.

Table 5:Ablation study results across the three evaluation corpora\.
### 6\.4Statistical Significance

To verify that the performance gains of Full AURA over DCAM only, the strongest single\-modality baseline, McNemar’s test is applied to the per\-sample prediction disagreements between the two configurations on each evaluation corpus\. McNemar’s test is appropriate in this setting because both systems are evaluated on identical test sets, and the test is sensitive to asymmetric disagreements rather than aggregate accuracy\. Results are reported in Table[6](https://arxiv.org/html/2609.19873#S6.T6)\.

Table 6:McNemar’s test results: Full AURA vs\. DCAM only\.The performance gains of Full AURA over DCAM only are statistically significant across all three evaluation corpora \(p<0\.05p<0\.05\)\. The strongest effect is observed on GuenterTrap\-Eval \(p=0\.0075p=0\.0075\), where the complementary nature of URL\-structural and semantic signals yields the greatest benefit from multi\-modal fusion\. These results confirm that the improvements attributable to AURA’s adaptive routing and fusion mechanisms are reliable and not an artefact of sampling variation\.

### 6\.5Analysis of Layer Contribution

The ablation results establish that neither URAM nor DCAM is individually sufficient for robust detection across the full range of evaluated conditions\. This subsection further characterises the functional contribution of each layer by analysing the proportion of emails resolved at each stage of the AURA pipeline across the two OOD corpora\.

On NazPhish\-Eval \(O1\),77%77\\%of emails are escalated to DCAM, with only23%23\\%resolved at Layer 1\. This routing allocation is consistent with the corpus composition: the phishing campaigns in NazPhish\-Eval predominantly exploit legitimate\-looking or compromised domains, producing URL entropy scores that fall within the uncertainty bandUurl≥0\.50U\_\{\\text\{url\}\}\\geq 0\.50and therefore trigger escalation\. The low standalone performance of URAM on this corpus \(F1 =0\.45910\.4591\) confirms that URL structure alone carries limited discriminative signal for this threat category\.

On GuenterTrap\-Eval \(O2\),55%55\\%of emails are resolved at Layer 1, and45%45\\%are escalated to Layer 2\. The higher Layer 1 resolution rate reflects the spam\-trap origin of this corpus, which predominantly contains bulk unsolicited messages with structurally anomalous URL patterns that fall within the discriminative capacity of the URAM feature pipeline\.

This asymmetry in routing allocation across O1 and O2 demonstrates that the AUR adapts its behaviour to the uncertainty characteristics of each incoming distribution rather than applying a fixed escalation strategy\. The result is a system that allocates computational resources to the analytical layer best positioned to make a reliable decision for each message, combining the efficiency of URL\-based early exit for structurally anomalous spam with the robustness of semantic analysis for sophisticated phishing campaigns that deliberately conceal malicious intent at the URL level\.

## 7Deployment and System Integration

AURA module is integrated with Postfix via the milter interface, in the same manner as SpamAssassin\. AURA analyzes email content and embedded URLs to classify emails as spam or legitimate\. Hereafter, we analyze the steps required to integrate such a module into Postfix, ensuring compatibility with existing mail server infrastructure\. The proposed architecture consists of the following components:

1. 1\.Postfix mail server: the core SMTP server responsible for email routing\.
2. 2\.AURA module\.
3. 3\.Integration layer: a middleware component that interfaces between Postfix and AURA\.
4. 4\.Database: stores email metadata and model predictions for continuous learning\.

The AURA model is deployed as a REST API\. An example API endpoint is shown below:

POST/predict

Content\-Type:application/json

\{

"email":\{

"body":"…",

"embeddedURLs":"…"

\}

\}

Listing 1:AURA REST API request\.\{

"prediction":"spam",

"confidence":0\.98

\}

Listing 2:AURA REST API response\.The Postfix server usually supports external content filtering via the Milter \(mail filter\) interface\. The integration layer acts as a filter service that processes emails before delivery\. The filter service listens on a port and receives the emails from Postfix, extracts headers, body, and metadata, sends the data to AURA for classification, and returns an SMTP response to Postfix:250 OK\(accept\),550 Rejected\(spam\), or451 Temporary Failure\(quarantine\)\. As for the integration layer, it must parse incoming emails \(headers, body, attachments\), preprocess the data \(e\.g\., text cleaning, feature extraction\), query AURA \(via the REST API\), and log decisions\. We should also configure Postfix to route messages through this filter; for that, we use the Postfix Milter interface \(smtpd\_milters\) to query AURA before accepting an email\.

## 8Discussion

### 8\.1Interpretation of Results

The central finding of this study is that adaptive, uncertainty\-guided routing between a lightweight URL classifier and a deep semantic encoder produces detection performance that is both strong under in\-distribution conditions and meaningfully robust under distribution shift\. Three design properties of AURA account for this outcome\. First, URL\-structural and semantic signals are complementary across threat categories: URL analysis efficiently resolves bulk spam with anomalous link patterns\. In contrast, semantic analysis covers sophisticated phishing campaigns that deliberately conceal malicious intent at the URL level\. Second, entropy\-based routing ensures that URL signals contribute to the final decision only when genuinely informative, preventing uncertain predictions from introducing noise into the fusion stage\. Third, explicit handling of URL\-absent emails, forcing them directly to DCAM, ensures that routing decisions are only trusted when real evidence is available\.

### 8\.2Generalisation Under Distribution Shift

AURA occupies a distinct position relative to prior work, as summarized in Table[7](https://arxiv.org/html/2609.19873#S8.T7)\. AURA’s F1\-score degradation of3\.63\.6–4\.24\.2percentage points between in\-distribution and OOD evaluation is small relative to degradation reported elsewhere in the literature under comparable distribution\-shift protocols\. Gmail Spam Filter and SpamAssassin lose88–99F1 points when evaluated on LLM\-rephrased variants of the Nazario corpus\(\[[1](https://arxiv.org/html/2609.19873#bib.bib24)\]\)\. The meta\-learner of Kshirsagar et al\.\(\[[22](https://arxiv.org/html/2609.19873#bib.bib23)\]\) loses2424AUC points on an unseen 2024 corpus despite near\-perfect in\-distribution performance\. Misra and Rayz\(\[[28](https://arxiv.org/html/2609.19873#bib.bib16)\]\) report a comparable pattern for fine\-tuned BERT: MCC falls from0\.940\.94in\-domain to0\.720\.72on emails drawn from a disjoint domain \(IWSPA\-AP and Nigerian Fraud corpora\)\. MCC and F1 are not numerically equivalent; this result is reported for qualitative comparison only and is not placed in direct numerical correspondence with the F1 values above\.

Table 7:AURA performance relative to prior systems\.The consistent pattern across these systems is that single\-modality classifiers, whether rule\-based, statistical, or transformer\-based, degrade once the evaluation distribution departs from the training distribution\. AURA’s smaller degradation is consistent with two design choices absent from the compared systems: multi\-domain training across eight heterogeneous corpora, which exposes DCAM to a broader range of linguistic manipulation patterns during fine\-tuning, and adaptive routing, which prevents an unreliable signal from a single modality from dominating the final decision\. The routing allocation data support this: on NazPhish\-Eval, where77%77\\%of emails are escalated to DCAM, AURA achieves F1 =0\.95020\.9502despite URAM alone achieving only0\.45910\.4591on the same corpus — a0\.49110\.4911F1 point gap that reflects the extent to which semantic analysis compensates for URL\-level evasion\.

The most recent partitions \(2022–2025\) in both OOD corpora show a modest decline relative to earlier years, consistent with the progressive adoption of adversaries’ LLM\-assisted messages\. This suggests that while AURA’s semantic representations generalise well across a decade of campaign evolution, the increasing linguistic sophistication of adversarially generated content remains a meaningful challenge for future work\.

### 8\.3The Role of Adaptive Routing

The ablation results show that AURA’s gains over DCAM alone come specifically from adaptive routing rather than multi\-modal combination alone\. Since the DCAM model is identical in both configurations, the\+0\.0324\+0\.0324to\+0\.0357\+0\.0357F1 gains stem entirely from the selective inclusion of URL evidence when informative and its exclusion when not, behaviour confirmed as statistically reliable \(p<0\.05p<0\.05across all corpora\)\.

The routing allocation asymmetry between O1 \(77%77\\%escalated\) and O2 \(45%45\\%escalated\) shows that the AUR responds to the uncertainty characteristics of each incoming distribution rather than applying a fixed computation policy: on NazPhish\-Eval, the system functions effectively as a semantic\-only classifier\. While on GuenterTrap\-Eval, it operates as a true multi\-modal detector\. This adaptivity distinguishes AURA from fixed\-cascade architectures, which apply the same processing pipeline to every message regardless of the information content of individual signals\. These findings carry direct implications for deployment\. A fixed\-cascade system applies full transformer inference to every message, while AURA reserves this cost for the subset that genuinely requires it, an allocation that scales favourably in high\-volume mail environments without sacrificing detection reliability\. The remaining gap between in\-distribution and OOD performance, together with the unevaluated configurations discussed in Section[9](https://arxiv.org/html/2609.19873#S9), indicates that this robustness, while substantial, is not unconditional\.

## 9Limitations and Future Directions

The following limitations of the present study are each paired with a concrete direction for future investigation\.

### 9\.1Adversarial Robustness

AURA’s routing component introduces a specific attack surface: an adversary aware of the routing policy could craft structurally benign\-looking URLs to produce low uncertainty scores and trigger an early ham exit, bypassing DCAM entirely\. Semantically obfuscated phishing messages engineered to evade the DistilBERT encoder represent a complementary threat to the Layer 2 component\. As adversaries increasingly exploit the same language models used in detection pipelines, robustness evaluation becomes essential\. Future work should assess AURA’s resilience to both attack categories and explore adversarial training and certified robustness techniques within the LoRA fine\-tuning regime\.

### 9\.2Language Coverage

Phishing content varies considerably across languages and regions\. All constituent datasets comprise English\-language content exclusively, and generalisation of AURA’s URL feature pipeline and DistilBERT\-LoRA encoder to non\-English campaigns cannot be assumed\. Future work should extend AURA to multilingual deployment through a multilingual DistilBERT backbone and the construction of multilingual URL training corpora spanning diverse language families\.

### 9\.3OOD Evaluation Scope

The two OOD corpora employed cover honeypot and spam\-trap collection modalities spanning a decade of real\-world campaigns\. However, AURA’s performance on corporate mail server captures, mobile phishing messages, and social media\-based social engineering attacks remains unestablished and may expose limitations not apparent in the current evaluation\. Future work should expand the OOD evaluation protocol to encompass these modalities and investigate the applicability of AURA’s adaptive routing framework to cross\-domain settings, including SMS phishing and instant messaging\-based social engineering\.

## 10Conclusion

This paper introduced AURA, an adaptive uncertainty\-routed multi\-modal email threat detection system\. The Adaptive Uncertainty Router provides a principled mechanism for selectively invoking semantic analysis\. It is used only when URL signals are genuinely uncertain\. It also bypasses URL\-based assessment entirely when no URL evidence is present\. This prevents silent misclassification of text\-only phishing emails\. AURA demonstrates robust generalization under in\-distribution and out\-of\-distribution shifts, in which it achieved a macro F1\-score of0\.98580\.9858in\-distribution and0\.95020\.9502and0\.94360\.9436on the NazPhish\-Eval and GuenterTrap\-Eval corpora\. The ablation results confirmed that URL and semantic signals are complementary\. The AUR escalated77%77\\%of NazPhish\-Eval and45%45\\%of GuenterTrap\-Eval emails to DCAM\. This reflects adaptive routing behaviour across distinct threat distributions\.

## References

- \[1\]\(2024\)Next\-generation phishing: how LLM agents empower cyber attackers\.In2024 IEEE International Conference on Big Data \(BigData\),pp\. 2558–2567\.External Links:[Document](https://dx.doi.org/10.1109/BigData62323.2024.10825018)Cited by:[§2\.2](https://arxiv.org/html/2609.19873#S2.SS2.p2.1),[§8\.2](https://arxiv.org/html/2609.19873#S8.SS2.p1.1),[Table 7](https://arxiv.org/html/2609.19873#S8.T7.2.2.1),[Table 7](https://arxiv.org/html/2609.19873#S8.T7.2.3.1)\.
- \[2\]A\. Alhuzali, A\. Alloqmani, M\. Aljabri, and F\. Alharbi\(2025\)In\-depth analysis of phishing email detection: evaluating the performance of machine learning and deep learning models across multiple datasets\.Applied Sciences15\(6\),pp\. 3396\.External Links:[Document](https://dx.doi.org/10.3390/app15063396)Cited by:[§2\.1](https://arxiv.org/html/2609.19873#S2.SS1.p1.1)\.
- \[3\]A\. Aljofey, S\. A\. Bello, J\. Lu, and C\. Xu\(2025\)BERT\-phishfinder: a robust model for accurate phishing URL detection with optimized DistilBERT\.IEEE Transactions on Dependable and Secure Computing22,pp\. 4315–4329\.External Links:[Document](https://dx.doi.org/10.1109/TDSC.2025.3545771)Cited by:[§2\.3](https://arxiv.org/html/2609.19873#S2.SS3.p2.1)\.
- \[4\]A\. Aljofey, Q\. Jiang, Q\. Qu, M\. Huang, and J\. Niyigena\(2020\)An effective phishing detection model based on character level convolutional neural network from url\.Electronics9\(9\),pp\. 1514\.Cited by:[§2\.3](https://arxiv.org/html/2609.19873#S2.SS3.p1.1)\.
- \[5\]Anti\-Phishing Working Group\(2025\)Phishing activity trends report, 4th quarter 2024\.Technical reportAnti\-Phishing Working Group \(APWG\)\.Cited by:[§1](https://arxiv.org/html/2609.19873#S1.p1.1)\.
- \[6\]Apache SpamAssassin Project\(2006\)SpamAssassin public mail corpus\.Note:[https://spamassassin\.apache\.org/old/publiccorpus](https://spamassassin.apache.org/old/publiccorpus)Cited by:[§4\.2](https://arxiv.org/html/2609.19873#S4.SS2.SSSx1.Px5)\.
- \[7\]P\. Bountakas and C\. Xenakis\(2023\)Helphed: hybrid ensemble learning phishing email detection\.Journal of network and computer applications210,pp\. 103545\.Cited by:[§2\.1](https://arxiv.org/html/2609.19873#S2.SS1.p1.1)\.
- \[8\]G\. V\. Cormack and T\. R\. Lynam\(2005\)TREC 2005 spam track overview\.\.InTREC,pp\. 500–274\.Cited by:[§4\.2](https://arxiv.org/html/2609.19873#S4.SS2.SSSx1.Px2)\.
- \[9\]G\. V\. Cormack\(2007\)TREC 2007 spam track overview\.Note:Proceedings of the 16th Text REtrieval Conference \(TREC 2007\), Gaithersburg, MD, USACited by:[§4\.2](https://arxiv.org/html/2609.19873#S4.SS2.SSSx1.Px4)\.
- \[10\]T\. Dalton, H\. Gowda, G\. Rao, S\. Pargi, A\. H\. Khodabakhshi, J\. Rombs, S\. Jou, and M\. Marwah\(2025\)PhreshPhish: a real\-world, high\-quality, large\-scale phishing website dataset and benchmark\.arXiv preprint arXiv:2507\.10854\.Cited by:[§4\.1](https://arxiv.org/html/2609.19873#S4.SS1.SSSx1.Px4)\.
- \[11\]J\. Devlin, M\. Chang, K\. Lee, and K\. Toutanova\(2019\)Bert: pre\-training of deep bidirectional transformers for language understanding\.InProceedings of the 2019 conference of the North American chapter of the association for computational linguistics: human language technologies, volume 1 \(long and short papers\),pp\. 4171–4186\.Cited by:[§2\.2](https://arxiv.org/html/2609.19873#S2.SS2.p1.1)\.
- \[12\]B\. Guenter\(1997\)Spam archive\.Note:[http://untroubled\.org/spam/](http://untroubled.org/spam/)Collection retrieved 2018–2025Cited by:[§4\.3](https://arxiv.org/html/2609.19873#S4.SS3.SSS0.Px2)\.
- \[13\]M\. Hosseinzadeh, U\. Ali, S\. Ali, J\. Lansky,et al\.\(2025\)Improving phishing email detection performance through deep learning with adaptive optimization\.Scientific Reports15,pp\. 36724\.External Links:[Document](https://dx.doi.org/10.1038/s41598-025-20668-5)Cited by:[§2\.1](https://arxiv.org/html/2609.19873#S2.SS1.p3.1)\.
- \[14\]E\. J\. Hu, Y\. Shen, P\. Wallis, Z\. Allen\-Zhu, Y\. Li, S\. Wang, L\. Wang, W\. Chen,et al\.\(2022\)Lora: low\-rank adaptation of large language models\.\.Iclr1\(2\),pp\. 3\.Cited by:[§3\.4](https://arxiv.org/html/2609.19873#S3.SS4.p1.1)\.
- \[15\]IBM Security X\-Force\(2024\)IBM X\-Force Threat Intelligence Index 2024\.Technical reportIBM Corporation,Armonk, NY, USA\.Note:Accessed: 2026\-07\-06External Links:[Link](https://www.ibm.com/reports/threat-intelligence)Cited by:[§1](https://arxiv.org/html/2609.19873#S1.p1.1)\.
- \[16\]S\. Isuranga\(2023\)Spam Genuine Mail Contents Dataset\.Note:[https://www\.kaggle\.com/datasets/isuranga/spam\-genuine\-mail\-contents\-dataset](https://www.kaggle.com/datasets/isuranga/spam-genuine-mail-contents-dataset)Cited by:[§4\.2](https://arxiv.org/html/2609.19873#S4.SS2.SSSx1.Px8)\.
- \[17\]S\. Jamal, H\. Wimmer, and I\. H\. Sarker\(2024\)An improved transformer\-based model for detecting phishing, spam and ham emails: a large language model approach\.Security and privacy7\(5\),pp\. e402\.Cited by:[§1](https://arxiv.org/html/2609.19873#S1.p2.1),[§2\.2](https://arxiv.org/html/2609.19873#S2.SS2.p1.1)\.
- \[18\]F\. Jáñez\-Martino, R\. Alaiz\-Rodríguez, V\. González\-Castro, E\. Fidalgo, and E\. Alegre\(2023\)A review of spam email detection: analysis of spammer strategies and the dataset shift problem\.Artificial Intelligence Review56\(2\),pp\. 1145–1173\.External Links:[Document](https://dx.doi.org/10.1007/s10462-022-10195-4)Cited by:[§1](https://arxiv.org/html/2609.19873#S1.p2.1),[§2\.1](https://arxiv.org/html/2609.19873#S2.SS1.p2.1),[§2\.4](https://arxiv.org/html/2609.19873#S2.SS4.p1.1)\.
- \[19\]A\. Karim, M\. Shahroz, K\. Mustofa, S\. B\. Belhaouari, and S\. R\. K\. Joga\(2023\)Phishing detection system through hybrid machine learning based on url\.Ieee Access11,pp\. 36805–36822\.Cited by:[§2\.3](https://arxiv.org/html/2609.19873#S2.SS3.p1.1)\.
- \[20\]B\. Klimt and Y\. Yang\(2004\)The enron corpus: a new dataset for email classification research\.InEuropean conference on machine learning,pp\. 217–226\.Cited by:[§4\.3](https://arxiv.org/html/2609.19873#S4.SS3.SSS0.Px1.p1.1),[§4\.3](https://arxiv.org/html/2609.19873#S4.SS3.SSS0.Px2.p1.1)\.
- \[21\]T\. Koide, N\. Fukushi, H\. Nakano, and D\. Chiba\(2024\)Chatspamdetector: leveraging large language models for effective phishing email detection\.InInternational Conference on Security and Privacy in Communication Systems,pp\. 297–319\.Cited by:[§2\.2](https://arxiv.org/html/2609.19873#S2.SS2.p2.1)\.
- \[22\]M\. Kshirsagar, V\. Rathi, and C\. Ryan\(2025\)Meta\-learner\-based frameworks for interpretable email spam detection\.Frontiers in Artificial Intelligence8,pp\. 1569804\.External Links:[Document](https://dx.doi.org/10.3389/frai.2025.1569804)Cited by:[§2\.1](https://arxiv.org/html/2609.19873#S2.SS1.p2.1),[§2\.4](https://arxiv.org/html/2609.19873#S2.SS4.p1.1),[§8\.2](https://arxiv.org/html/2609.19873#S8.SS2.p1.1),[Table 7](https://arxiv.org/html/2609.19873#S8.T7.2.4.1)\.
- \[23\]Y\. Lee, J\. Saxe, and R\. Harang\(2020\)CATBERT: context\-aware tiny bert for detecting social engineering emails\.arXiv preprint arXiv:2010\.03484\.Cited by:[§2\.2](https://arxiv.org/html/2609.19873#S2.SS2.p1.1)\.
- \[24\]D\. M\. Linh and T\. C\. Hung\(2025\)A feature\-engineered dataset of benign and phishing urls for machine learning and large language models evaluation\.Data in Brief,pp\. 112162\.Cited by:[§4\.1](https://arxiv.org/html/2609.19873#S4.SS1.SSSx1.Px1)\.
- \[25\]Y\. Liu, M\. Ott, N\. Goyal, J\. Du, M\. Joshi, D\. Chen, O\. Levy, M\. Lewis, L\. Zettlemoyer, and V\. Stoyanov\(2019\)Roberta: a robustly optimized bert pretraining approach\.arXiv preprint arXiv:1907\.11692\.Cited by:[§2\.2](https://arxiv.org/html/2609.19873#S2.SS2.p1.1)\.
- \[26\]C\. Macdonald, I\. Ounis, I\. Soboroff,et al\.\(2007\)Overview of the trec 2007 blog track\.\.InTREC,Vol\.7,pp\. 31–43\.Cited by:[§4\.2](https://arxiv.org/html/2609.19873#S4.SS2.SSSx1.Px3)\.
- \[27\]P\. Maneriker, J\. W\. Stokes, E\. G\. Lazo, D\. Carutasu, F\. Tajaddodianfar, and A\. Gururajan\(2021\)URLTran: improving phishing URL detection using transformers\.InMILCOM 2021 – 2021 IEEE Military Communications Conference \(MILCOM\),pp\. 197–204\.External Links:[Document](https://dx.doi.org/10.1109/MILCOM52596.2021.9653028)Cited by:[§1](https://arxiv.org/html/2609.19873#S1.p2.1),[§2\.3](https://arxiv.org/html/2609.19873#S2.SS3.p2.1)\.
- \[28\]K\. Misra and J\. T\. Rayz\(2022\)Lms go phishing: adapting pre\-trained language models to detect phishing emails\.In2022 IEEE/WIC/ACM International Joint Conference on Web Intelligence and Intelligent Agent Technology \(WI\-IAT\),pp\. 135–142\.Cited by:[§8\.2](https://arxiv.org/html/2609.19873#S8.SS2.p1.1),[Table 7](https://arxiv.org/html/2609.19873#S8.T7.2.5.1)\.
- \[29\]J\. Nazario\(2005\)The online phishing corpus\.Note:[https://monkey\.org/~jose/phishing/](https://monkey.org/~jose/phishing/)Accessed: 2025Cited by:[§4\.3](https://arxiv.org/html/2609.19873#S4.SS3.SSS0.Px1)\.
- \[30\]Q\. Nguyen\(2025\)PhishTank phishing URL valid dataset\.Note:[https://www\.kaggle\.com/datasets/quangnguynv/phishtank\-phishingurl\-valid\-dataset](https://www.kaggle.com/datasets/quangnguynv/phishtank-phishingurl-valid-dataset)Cited by:[§4\.1](https://arxiv.org/html/2609.19873#S4.SS1.SSSx1.Px3)\.
- \[31\]D\. O\. Otieno, A\. S\. Namin, and K\. S\. Jones\(2023\)The application of the BERT transformer model for phishing email classification\.In2023 IEEE 47th Annual Computers, Software, and Applications Conference \(COMPSAC\),pp\. 1303–1310\.External Links:[Document](https://dx.doi.org/10.1109/COMPSAC57700.2023.00198)Cited by:[§2\.2](https://arxiv.org/html/2609.19873#S2.SS2.p1.1)\.
- \[32\]R\. S\. Potpelwar, U\. V\. Kulkarni, and J\. M\. Waghmare\(2025\)LegitPhish: a large\-scale annotated dataset for URL\-based phishing detection\.Data in Brief63,pp\. 111972\.External Links:[Document](https://dx.doi.org/10.1016/j.dib.2025.111972)Cited by:[§4\.1](https://arxiv.org/html/2609.19873#S4.SS1.SSSx1.Px2)\.
- \[33\]S\. Rojas\-Galeano\(2024\)Zero\-shot spam email classification using pre\-trained large language models\.InApplied Computer Sciences in Engineering \(Workshop on Engineering Applications\),pp\. 3–18\.External Links:[Document](https://dx.doi.org/10.1007/978-3-031-74595-9%5F1)Cited by:[§2\.2](https://arxiv.org/html/2609.19873#S2.SS2.p2.1)\.
- \[34\]K\. I\. Roumeliotis, N\. D\. Tselikas, and D\. K\. Nasiopoulos\(2024\)Next\-generation spam filtering: comparative fine\-tuning of LLMs, NLPs, and CNN models for email spam classification\.Electronics13\(11\),pp\. 2034\.External Links:[Document](https://dx.doi.org/10.3390/electronics13112034)Cited by:[§2\.2](https://arxiv.org/html/2609.19873#S2.SS2.p2.1)\.
- \[35\]B\. Sabir, M\. A\. Babar, R\. Gaire, and A\. Abuadbba\(2022\)Reliability and robustness analysis of machine learning based phishing URL detectors\.IEEE Transactions on Dependable and Secure Computing19\(6\),pp\. 3745–3759\.External Links:[Document](https://dx.doi.org/10.1109/TDSC.2022.3218043)Cited by:[§2\.3](https://arxiv.org/html/2609.19873#S2.SS3.p2.1)\.
- \[36\]O\. K\. Sahingoz, E\. Buber, O\. Demir, and B\. Diri\(2019\)Machine learning based phishing detection from urls\.Expert Systems with Applications117,pp\. 345–357\.Cited by:[§2\.3](https://arxiv.org/html/2609.19873#S2.SS3.p1.1)\.
- \[37\]S\. A\. Salloum, T\. Gaber, S\. Vadera, and K\. Shaalan\(2022\)A systematic literature review on phishing email detection using natural language processing techniques\.IEEE Access10,pp\. 65703–65727\.External Links:[Document](https://dx.doi.org/10.1109/ACCESS.2022.3183083)Cited by:[§2\.1](https://arxiv.org/html/2609.19873#S2.SS1.p1.1),[§2\.2](https://arxiv.org/html/2609.19873#S2.SS2.p3.1)\.
- \[38\]V\. Sanh, L\. Debut, J\. Chaumond, and T\. Wolf\(2019\)DistilBERT, a distilled version of bert: smaller, faster, cheaper and lighter\.arXiv preprint arXiv:1910\.01108\.Cited by:[§2\.2](https://arxiv.org/html/2609.19873#S2.SS2.p1.1),[§3\.4](https://arxiv.org/html/2609.19873#S3.SS4.p1.1)\.
- \[39\]R\. Segal, G\. V\. Cormack, and A\. Bratko\(2008\)CEAS 2008 live spam challenge corpus\.Note:[http://plg\.uwaterloo\.ca/~gvcormac/ceascorpus/](http://plg.uwaterloo.ca/~gvcormac/ceascorpus/)Cited by:[§4\.2](https://arxiv.org/html/2609.19873#S4.SS2.SSSx1.Px6)\.
- \[40\]R\. Toth, T\. Bisztray, and N\. Gruschka\(2025\)The phish, the spam, and the valid: generating feature\-rich emails for benchmarking llms\.arXiv preprint arXiv:2511\.21448\.Cited by:[§4\.2](https://arxiv.org/html/2609.19873#S4.SS2.SSSx1.Px7)\.
- \[41\]R\. Valecha, P\. Mandaokar, and H\. R\. Rao\(2021\)Phishing email detection using persuasion cues\.IEEE transactions on Dependable and secure computing19\(2\),pp\. 747–756\.Cited by:[§2\.1](https://arxiv.org/html/2609.19873#S2.SS1.p1.1)\.
- \[42\]I\. Velez de Mendizabal, X\. Vidriales, V\. B\. Fernandes, E\. Ezpeleta, J\. R\. Méndez, and U\. Zurutuza\(2022\)Set of obfuscated spam dataset by using leetspeak transformations\.Zenodo\.External Links:[Document](https://dx.doi.org/10.5281/zenodo.6373653),[Link](https://doi.org/10.5281/zenodo.6373653)Cited by:[§4\.2](https://arxiv.org/html/2609.19873#S4.SS2.SSSx1.Px1)\.
- \[43\]Y\. Wang, W\. Zhu, H\. Xu, Z\. Qin, K\. Ren, and W\. Ma\(2023\)A large\-scale pretrained deep model for phishing URL detection\.InICASSP 2023 \- 2023 IEEE International Conference on Acoustics, Speech and Signal Processing \(ICASSP\),pp\. 1–5\.External Links:[Document](https://dx.doi.org/10.1109/ICASSP49357.2023.10095719)Cited by:[§2\.3](https://arxiv.org/html/2609.19873#S2.SS3.p2.1)\.
- \[44\]J\. Zhang, P\. Wu, J\. London, and D\. Tenney\(2025\)Benchmarking and evaluating large language models in phishing detection for small and midsize enterprises: a comprehensive analysis\.IEEE Access13,pp\. 28335–28352\.External Links:[Document](https://dx.doi.org/10.1109/ACCESS.2025.3540075)Cited by:[§2\.2](https://arxiv.org/html/2609.19873#S2.SS2.p2.1)\.
- \[45\]Z\. Zhang, E\. Damiani, H\. Al Hamadi, C\. Y\. Yeun, and F\. Taher\(2023\)A late multi\-modal fusion model for detecting hybrid spam E\-mail\.International Journal of Computer Theory and Engineering15\(2\),pp\. 76–81\.External Links:[Document](https://dx.doi.org/10.7763/IJCTE.2023.V15.1334)Cited by:[§2\.4](https://arxiv.org/html/2609.19873#S2.SS4.p1.1)\.

Similar Articles

Realistic Robustness Evaluation of Tabular Data Driven Models

arXiv cs.LG

The paper introduces AURORA, a modular open-source tool for evaluating the robustness of machine learning models on tabular data classification, integrating multiple adversarial perturbation methods, evaluation metrics, and a distance adjustment mechanism to ensure realistic perturbation-based assessments.

LLM Anonymization Against Agentic Re-Identification

Hugging Face Daily Papers

AURA is an LLM-powered anonymization framework that balances privacy protection against agentic web-search re-identification while preserving contextual utility through adaptive privacy scopes and mask-reconstruct methods.

Testing robustness against unforeseen adversaries

OpenAI Blog

OpenAI researchers developed a method to evaluate neural network robustness against unforeseen adversarial attacks, introducing a new metric called UAR (Unforeseen Attack Robustness) that assesses model performance against unanticipated distortion types beyond the commonly studied Lp norms.

uber/ADR

GitHub Trending (daily)

Uber released ADR (Agentic AI Detection and Response), an open-source enterprise security system for AI agents, including telemetry sensors, a benchmark, and a dual-agent detector. The accompanying paper was accepted to MLSys 2026.