Next Article in Journal
Effect of Tank Orientation and Fill Level on the Thermal Response of Bi-Lobed Type C Tanks for Liquefied CO2 Transport
Previous Article in Journal
Error-Profile-Conditioned Augmentation for Chinese L2 Writing Assessment: Evaluating Synthetic Tail Data Under Data Scarcity
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Adversarial Robustness in URL-Based Phishing Detection: Problem-Space Evaluation and Robust Feature Engineering

by
Merve Yıldırım
Department of Software Engineering, Faculty of Engineering, Karadeniz Technical University, 61080 Trabzon, Türkiye
Appl. Sci. 2026, 16(17), 8737; https://doi.org/10.3390/app16178737
Submission received: 26 July 2026 / Revised: 27 August 2026 / Accepted: 27 August 2026 / Published: 2 September 2026
(This article belongs to the Section Computing and Artificial Intelligence)

Abstract

Machine learning has become a widely adopted approach for URL-based phishing detection, with many studies reporting F1 scores exceeding 0.95 on benchmark datasets. However, recent adversarial machine learning research has questioned the robustness of these models, suggesting that small input perturbations can severely degrade detection performance. In this study, we argue that a substantial part of this reported vulnerability stems from the way adversarial attacks are evaluated. Specifically, many existing studies assess attacks in the feature space, where feature values are modified directly without ensuring that the resulting samples correspond to valid, functional URLs. To investigate this issue, we conduct a two-stage empirical study using both a benchmark feature dataset and a dataset of real phishing URLs. Crucially, to avoid confounding the attack space with dataset differences, we additionally evaluate both feature-space and problem-space attacks on the same real-URL dataset, using an identical model and manipulable-feature budget. Our experiments reveal a striking contrast between these evaluation settings. While feature-space attacks reduce the detection rate of a Random Forest classifier on the benchmark dataset from 0.96 to 0.36, analogous manipulations performed on real URLs have almost no effect on detection performance, as the most informative signals originate from host-related attributes that are difficult for attackers to manipulate. Building on this observation, we propose a set of robust features that capture stable domain characteristics, including lexical word validity, homoglyph disguises, brand impersonation, subdomain depth, character entropy, and transport-related signals. Incorporating these features substantially improves robustness under adversarial conditions, maintaining phishing detection rates between 0.24 and 0.76 where the lexical-only baseline deteriorates to zero under a non-adaptive attacker, while also increasing the clean-data F1 score from 0.985 to 0.994. We further evaluate an adaptive attacker that explicitly targets the proposed features; although the proposed representation raises the attacker’s cost and helps under moderate attacks, host-derived features remain the only strictly attack-invariant component, so we position the proposed features as a complement to host-based signals rather than a standalone defense. Additional analyses, including model comparison, hyperparameter sensitivity analysis, feature ablation, SHAP-based interpretation, multi-seed confidence intervals, a domain-disjoint evaluation, and host-only evaluation, consistently support the proposed approach. The findings demonstrate that problem-space evaluation provides a more realistic assessment of adversarial robustness than conventional feature-space testing and show that robust feature engineering offers a practical strategy for developing phishing detection systems that remain effective under realistic adversarial conditions.

1. Introduction

Phishing remains one of the most prevalent and financially damaging cyber threats, accounting for a substantial proportion of credential theft, data breaches, and online financial fraud [1,2]. Despite continuous advances in defensive technologies, phishing campaigns continue to grow in both volume and sophistication. According to the Anti-Phishing Working Group (APWG), more than one million phishing attacks were recorded during the first quarter of 2025 alone, highlighting the persistent scale of this threat [3]. Because malicious URLs are inexpensive to generate, easy to modify, and often short-lived, traditional blacklist-based approaches struggle to keep pace with newly emerging attacks. Consequently, machine learning (ML) classifiers that distinguish phishing URLs from legitimate ones have become a central component of modern anti-phishing systems [1,2]. Detectors built on lexical URL features and host-based attributes routinely achieve accuracy and F1 scores exceeding 0.95 on widely used benchmark datasets [4,5].
Although these models report impressive performance on benchmark datasets, such results are typically obtained under standard evaluation settings in which the training and test data follow the same underlying distribution. In real-world deployment, however, attackers deliberately manipulate URLs to evade detection while preserving their malicious functionality. Adversarial machine learning research has repeatedly shown that models achieving near-perfect performance under standard evaluation can experience substantial performance degradation when exposed to carefully crafted perturbations [5,6,7]. Similar weaknesses have subsequently been demonstrated for phishing URL detectors, raising increasing concerns about their robustness in operational environments [8,9,10].
A key methodological distinction in adversarial robustness evaluation concerns the difference between the feature space and the problem space. Apruzzese et al. [9] define the feature space as the domain in which an attacker directly manipulates feature values, whereas in the problem space the attacker must generate a real, functional URL whose feature representation changes only as a consequence of valid modifications. This distinction is particularly important because perturbations introduced in the feature space may not correspond to any feasible URL transformation, potentially leading to an overly optimistic estimate of an attacker’s capabilities. Consequently, a considerable proportion of the reported vulnerabilities in phishing URL detection has been demonstrated under feature-space assumptions rather than realistic problem-space constraints. Recent work has continued to investigate realistic adversarial attacks by generating functionally valid phishing webpages, further emphasizing the importance of evaluating detection systems under realizable attack scenarios rather than relying exclusively on feature-space perturbations [11].
This paper makes two closely related contributions. First, we provide an empirical assessment of the discrepancy between feature-space and problem-space robustness. Using two benchmark datasets, we show that feature-space evaluations tend to overestimate model fragility, whereas realistic problem-space attacks are considerably less effective because much of the discriminative information resides in host-related attributes that are substantially more difficult to manipulate. Critically, and in direct response to the concern that cross-dataset comparisons are confounded, we additionally evaluate both attack types on the same real-URL dataset using an identical classifier and manipulable-feature budget, so that any observed difference is attributable to the attack space rather than to differences in dataset, feature extraction, or class composition. Second, motivated by this finding, we introduce a set of manipulation-resistant features, including domain word realness for detecting typosquatting and homoglyph attacks [12,13], brand impersonation cues [14], subdomain depth, character entropy [15], and transport- and host-level attributes. These features not only improve robustness against adversarial manipulation but also enhance performance under standard evaluation. We validate both contributions through a comprehensive empirical study comprising a model-by-defense comparison, hyperparameter sensitivity analysis, per-feature robustness evaluation, SHAP-based interpretation, a multi-seed statistical evaluation with confidence intervals, an adaptive-attacker analysis, a domain-disjoint split, and a host-only ablation study. Our contribution is not the individual features, several of which appear in prior typosquatting, homoglyph, and domain-impersonation research; rather, it is their assembly as a robustness-oriented, manipulation-resistant representation whose contribution to adversarial robustness we quantify. We note that the study by Apruzzese et al. [9] and its journal extension, Multi-SpacePhish [16], previously contrasted feature-space and problem-space evasion; our focus on robustness-oriented feature engineering is complementary to those works and was not addressed by them.
The remainder of this paper is organized as follows. Section 2 reviews the related work. Section 3 describes the datasets, threat model, and proposed manipulation-resistant features. Section 4 presents the experimental results. Section 5 discusses the implications of the findings, Section 6 outlines the study limitations, and Section 7 concludes the paper.

2. Related Work

2.1. Machine Learning Phishing Detection

Machine learning has become one of the dominant approaches for phishing detection, giving rise to an extensive body of research. Recent studies have continued to improve phishing URL detection through refined feature engineering and ensemble learning strategies, demonstrating that carefully designed feature representations remain a key determinant of detection performance [17]. Early studies demonstrated that lexical URL characteristics and host-based information provide effective indicators for distinguishing phishing websites from legitimate ones. For example, Jain and Gupta [4] proposed a client-side detection framework based on lexical and host features, while Hannousse and Yahiouche [5] introduced benchmark datasets and provided a systematic comparison of commonly used feature categories. More recent surveys [1,2] have reviewed a broad spectrum of approaches, including list-based, similarity-based, traditional machine learning, ensemble, and deep learning methods. Although these studies consistently report excellent performance under standard evaluation settings, they also acknowledge that existing detectors remain susceptible to adversarial manipulation.

2.2. Adversarial Machine Learning and Evasion

The susceptibility of machine learning models to adversarial inputs was first demonstrated by Szegedy et al. [7], while Goodfellow et al. [6] provided an influential explanation of this phenomenon and introduced adversarial training as a practical defense. Building on these foundations, Biggio et al. [8] formalized test-time evasion attacks, and Biggio and Roli [18] later provided a comprehensive overview of adversarial machine learning from both the attack and defense perspectives. These advances have subsequently been extended to phishing detection. Apruzzese et al. [9] introduced the concept of the evasion space for phishing URL classifiers, followed by studies investigating gray-box attacks [19], more sophisticated evasion strategies and corresponding defenses [9], ensemble-based robustness [20], and, more recently, robustness evaluations spanning traditional machine learning models to large language models [21]. The journal extension of the evasion-space framework, Multi-SpacePhish [16], was, to our knowledge, the first to fairly compare problem-space and feature-space evasion attacks and additionally proposed new URL- and HTML-level perturbations; it likewise reported that realistic attacks are less disruptive than feature-space results suggest. Our study is consistent with and complementary to this finding, but differs in emphasis: rather than enumerating perturbations, we focus on a manipulation-resistant feature representation and quantify its robustness contribution. More recently, robustness evaluations have also been extended to compare conventional machine learning, deep learning, and large language model-based phishing detectors under adversarial attacks, highlighting that robustness remains a fundamental challenge across diverse model families [21].
Beyond phishing, the resilience of AI systems under disruptive conditions has been studied at the level of model architecture and training. Moskalenko et al. [22] propose a design and training method based on dynamic neural networks that improves the resilience of convolutional networks and vision transformers to fault injection and adversarial noise in resource-constrained embedded systems. That line of work and ours share the premise that robustness should be treated as a first-class design goal rather than a by-product of accuracy, but they operate on different axes: Moskalenko et al. intervene at the architecture and training level for deep vision models, whereas we intervene at the feature-representation level for tabular URL classifiers. We regard the two as complementary.

2.3. Typosquatting, Homoglyphs, and Domain Impersonation

A parallel line of research has focused on deceptive domain names as indicators of phishing. One of the most widely adopted approaches for detecting look-alike and typosquatting domains relies on edit-distance measures, such as the Levenshtein distance, to compare candidate domains with known brand names [12]. Homoglyph and IDN-homograph attacks exploit visually similar characters (e.g., Cyrillic and Latin alphabets) to disguise malicious domains [13,23], while more recent studies have explored machine learning and language-model-based techniques for detecting automatically generated squatting domains [24]. Kintis et al. [14] further demonstrated that combosquatting, in which a brand name is embedded within a longer domain, is even more prevalent than conventional typosquatting. Other studies have reported that phishing domains typically exhibit higher character entropy and longer domain names [15]. Importantly, these characteristics are derived primarily from host-related information and are therefore substantially more resistant to manipulation than conventional lexical features. Unlike previous studies, which have largely investigated these characteristics as standalone detection signals, we incorporate them as manipulation-resistant features and evaluate their contribution to adversarial robustness, thereby establishing a direct connection between the typosquatting and adversarial machine learning literatures.

3. Data and Methodology

This study employs two complementary datasets to investigate adversarial robustness under both feature-space and problem-space evaluation settings. Unless otherwise stated, all experiments were conducted using a fixed random seed of 42 and an 80/20 stratified train–test split to ensure reproducibility and fair model comparison. To quantify variability, all headline results are additionally repeated over three independent stratified splits (seeds 42, 7, 123), and we report means with 95% confidence intervals in Section 4.3. For reproducibility, the software environment is specified as Python 3.12.3, scikit-learn 1.8.0, SHAP 0.52.0, wordfreq 3.1.1, NumPy 2.4.4, pandas 3.0.2, and Matplotlib 3.10.8.

3.1. Dataset A: Feature-Space Benchmark

Dataset A is the publicly available phishing dataset introduced by Vrbančič et al. [25]. It contains 88,647 instances, comprising 58,000 legitimate and 30,647 phishing samples, represented by 111 numerical features. Following the taxonomy adopted throughout this study, we distinguish between lexical URL features, which are derived directly from the URL string and are generally easier for an attacker to manipulate, and host-based features, which describe domain properties (e.g., domain age, DNS/TTL, certificate information, and ASN) and are substantially more resistant to manipulation. Twelve lexical features were designated as manipulable during adversarial evaluation, whereas the remaining 99 features were treated as robust.

3.2. Dataset B: Real URLs for Problem-Space Evaluation

Dataset B consists of real-world URLs, including confirmed phishing URLs obtained from PhishTank and benign URLs collected from a publicly available source [26], with 14,000 samples per class. For each URL, both lexical and host-based features are extracted using our custom feature extraction framework. Unlike Dataset A, this dataset enables evaluation in the problem space by applying modifications directly to the original URL and subsequently re-extracting the feature representation. Importantly, because Dataset B contains the raw URL strings, it also supports a feature-space attack on the same samples; this is what enables the controlled, same-dataset comparison of the two attack spaces reported in Section 4.6. Consequently, every adversarial example corresponds to a syntactically valid URL whose feature values arise naturally from the modified URL rather than being altered directly in the feature space.

3.3. Threat Model and Attacks

We consider an adversary who has full control over the phishing URL and aims to evade the detector while preserving the functionality of the phishing website, consistent with the problem-space threat model described by Apruzzese et al. [9]. By “full control over the URL” we specifically mean control over the path and query components; changing host-level attributes such as domain age or DNS history would require re-registering or compromising a domain, a stronger and costlier capability that we treat separately in Section 6. Two attack models are considered in this study. For Dataset A, we employ a feature-space attack in which each manipulable lexical feature of a phishing sample is progressively shifted toward the median value of the legitimate class. The attack strength is controlled by a parameter s [ 0 , 1 ] , where larger values correspond to stronger perturbations. Because these perturbations are applied directly to feature values, the resulting feature vectors do not necessarily correspond to realizable URLs. For Dataset B, we perform problem-space attacks by modifying the original URL itself (e.g., shortening the path or removing unnecessary special characters) and subsequently re-extracting all lexical and host-based features from the modified URL. We formally define the manipulation level L [ 0 , 1 ] as follows: at level L, a fraction L of the URL path segments (ordered from the tail) is removed and special characters (hyphens, underscores, percent-encodings) are stripped, so that L = 0 leaves the URL unchanged and L = 1 reduces it to the bare host. This provides an explicit, monotone parameter analogous in role to the feature-space strength s; we do not claim the two are numerically equivalent, and the decisive comparison in Section 4.6 instead holds the dataset, model, and manipulable features fixed. Consequently, every adversarial example corresponds to a syntactically valid URL whose feature representation is derived from the modified URL rather than manipulated directly in feature space, enabling a realistic comparison between feature-space and problem-space robustness. In all problem-space transformations the URL scheme and host are preserved, so the transformed URL resolves to the same host; we verify syntactic validity but do not claim to have verified the live page-level functionality of historical phishing URLs, most of which are already offline (see Section 6). To assess whether the proposed features are unfairly favoured by an attacker that ignores them, we additionally define an adaptive attacker (Section 4.8) permitted to perturb the manipulable components of the proposed feature set—lowering token entropy and subdomain depth and avoiding the homoglyph and brand-substring flags—in addition to the ordinary lexical features, while host-derived features remain fixed.

3.4. Proposed Features Designed to Improve Robustness

Building on findings from the typosquatting, homoglyph, and domain impersonation literature [12,13,14], we design a set of features intended to improve robustness by capturing domain characteristics that are substantially more resistant to direct lexical manipulation than conventional URL-based features. Rather than relying solely on easily modifiable lexical descriptors, the proposed features incorporate semantic, structural, and host-related properties that are more difficult for an attacker to alter while maintaining a convincing phishing domain. The proposed features are summarized below.
  • Lexical word validity: Indicates whether the primary domain token corresponds to a valid dictionary word using corpus-based word-frequency statistics. Concretely, we use the wordfreq library (English corpus); a token of length 3 is valid if its word frequency exceeds zero. Legitimate domains are more likely to contain meaningful words, whereas phishing domains often consist of meaningless character sequences or deliberately modified words. Previous studies have shown that lexical and semantic characteristics of domain names provide useful information for phishing detection [27].
  • Homoglyph disguise: Identifies whether a non-dictionary domain token becomes a valid word after homoglyph normalization (e.g., paypa1 → paypal), thereby capturing visually deceptive domain names [13]. Normalization applies the map 0→o, 1→l, 3→e, 4→a, 5→s, 7→t, $→s, @→a, followed by the digraph substitutions rn→m and vv→w, after which the token is re-checked against the dictionary.
  • Brand impersonation: Detects whether a protected brand name appears within a domain while the registered domain itself does not belong to the legitimate brand, capturing combosquatting behaviour [14]. We use a fixed list of protected brand names with substring and normalized edit-distance checks.
  • Character entropy: Measures the Shannon entropy of the primary domain token. Previous studies have shown that phishing domains tend to exhibit higher entropy than legitimate domains [15].
  • Subdomain depth: Counts the number of subdomain levels. Phishing URLs frequently conceal brand-related keywords within deeply nested subdomains.
  • Transport signal: Indicates whether HTTPS is present. Although HTTPS is no longer a reliable indicator of legitimacy on its own, it still provides useful contextual information when combined with other features.
Unlike conventional lexical features, the proposed features are primarily derived from domain- and host-level characteristics or require external information for their computation. Consequently, simple lexical modifications of a phishing URL have only limited influence on these features, making them suitable candidates for improving robustness against feature-space manipulation.
The objective of these features is not merely to improve classification performance on clean data, but to identify characteristics whose values cannot be substantially altered through simple lexical modifications of a phishing URL. This design principle distinguishes the proposed feature set from conventional lexical descriptors that can be manipulated directly in the feature space and forms the basis for the experimental evaluation presented in the following sections.

3.5. Models and Defenses

To evaluate the proposed features under both conventional and adversarial conditions, we consider four widely used machine learning classifiers representing different model families: Logistic Regression (LR), Decision Tree (DT), Random Forest (RF; 200 trees), and Histogram-based Gradient Boosting (HGB; 200 boosting iterations). These models provide a representative comparison across linear, tree-based, ensemble, and boosting approaches while avoiding dependence on a single learning algorithm.
For Dataset A, we evaluate two defense strategies against feature-space attacks. The first is adversarial training, in which the training set is augmented with adversarially manipulated phishing samples generated using the proposed attack procedure, following the principle introduced by Goodfellow et al. [6]. The second is robust feature selection, where the 12 manipulable lexical features are excluded during training, forcing the models to rely exclusively on the remaining non-manipulated features.
Model performance is evaluated using the phishing detection rate (recall for the phishing class) on both clean and adversarially manipulated test data. Because the primary objective of phishing detection is to minimize missed phishing attacks, phishing recall is adopted as the primary evaluation metric throughout this study. To ensure that robustness gains are not obtained by inflating false positives, we additionally report precision, F1, and the false-positive rate on clean and attacked data; the baseline per-model metrics (accuracy, precision, recall, F1, ROC-AUC) are given in Table 1.

4. Results

4.1. Baseline Performance (Dataset A)

Table 1 summarizes the baseline performance of the four evaluated classifiers on the clean test set of Dataset A, while Figure 1 and Figure 2 present the corresponding F1 scores and ROC curves. Although phishing recall is the primary evaluation metric adopted throughout this study, F1 score and ROC-AUC are also reported to provide a more comprehensive assessment of overall classification performance under clean conditions.
Overall, the ensemble-based models achieved the strongest baseline performance. Random Forest obtained the highest F1 score (0.958) and ROC-AUC (0.995), while Histogram-based Gradient Boosting achieved nearly identical performance with an F1 score of 0.957 and the same ROC-AUC. In comparison, Logistic Regression and Decision Tree produced lower F1 scores of 0.902 and 0.935, respectively, although all four models achieved ROC-AUC values above 0.94.
The ROC curves shown in Figure 2 further confirm these observations. Random Forest and Histogram-based Gradient Boosting remain consistently closest to the upper-left corner of the ROC space, indicating superior discriminative capability under clean conditions. Logistic Regression also achieved a relatively high ROC-AUC (0.979) despite its lower F1 score, whereas Decision Tree exhibited the lowest ROC-AUC (0.947) among the evaluated models.
These baseline results provide a reliable reference for the subsequent adversarial evaluation. By establishing that all models perform well under clean conditions, the following experiments can more clearly attribute any performance degradation to feature-space and problem-space attacks rather than to differences in baseline classification capability.

4.2. Feature-Space Fragility and the Accuracy–Robustness Gap

Table 2 and Figure 3 summarize the phishing detection rate (recall) under progressively stronger feature-space attacks. As the attack strength increases, all classifiers experience a substantial decline in phishing detection performance, confirming that models achieving strong performance on clean data remain vulnerable to direct feature-space manipulation.
At the maximum attack strength ( s = 1.0 ), the detection rate decreases markedly for every model. Random Forest declines from 0.960 to 0.363, while Histogram-based Gradient Boosting exhibits the largest performance degradation, falling from 0.957 to 0.106. In contrast, Logistic Regression, despite achieving the lowest baseline performance under clean conditions, retains the highest phishing detection rate (0.627) at the strongest attack level.
These results reveal a clear accuracy–robustness gap. Models that achieve the highest baseline performance are not necessarily the most resilient to feature-space attacks. In particular, the two ensemble-based models that performed best under clean conditions experience the largest degradation as attack strength increases, whereas Logistic Regression exhibits the greatest robustness throughout the evaluation.
Figure 3 further illustrates this trend. Detection performance remains relatively stable under weak perturbations ( s 0.25 ) but declines rapidly as the manipulation strength increases, particularly for the ensemble-based models. This behaviour highlights the limitations of evaluating phishing detectors solely on clean datasets and motivates the subsequent investigation of defense strategies and problem-space attacks.

4.3. Defenses Across Models

Table 3 and Figure 4 compare phishing detection performance under the strongest feature-space attack ( s = 1.0 ) before and after applying the two defense strategies. Both adversarial training and robust feature selection substantially improve phishing detection across all evaluated classifiers, although their effectiveness differs.
Adversarial training consistently provides the largest performance gains. Across all four classifiers, phishing recall increases to approximately 0.99 under the strongest attack, effectively restoring the detection performance observed under clean conditions. Notably, this improvement is achieved without any measurable degradation in clean-data performance.
Robust feature selection also produces a substantial improvement compared with the undefended models. By excluding the 12 manipulable lexical features during training, all classifiers maintain phishing recall between 0.915 and 0.957 under the strongest attack. Although this defense does not fully recover the clean-data performance achieved through adversarial training, its performance remains remarkably stable across different model architectures, indicating that the proposed non-manipulated features retain considerable discriminative power even under adversarial manipulation. For Random Forest, phishing recall decreases by only 0.003 compared with the clean baseline (0.960 vs. 0.957), illustrating that excluding manipulable lexical features can preserve nearly all clean-data performance while substantially improving robustness.
Figure 4 further highlights the consistent behaviour of both defense strategies across all classifiers. These results demonstrate that reducing reliance on manipulable lexical features substantially improves resilience to feature-space attacks and provides an effective defense against adversarial feature manipulation.
To quantify variability, we repeated the key Dataset A experiments over three stratified splits (seeds 42, 7, 123) and computed 95% confidence intervals. The Random Forest baseline F1 is 0.959 (95% CI [0.958, 0.960]); its recall under the strongest feature-space attack is 0.400 (95% CI [0.351, 0.448]); Histogram-based Gradient Boosting under the same attack is 0.090 (95% CI [0.049, 0.132]); adversarial training restores recall to 0.995 (95% CI [0.995, 0.996]); and robust feature selection yields 0.957 (95% CI [0.955, 0.958]). The narrow intervals indicate that the findings are stable across resampling, and replace the earlier informal reference to repeated experiments.

4.4. Is the Fragility Structural? Hyperparameter and Per-Feature Analysis

To better understand the origin of the observed feature-space vulnerability, we further investigate whether the performance degradation is primarily influenced by model hyperparameters or by the manipulation of individual lexical features. Figure 5 presents a hyperparameter sensitivity analysis for Random Forest, while Figure 6 evaluates the impact of manipulating each lexical feature individually.
Figure 5 shows that varying the number of trees and the maximum tree depth produces only modest changes in phishing recall under feature-space attack. Across all evaluated configurations, recall remains consistently low, ranging from 0.231 to 0.363. These results indicate that the observed vulnerability is not specific to a particular Random Forest configuration but persists across a broad range of hyperparameter settings.
Figure 6 provides further insight into the source of this vulnerability. Manipulating any single lexical feature in isolation results in only a small reduction in phishing recall, with the largest decrease limited to 0.029. This suggests that no individual feature dominates the attack outcome. Instead, the substantial degradation observed in Section 4.2 arises from the combined manipulation of multiple lexical features, indicating that the effectiveness of the feature-space attack is driven by cumulative rather than individual feature perturbations. This observation is consistent with the attack formulation introduced in Section 3.3, where multiple manipulable lexical features are perturbed simultaneously during adversarial example generation.

4.5. Why the Attack Works: SHAP Attribution Analysis

To better understand the mechanism underlying the feature-space attack, Figure 7 compares SHAP feature attributions for phishing samples under clean conditions and after adversarial manipulation. The analysis reveals a clear shift in feature importance following the attack, providing insight into how the manipulation alters the model’s decision process.
The importance of several manipulable lexical features decreases after the attack. For example, the SHAP contribution of directory_length decreases from 0.092 to 0.077, while length_url decreases from 0.050 to 0.028. In contrast, the contribution of the host-based feature time_domain_activation increases from 0.037 to 0.048, indicating that the classifier places greater emphasis on host-related information when lexical cues become less reliable.
These findings provide an explanation for the effectiveness of the defense strategies presented in Section 4.3. As the influence of manipulable lexical features diminishes under attack, features derived from host characteristics become increasingly important. This observation supports both the robust feature selection strategy and the proposed features designed to improve robustness, which intentionally rely on information that is substantially more resistant to direct lexical manipulation. Together, these results provide an interpretable explanation for the observed accuracy–robustness gap and reinforce the rationale behind the proposed feature design.

4.6. The Reality Check: Problem-Space Attack on Real URLs

The experiments on Dataset B provide a realistic assessment of adversarial robustness by evaluating attacks performed directly on real URLs rather than on manipulated feature vectors. Under clean conditions, the detector achieves an F1 score of 0.994. Across all evaluated manipulation levels, modifying the original URL results in only negligible changes in phishing detection performance, with recall remaining close to its clean baseline.
To remove any confound arising from comparing a feature dataset (A) with a real-URL dataset (B), we further apply both attack types to the same Dataset B, using the same Random Forest classifier and the same set of manipulable lexical features. The result is unambiguous (Table 4): under the feature-space attack, detection on Dataset B collapses from 0.985 at strength 0 to 0.000 at full strength, whereas under the problem-space attack on the identical data it is essentially unchanged, moving from 0.982 to 1.000 across the same range. The two zero-attack baselines (0.985 and 0.982) correspond to the same model evaluated in two independent attack runs and differ only by sampling variation. Because dataset, model, and manipulable features are held constant, the divergence is attributable to the attack space itself rather than to dataset differences.
Figure 8 directly compares the feature-space and problem-space attack scenarios on Dataset B. While phishing detection deteriorates substantially under feature-space manipulation, falling to 0.000 at the strongest attack level, the corresponding problem-space curve remains almost unchanged throughout the evaluation. We note that the two feature-space collapse values reported in this paper refer to different settings and are therefore not directly comparable: the Random Forest model on the 111-feature Dataset A declines to 0.363 (Table 2), whereas the lexical-only model on the 9-feature Dataset B, which retains far fewer non-manipulable signals, declines to 0.000 (Table 4). This contrast demonstrates that the severe degradation observed under feature-space attacks does not readily translate to realistic attacks on valid URLs.
The SHAP analysis presented in Section 4.5 provides a plausible explanation for this behaviour. Although lexical modifications reduce the influence of several URL-based features, discriminative information increasingly shifts toward host-based characteristics, which remain largely unaffected by simple URL editing. Consequently, modifying a valid phishing URL has only a limited impact on the overall feature representation and, therefore, on the classifier’s prediction.
To address the risk of domain-level information leakage under a random split, we repeated the Dataset B evaluation with a domain-disjoint split in which no registered domain (5538 unique domains) appears in both partitions. As expected, clean performance is lower because the model can no longer memorize domain identities (lexical-only clean F1 0.884 versus 0.988 under the random split; proposed 0.896 versus 0.994), but the qualitative conclusions are unchanged: under the strongest feature-space attack the lexical-only model falls to 0.000 while the proposed features retain 0.202 (versus 0.280 under the random split), and the problem-space attack remains ineffective.
These findings reinforce the central argument of this study: robustness evaluations based solely on feature-space perturbations may substantially overestimate the practical vulnerability of phishing detectors. Incorporating realistic problem-space attacks is therefore essential for obtaining a more reliable assessment of adversarial robustness. This finding supports the use of problem-space evaluation as a more realistic benchmark for assessing the adversarial robustness of phishing detection systems.

4.7. Host-Based Features as the Robust Core

To identify the source of the observed robustness, we further examine the contribution of host-based features in Dataset A. Collectively, host- and SEO-related features account for approximately 21% of the overall feature importance, with domain age representing the most influential host-based characteristic.
Figure 9 compares the distribution of domain activation time for legitimate and phishing domains. Legitimate domains are generally substantially older than phishing domains, providing a discriminative signal that cannot be easily modified through simple lexical manipulation of the URL. This observation is consistent with the SHAP analysis presented in Section 4.5, which showed that the relative importance of host-based information increases under feature-space attack.
To further evaluate the contribution of these features, we trained a classifier using only host-based attributes. As shown in Figure 10, the host-only model maintains identical phishing recall under clean and adversarial conditions (0.84 vs. 0.84), whereas the full model experiences a substantial decline from 0.96 to 0.36 under the same attack. Although the host-only model achieves a lower baseline recall than the full model, its performance remains stable because the attack targets only lexical features.
These findings indicate that host-based features constitute a stable source of discriminative information that is largely unaffected by feature-space manipulation. This provides further evidence supporting the proposed features designed to improve robustness, which intentionally emphasize characteristics that are substantially more resistant to direct lexical manipulation.

4.8. Robustness Evaluation of the Proposed Features

To evaluate the effectiveness of the proposed features introduced in Section 3.4, we augment the baseline lexical feature set with the proposed host- and semantic-based features and evaluate performance on Dataset B under progressively stronger feature-space attacks. Table 5 and Figure 11 summarize the resulting phishing detection performance.
Under clean conditions, incorporating the proposed features produces a modest improvement in F1 score, increasing performance from 0.985 to 0.994. As attack strength increases, however, the benefit becomes substantially more pronounced. While the lexical-only model experiences a rapid degradation in phishing detection performance, the augmented model consistently maintains substantially higher recall across all attack levels.
The largest improvement is observed under the strongest attacks. At an attack strength of 0.8, phishing recall increases from 0.003 to 0.294 (+29.1 percentage points), while under the strongest attack ( s = 1.0 ), the augmented model maintains a phishing recall of 0.283 compared with complete detection failure for the lexical-only model. These results demonstrate that the proposed features substantially improve robustness against feature-space manipulation while preserving strong performance under clean conditions.
Among the proposed features, subdomain depth, character entropy, and lexical word validity contribute most strongly to the observed performance gains. By contrast, free and suspicious top-level domain (TLD) indicators provided only limited discriminative value for this dataset and were therefore excluded from the final feature set. This observation highlights that not all intuitively meaningful host-related indicators contribute equally, reinforcing the importance of empirical feature evaluation during feature design.
The preceding test assumes a non-adaptive attacker that ignores the proposed features. To evaluate fairly, we consider an adaptive attacker permitted to also target the manipulable components of the proposed set (lowering entropy and subdomain depth, and avoiding the homoglyph and brand-substring flags). Table 6 and Figure 12 report the outcome. Under moderate attacks the proposed features still help (recall 0.919 versus 0.945 at s = 0.4 ; 0.619 versus 0.768 at s = 0.6 , adaptive versus non-adaptive), but under the strongest adaptive attack the advantage disappears, with recall falling to 0.000—matching the lexical-only baseline. The genuinely attack-invariant component is therefore the host-derived feature set, which URL editing cannot alter at all. We consequently position the proposed semantic and structural features as raising the attacker’s cost and helping against non-adaptive and moderate attacks, and as a complement to—not a replacement for—host-based signals.
Overall, these results show that incorporating features substantially more resistant to direct lexical manipulation provides an effective means of improving adversarial robustness while preserving strong performance under clean conditions.

5. Discussion

The results presented in this study have several important implications for the evaluation and design of phishing detection systems. First, they demonstrate that feature-space robustness alone can substantially overestimate the practical vulnerability of a detector. Although feature-space attacks reduce Random Forest phishing recall on Dataset A from 0.96 to 0.36 (and drive the lexical-only model on Dataset B to zero), the corresponding problem-space evaluation on the same real URLs shows almost no degradation in detection performance. Consequently, reporting robustness solely under feature-space perturbations may provide an overly pessimistic assessment of a model’s operational security.
Second, the experiments reveal that robustness is not directly correlated with clean-data performance. The models achieving the highest baseline performance under clean conditions are not necessarily the most resilient to adversarial manipulation. This finding suggests that model selection for phishing detection should consider adversarial robustness alongside conventional performance metrics rather than relying exclusively on clean-data evaluation.
Third, the experimental analysis consistently identifies host-based information as the primary source of robustness. The SHAP analysis, host-only experiments, and evaluation of the proposed feature set all indicate that characteristics which are substantially more resistant to direct lexical manipulation provide stable discriminative information even under adversarial conditions. The adaptive-attacker analysis qualifies this: the semantic and structural features raise the attacker’s cost and help under moderate attacks, but only host-derived features are strictly attack-invariant, so we frame the proposed representation as complementary to host-based signals rather than a standalone defense. This observation is consistent with recent studies showing that incorporating metadata and host-related information substantially improves the resilience of phishing URL detectors under adversarial evasion scenarios [28].
These findings extend the evasion-space perspective introduced by Apruzzese et al. [9] and its journal extension [16] by demonstrating, in the specific context of phishing detection, that feature-space evaluations alone may not accurately reflect realistic adversarial risk. At the same time, they establish a direct connection with the typosquatting, homoglyph, and domain impersonation literature [12,13,14], showing that domain characteristics originally studied for phishing detection also provide valuable robustness properties under adversarial manipulation. More broadly, treating robustness as a property of the feature representation complements architecture- and training-level approaches to AI-system resilience such as that of Moskalenko et al. [22].

6. Limitations and Threats to Validity

This study has several limitations that should be considered when interpreting the results. First, the feature set extracted for Dataset B is intentionally more limited than that of Dataset A. Our custom feature extraction framework computes lexical features together with selected host-based attributes but does not include the full range of network-derived information (e.g., live WHOIS records or DNS-based features) available in Dataset A. Incorporating these additional sources of information may further improve robustness under realistic attack scenarios.
Second, the adversarial evaluation considers a median-shift feature-space attack together with a problem-space attack based on realistic URL modifications. Although other attack strategies, such as gradient-based or query-based methods [7], may produce different perturbation patterns in the feature space, they remain subject to the same realizability constraints when attacks are required to generate valid URLs. We further note that we verify the syntactic validity and host-preservation of problem-space transformations but do not verify the live page-level functionality of historical phishing URLs, most of which are offline; our claims therefore concern host-preserving URL edits.
Third, some host-based characteristics may also be circumvented in practice. For example, attackers can exploit aged or compromised domains to reduce the discriminative value of features such as domain age. Consistent with this, our adaptive-attacker analysis (Section 4.8) shows that the semantic and structural components of the proposed set do not withstand a determined adversary who targets them directly. Consequently, the proposed feature set should be viewed as complementary to existing phishing detection features rather than as a complete replacement for them.
Finally, although both datasets used in this study are relatively large and representative, phishing attacks continue to evolve over time. Future work should therefore investigate temporal robustness, cross-dataset generalization, and the effectiveness of the proposed features against emerging phishing strategies and newly observed attack patterns. Evaluating the proposed feature set against additional real-world phishing datasets and continuously evolving attack techniques represents an important direction for future research.

7. Conclusions

This study presented a comprehensive investigation of adversarial robustness in URL-based phishing detection by combining feature-space and problem-space evaluations across two complementary datasets. While feature-space attacks have become the dominant benchmark for evaluating adversarial robustness, our results demonstrate that they do not necessarily reflect the behaviour of phishing detectors under realistic attack conditions. By explicitly comparing feature-space perturbations with attacks performed on valid URLs, we provide a more complete assessment of adversarial robustness in practical phishing detection scenarios.
The experimental results show that feature-space attacks substantially overestimate the practical vulnerability of phishing detectors. Although feature-space perturbations reduce Random Forest phishing recall on Dataset A from 0.96 to 0.36, the corresponding problem-space attacks performed on real URLs have only a limited effect on detection performance. Further analysis demonstrates that this difference arises because host-based characteristics continue to provide stable discriminative information even when manipulable lexical features are altered.
Building on these observations, we proposed a set of features designed to improve robustness by emphasizing characteristics that are substantially more resistant to direct lexical manipulation. Experimental evaluation demonstrated that incorporating these features consistently improved robustness under feature-space attacks while preserving excellent clean-data performance. The proposed feature set increased clean-data performance to an F1 score of 0.994 and maintained substantially higher phishing detection rates than conventional lexical features under the strongest evaluated attacks, although, as our adaptive-attacker analysis shows, host-based features remain the strictly attack-invariant core. Unlike previous studies that primarily evaluate robustness through feature-space perturbations, this work demonstrates the importance of jointly considering realistic attack feasibility and feature representation when assessing adversarial robustness in phishing detection.
More broadly, our findings suggest that adversarial robustness should not be viewed solely as a property of the learning algorithm but also as a consequence of the underlying feature representation. Designing features that remain informative under realistic attack constraints is therefore as important as developing more sophisticated classifiers. We hope that this work encourages future research to complement conventional feature-space evaluation with realistic problem-space assessment and to place greater emphasis on feature engineering as a fundamental component of adversarially robust phishing detection systems.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable. This study did not involve humans or animals; it relies exclusively on publicly available benchmark datasets and publicly available URL data.

Informed Consent Statement

Not applicable.

Data Availability Statement

The datasets analysed in this study are publicly available from the sources cited in references [25,26].

Conflicts of Interest

The author declares no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
MLMachine Learning
LRLogistic Regression
DTDecision Tree
RFRandom Forest
HGBHistogram-based Gradient Boosting
SHAPSHapley Additive exPlanations
TLDTop-Level Domain
APWGAnti-Phishing Working Group
IDNInternationalized Domain Name
URLUniform Resource Locator
DNSDomain Name System
TTLTime to Live
ASNAutonomous System Number
ROC-AUCReceiver Operating Characteristic–Area Under the Curve

References

  1. Tang, L.; Mahmoud, Q.H. A survey of machine learning-based solutions for phishing website detection. Mach. Learn. Knowl. Extr. 2021, 3, 672–694. [Google Scholar] [CrossRef] [Scilit]
  2. Safi, A.; Singh, S. A systematic literature review on phishing website detection techniques. J. King Saud Univ. Comput. Inf. Sci. 2023, 35, 590–611. [Google Scholar] [CrossRef] [Scilit]
  3. Anti-Phishing Working Group (APWG). Phishing Activity Trends Report, 1st Quarter 2025; APWG: Cambridge, MA, USA, July 2025; Available online: https://apwg.org/trendsreports (accessed on 20 July 2026).
  4. Jain, A.K.; Gupta, B.B. Towards detection of phishing websites on client-side using machine learning based approach. Telecommun. Syst. 2018, 68, 687–700. [Google Scholar] [CrossRef] [Scilit]
  5. Hannousse, A.; Yahiouche, S. Towards benchmark datasets for machine learning based website phishing detection: An experimental study. Eng. Appl. Artif. Intell. 2021, 104, 104347. [Google Scholar] [CrossRef] [Scilit]
  6. Goodfellow, I.J.; Shlens, J.; Szegedy, C. Explaining and harnessing adversarial examples. In Proceedings of the International Conference on Learning Representations (ICLR), San Diego, CA, USA, 7–9 May 2015. [Google Scholar]
  7. Szegedy, C.; Zaremba, W.; Sutskever, I.; Bruna, J.; Erhan, D.; Goodfellow, I.; Fergus, R. Intriguing properties of neural networks. In Proceedings of the International Conference on Learning Representations (ICLR), Banff, AB, Canada, 14–16 April 2014. [Google Scholar]
  8. Biggio, B.; Corona, I.; Maiorca, D.; Nelson, B.; Šrndić, N.; Laskov, P.; Giacinto, G.; Roli, F. Evasion attacks against machine learning at test time. In Machine Learning and Knowledge Discovery in Databases (ECML PKDD); LNCS 8190; Springer: Berlin/Heidelberg, Germany, 2013; pp. 387–402. [Google Scholar]
  9. Apruzzese, G.; Conti, M.; Yuan, Y. SpacePhish: The evasion-space of adversarial attacks against phishing website detectors using machine learning. In Proceedings of the Annual Computer Security Applications Conference (ACSAC), Austin, TX, USA, 5–9 December 2022. [Google Scholar]
  10. Song, F.; Lei, Y.; Chen, S.; Fan, L.; Liu, Y. Advanced evasion attacks and mitigations on practical ML-based phishing website classifiers. Int. J. Intell. Syst. 2021, 36, 5210–5240. [Google Scholar] [CrossRef] [Scilit]
  11. Lo Re, G.; Morana, M.; Rizzo, G. Adversarial attacks on phishing webpage detectors via heuristic search techniques. J. Inf. Secur. Appl. 2026, 100, 104486. [Google Scholar] [CrossRef] [Scilit]
  12. Agten, P.; Joosen, W.; Piessens, F.; Nikiforakis, N. Seven months’ worth of mistakes: A longitudinal study of typosquatting abuse. In Proceedings of the Network and Distributed System Security Symposium (NDSS), San Diego, CA, USA, 8–11 February 2015. [Google Scholar]
  13. Suzuki, H.; Chiba, D.; Yoneya, Y.; Mori, T. ShamFinder: An automated framework for detecting IDN homographs. In Proceedings of the ACM Internet Measurement Conference (IMC), Amsterdam, The Netherlands, 21–23 October 2019; pp. 449–462. [Google Scholar]
  14. Kintis, P.; Miramirkhani, N.; Lever, C.; Chen, Y.; Romero-Gómez, R.; Pitropakis, N.; Nikiforakis, N.; Antonakakis, M. Hiding in plain sight: A longitudinal study of combosquatting abuse. In Proceedings of the ACM Conference on Computer and Communications Security (CCS), Dallas, TX, USA, 30 October–3 November 2017; pp. 569–586. [Google Scholar]
  15. Marchal, S.; François, J.; State, R.; Engel, T. PhishStorm: Detecting phishing with streaming analytics. IEEE Trans. Netw. Serv. Manag. 2014, 11, 458–471. [Google Scholar] [CrossRef] [Scilit]
  16. Apruzzese, G.; Conti, M.; Yuan, Y. Multi-SpacePhish: Extending the evasion-space of adversarial attacks against phishing website detectors using machine learning. Digit. Threats Res. Pract. 2024, 5, 16. [Google Scholar] [CrossRef] [Scilit]
  17. Türk, F.; Kılıçaslan, M. Malicious URL detection with advanced machine learning and optimization-supported deep learning models. Appl. Sci. 2025, 15, 10090. [Google Scholar] [CrossRef] [Scilit]
  18. Biggio, B.; Roli, F. Wild patterns: Ten years after the rise of adversarial machine learning. Pattern Recognit. 2018, 84, 317–331. [Google Scholar] [CrossRef] [Scilit]
  19. Apruzzese, G.; Subrahmanian, V.S. Mitigating adversarial gray-box attacks against phishing detectors. IEEE Trans. Dependable Secur. Comput. 2023, 20, 3753–3769. [Google Scholar] [CrossRef] [Scilit]
  20. Sudar, K.M.; Rohan, M.; Vignesh, K. Detection of adversarial phishing attack using machine learning techniques. Sādhanā 2024, 49, 232. [Google Scholar] [CrossRef] [Scilit]
  21. Kulkarni, A.; Balachandran, V.; Divakaran, D.M.; Das, T. From ML to LLM: Evaluating the robustness of phishing webpage detection models against adversarial attacks. Digit. Threats Res. Pract. 2025, 6, 2. [Google Scholar] [CrossRef] [Scilit]
  22. Moskalenko, V.; Kharchenko, V.; Semenov, S. Model and method for providing resilience to resource-constrained AI-system. Sensors 2024, 24, 5951. [Google Scholar] [CrossRef] [Scilit]
  23. Hannousse, A.; Yahiouche, S.; Nait-Hamoud, M.C. Twenty-two years since revealing cross-site scripting attacks: A systematic mapping and a comprehensive survey. Comput. Sci. Rev. 2024, 52, 100634. [Google Scholar] [CrossRef] [Scilit]
  24. Tian, K.; Jan, S.T.; Hu, H.; Yao, D.; Wang, G. Needle in a haystack: Tracking down elite phishing domains in the wild. In Proceedings of the ACM Internet Measurement Conference (IMC), Boston, MA, USA, 31 October–2 November 2018; pp. 429–442. [Google Scholar]
  25. Vrbančič, G.; Fister, I., Jr.; Podgorelec, V. Datasets for phishing websites detection. Data Brief 2020, 33, 106438. [Google Scholar] [CrossRef] [Scilit]
  26. Gopal, S. Phishing Website Detection by Machine Learning Techniques: Data Files (PhishTank Confirmed Phishing URLs and Benign URL List). GitHub Repository. 2020. Available online: https://github.com/shreyagopal/Phishing-Website-Detection-by-Machine-Learning-Techniques (accessed on 20 July 2026).
  27. Cui, Q.; Jourdan, G.-V.; Bochmann, G.v.; Onut, I.-V. SemanticPhish: A semantic-based scanning system for early detection of phishing attacks. In Proceedings of the 2020 APWG Symposium on Electronic Crime Research (eCrime), Boston, MA, USA, 16–19 November 2020; pp. 1–12. [Google Scholar]
  28. Chaudhuri, A.; Mohankumar, B. Adversarial-resilient lightweight phishing URL detection: Evaluating lexical and metadata features under evasion techniques. Sci. Rep. 2026, 16, 26668. [Google Scholar] [CrossRef] [Scilit]
Figure 1. Comparison of baseline F1 score and ROC-AUC for the evaluated classifiers on the clean test set of Dataset A.
Figure 1. Comparison of baseline F1 score and ROC-AUC for the evaluated classifiers on the clean test set of Dataset A.
Applsci 16 08737 g001
Figure 2. ROC curves of the evaluated classifiers on the clean test set of Dataset A.
Figure 2. ROC curves of the evaluated classifiers on the clean test set of Dataset A.
Applsci 16 08737 g002
Figure 3. Phishing detection rate (recall) of the evaluated classifiers under increasing feature-space attack strength on Dataset A.
Figure 3. Phishing detection rate (recall) of the evaluated classifiers under increasing feature-space attack strength on Dataset A.
Applsci 16 08737 g003
Figure 4. Comparison of phishing detection rate (recall) across classifiers with and without defense strategies under the strongest feature-space attack ( s = 1.0 ).
Figure 4. Comparison of phishing detection rate (recall) across classifiers with and without defense strategies under the strongest feature-space attack ( s = 1.0 ).
Applsci 16 08737 g004
Figure 5. Hyperparameter sensitivity analysis of Random Forest under feature-space attack. Low phishing recall persists across different hyperparameter settings.
Figure 5. Hyperparameter sensitivity analysis of Random Forest under feature-space attack. Low phishing recall persists across different hyperparameter settings.
Applsci 16 08737 g005
Figure 6. Effect of manipulating individual lexical features on phishing recall. No single feature causes substantial performance degradation in isolation.
Figure 6. Effect of manipulating individual lexical features on phishing recall. No single feature causes substantial performance degradation in isolation.
Applsci 16 08737 g006
Figure 7. Comparison of SHAP feature attributions for phishing samples under clean conditions and after feature-space attack.
Figure 7. Comparison of SHAP feature attributions for phishing samples under clean conditions and after feature-space attack.
Applsci 16 08737 g007
Figure 8. Comparison of feature-space and problem-space attacks. While feature-space perturbations substantially reduce phishing detection, realistic URL manipulation has only a limited effect on detection performance. The light red shaded region denotes detection recall below 0.5, corresponding to a high-evasion regime.
Figure 8. Comparison of feature-space and problem-space attacks. While feature-space perturbations substantially reduce phishing detection, realistic URL manipulation has only a limited effect on detection performance. The light red shaded region denotes detection recall below 0.5, corresponding to a high-evasion regime.
Applsci 16 08737 g008
Figure 9. Distribution of domain activation time for legitimate and phishing domains. Legitimate domains are generally older, providing a stable discriminative signal.
Figure 9. Distribution of domain activation time for legitimate and phishing domains. Legitimate domains are generally older, providing a stable discriminative signal.
Applsci 16 08737 g009
Figure 10. Comparison of phishing detection performance for the full model and the host-only model under clean conditions and feature-space attack. The arrow highlights the reduction in recall of the full model from 0.96 without attack to 0.36 under attack.
Figure 10. Comparison of phishing detection performance for the full model and the host-only model under clean conditions and feature-space attack. The arrow highlights the reduction in recall of the full model from 0.96 without attack to 0.36 under attack.
Applsci 16 08737 g010
Figure 11. Phishing detection performance of the lexical-only model and the augmented model incorporating the proposed features under increasing feature-space attack strength.
Figure 11. Phishing detection performance of the lexical-only model and the augmented model incorporating the proposed features under increasing feature-space attack strength.
Applsci 16 08737 g011
Figure 12. Adaptive versus non-adaptive attacker against the augmented model on Dataset B. The proposed features help under moderate attacks but do not withstand a strong adaptive adversary; host-based features remain the robust core.
Figure 12. Adaptive versus non-adaptive attacker against the augmented model on Dataset B. The proposed features help under moderate attacks but do not withstand a strong adaptive adversary; host-based features remain the robust core.
Applsci 16 08737 g012
Table 1. Baseline classification performance of the evaluated classifiers on the clean test set of Dataset A.
Table 1. Baseline classification performance of the evaluated classifiers on the clean test set of Dataset A.
ModelAcc.Prec.RecallF1AUC
Logistic Regression0.9330.9010.9030.9020.979
Decision Tree0.9550.9340.9360.9350.947
Random Forest0.9710.9550.9600.9580.995
Gradient Boosting0.9710.9570.9570.9570.995
Table 2. Phishing detection rate (recall) under increasing feature-space attack strength on Dataset A.
Table 2. Phishing detection rate (recall) under increasing feature-space attack strength on Dataset A.
Models = 0.0s = 0.25s = 0.5s = 0.75s = 1.0
Logistic Regression0.9140.8990.8710.7520.627
Decision Tree0.9360.9050.8450.7580.433
Random Forest0.9600.9510.8640.6860.363
Gradient Boosting0.9570.9490.8080.6550.106
Table 3. Phishing detection rate (recall) under the strongest feature-space attack ( s = 1.0 ) with and without defense strategies on Dataset A.
Table 3. Phishing detection rate (recall) under the strongest feature-space attack ( s = 1.0 ) with and without defense strategies on Dataset A.
ModelCleanUndefendedAdv. TrainRobust Feat.
Logistic Regression0.9140.6270.9820.915
Decision Tree0.9340.4330.9960.921
Random Forest0.9600.3630.9950.957
Gradient Boosting0.9570.1060.9990.942
Table 4. Detection rate (recall) under feature-space versus problem-space attacks on the same Dataset B, using an identical Random Forest classifier and manipulable-feature budget.
Table 4. Detection rate (recall) under feature-space versus problem-space attacks on the same Dataset B, using an identical Random Forest classifier and manipulable-feature budget.
Attack Space0.00.250.50.751.0
Feature-space0.9850.9110.7490.1130.000
Problem-space0.9820.9910.9971.0001.000
Table 5. Phishing detection performance with and without the proposed features designed to improve robustness under increasing feature-space attack strength.
Table 5. Phishing detection performance with and without the proposed features designed to improve robustness under increasing feature-space attack strength.
Attack StrengthLexical Only+ProposedImprovement
0.0 (clean)0.9850.994+0.9 pp
0.40.8340.945+11.1 pp
0.60.5380.768+23.0 pp
0.80.0030.294+29.1 pp
1.0 (full)0.0000.283+28.3 pp
Table 6. Augmented-model detection (recall) on Dataset B under a non-adaptive versus an adaptive attacker that also targets the proposed features.
Table 6. Augmented-model detection (recall) on Dataset B under a non-adaptive versus an adaptive attacker that also targets the proposed features.
Attack StrengthNon-AdaptiveAdaptive
0.0 (clean)0.9940.994
0.40.9450.919
0.60.7680.619
0.80.2940.019
1.0 (full)0.2830.000
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Yıldırım, M. Adversarial Robustness in URL-Based Phishing Detection: Problem-Space Evaluation and Robust Feature Engineering. Appl. Sci. 2026, 16, 8737. https://doi.org/10.3390/app16178737

AMA Style

Yıldırım M. Adversarial Robustness in URL-Based Phishing Detection: Problem-Space Evaluation and Robust Feature Engineering. Applied Sciences. 2026; 16(17):8737. https://doi.org/10.3390/app16178737

Chicago/Turabian Style

Yıldırım, Merve. 2026. "Adversarial Robustness in URL-Based Phishing Detection: Problem-Space Evaluation and Robust Feature Engineering" Applied Sciences 16, no. 17: 8737. https://doi.org/10.3390/app16178737

APA Style

Yıldırım, M. (2026). Adversarial Robustness in URL-Based Phishing Detection: Problem-Space Evaluation and Robust Feature Engineering. Applied Sciences, 16(17), 8737. https://doi.org/10.3390/app16178737

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop