Skip to main content
Have a personal or library account? Click to login
Enhancing Cybersecurity Against Phishing Attacks Using VGA-Hyphishnet: A Hybrid Generative–Discriminative Model Cover

Enhancing Cybersecurity Against Phishing Attacks Using VGA-Hyphishnet: A Hybrid Generative–Discriminative Model

Open Access
|Aug 2026

Full Article

I. Introduction

Phishing is a form of social engineering attack that targets users’ personal and financial information by deceiving them into revealing sensitive data such as login credentials, banking details, and identity information [1]. One of the most common techniques used in phishing attacks is email spoofing, where attackers generate emails with falsified sender addresses to impersonate legitimate organizations or trusted entities. These phishing emails often appear to originate from reputable sources and are designed to lure users into visiting malicious websites or submitting confidential information through fraudulent forms. In many cases, cybercriminals also deploy malware on compromised systems to steal user credentials and gain unauthorized access to online accounts [2].

Phishers exploit multiple communication channels to collect user data, including email, online forums, URLs, instant messaging (IM), SMS, and phone calls [3]. The structure and appearance of phishing content are deliberately crafted to resemble authentic communications, thereby encouraging users to trust the message and unknowingly disclose sensitive information [4]. The primary objective of phishing attacks is to gain unauthorized access to confidential information for financial fraud or identity theft. As a result, phishing attacks have caused significant damage to individuals, organizations, and financial institutions worldwide [5].

The anti-phishing working group (APWG), a non-profit organization, maintains a global repository of verified phishing URLs and regularly publishes reports on phishing activities across the world [6]. According to recent reports, phishing incidents have increased dramatically in recent years, with the number of attacks nearly doubling between 2021 and 2022. In July 2022 alone, more than 280,000 phishing attempts were reported globally [7]. Webmail services remain one of the most frequently targeted sectors, and phishing attempts against well-known organizations increased from approximately 500 incidents in July 2022 to nearly 900 incidents by November 2022. Such attacks not only cause financial losses but also lead to severe cybersecurity risks for organizations and individuals.

A typical example of a phishing cyberattack involves sending an email that appears to originate from a trusted organization, such as a bank or corporate service provider, with the intention of persuading the recipient to open a malicious attachment or click on a fraudulent link. Once the victim interacts with the malicious content, attackers may gain access to confidential user information. Furthermore, phishing emails and websites are often carefully designed to closely mimic legitimate business platforms, making them difficult for users to distinguish from genuine services [8].

To address these challenges, artificial intelligence (AI) technologies have rapidly evolved and introduced intelligent techniques such as machine learning (ML) and deep learning (DL) for cybersecurity applications. AI-based methods have demonstrated strong capabilities in pattern recognition, anomaly detection, and adaptive learning, making them highly suitable for detecting sophisticated cyber threats [9]. Traditional ML approaches typically require manual feature extraction and feature selection processes, which depend heavily on human expertise. In such systems, feature engineering and classification are often performed as separate stages.

DL models overcome this limitation by automatically learning hierarchical representations of data and performing feature extraction and classification simultaneously, thereby improving detection accuracy and efficiency [10]. Unlike conventional ML models that rely on manually engineered features or third-party feature extraction tools, DL architectures automatically learn discriminative representations directly from raw data [11]. Furthermore, DL models are particularly effective when dealing with large-scale datasets, such as voice recognition, image classification, and phishing detection tasks, as they provide high performance and end-to-end learning capabilities. However, selecting the most appropriate algorithm for a given application remains challenging, and using an unsuitable model may significantly reduce detection accuracy and system efficiency [12].

Phishers continuously evolve their attack strategies by exploiting system vulnerabilities and users’ lack of awareness. As a result, early detection of phishing threats has become a critical requirement in modern cybersecurity systems. To address this issue, numerous anti-phishing detection techniques have been developed, and DL-based security solutions are increasingly being adopted across various sectors to combat emerging phishing threats [13]. Researchers have proposed several approaches for detecting phishing websites by leveraging the ability of DL models to extract meaningful features for URL classification. Many detection systems rely on a combination of lexical, structural, and statistical features derived from URLs, such as URL length, keyword frequency, character distribution, and domain-based characteristics.

Major contributions of this work

The main contributions of this research are summarized as follows:

  • Generative encoder with variational generative modeling (VGM):

    A novel generative encoder integrated with a VGM layer is proposed to enforce probabilistic regularization within the latent space. This architecture enables the model to learn compact and semantically meaningful latent representations directly from raw URL strings.

  • Self-evolving generative threat engine (SE-GTE):

    A novel SE-GTE is introduced to model the dynamic and evolving nature of phishing URLs within the latent space. The SE-GTE learns class-conditional probabilistic representations of benign and phishing URLs and continuously refines its threat knowledge by incorporating both historical and newly observed URL patterns, enabling adaptive threat evolution.

  • Likelihood-based feedback learning strategy:

    A likelihood-based feedback learning mechanism is developed to evaluate both real and synthetically generated latent samples. This strategy selectively reinforces high-confidence phishing patterns, improving the model’s ability to detect emerging phishing threats.

  • Hybrid generative–discriminative classifier:

    A hybrid generative–discriminative classifier is designed to jointly leverage discriminative posterior confidence and generative distributional consistency. The classifier incorporates an exponential-family coupled softmax (EF-CS) layer, which unifies generative and discriminative learning within a single probabilistic framework, thereby enhancing classification performance and robustness.

II. Related Works

The Internet has gradually entered all spheres of life in modernity. The current situation of internet-based information and communication technology (ICT) is prone to a myriad of attacks and infiltrations and the loss of a lot of money. In [14], the dual-branch CNN-based multi-modal framework, when trained to extract representations on raw URLs and HTML features and achieves a high classification accuracy of 99.53%, is based on the convolutional feature extraction, which inhibits the model to capture dynamic lexical patterns and long-range sequential dependencies that are common in dynamically generated phishing URLs. In order to overcome this weakness [15], proposes a joint gradient boosting/recurrent neural network ensemble architecture, with gradient boosting and RNNs respectively approximating the static, interpretable attributes of URLs and character-level sequential dependencies, respectively. Nevertheless, even with better sequential learning, the ensemble quality of the model contributes to complexity in computations and does not have an explicit process of comparison of similarities between benign and phishing URLs at a representational level. In order to address the lack of direct similarity learning [16], suggests a Siamese network to share the weight between two long short-term memory (LSTM) subnetworks to allow robust feature representation learning through direct modeling of the relational distance between classes of URLs. Although this method enhances phishing and legitimate URL separation, it works more with sequence similarity and is not as essential in uncertainty management and rule-based reasoning, which are essential in the real-world noisy phishing dataset. To fill this gap [17], combines Neyman similarity with an Autoencoder with fuzzy neural network stacking and a deep belief network that is more robust due to the use of fuzzy reasoning and uncertainty modeling. However, the use of handcrafted similarity metrics and the use of many stacked operations makes the model more complex and prevents the scaling to large-scale and real-time implementation. In an effort to minimize the complexity of architectural design and increase the robustness of feature learning [18], proposes hybrid spatial-sequential attention CharGRU model which has a logically constrained neural network. Hybrid spatial-sequential attention module is suitable in capturing multi-scale URL invariance and logical constraints enhance the generalization through prior knowledge. Although these have the benefits, the model mostly works at the character-sequence level and does not explicitly utilize contextual bidirectional dependencies, which are important in making sense of phishing URLs containing obfuscated token structures. This is limited in [19], where a BiLSTM-gated highway attention CNN model captures contextual associations on either side, but at the cost of allowing fast convergence and low response time of 12.46 ms. Nonetheless, the deep hybrid architecture adds overhead in terms of memory and might fail to deploy in resource-limited environments. To strike a golden mean between detection efficiency and computation efficiency [20], suggests a hybrid A decision-tree model based on logistic regression, support vector classifier, as well as soft and hard voting. Despite good performance and performance, this assemblage is limited in its ability to automatically learn high-level representations out of the unstructured URL data due to the fact that it uses traditional ML classifiers. In order to enhance the learning of representations [21], proposes models that integrate both the LSTM and deep neural networks to perform a better task in terms of temporal modeling and non-linear feature extraction. However, such models remain based upon fixed sets of features and are not a complete character-level learning system. In order to remove the need to rely on handcrafted features altogether [22], introduces a new neural architecture where the process of discriminative multi-level character discovery can be performed through the end-to-end concatenation of four-channel information flow through cascading CNN, LSTM, and attention layers. In any case, the design achieves a competitive accuracy of 98.27, it does not explicitly involve adaptive feedback learning and generative pattern generalization which are necessary in detecting zero-day phishing attacks and quickly changing patterns of threats.

III. Proposed Methodology

In the current paper, we present URL-Phish, a phishing URL-detection algorithm based on generative AI and learns distribution-aware latent representations of raw URLs directly. It is an end-to-end pipeline, which consists of: (i) acquisition and annotation of the data, (ii) pre-process the URLs and standard forms, (iii) learning features of a variational latent model, and (iv) phishing classification with hybrid generative-discrimination decision module, which is complemented by a self-evolving threat engine. The aim is to improve generalization to both the zero-day phishing URLs and adversarial phishing URLs, by training a continuous latent manifold, which has been learned to capture structural variation. The proposed VGM framework is conceptually inspired by variational autoencoders (VAEs) but differs in both formulation and objective. Unlike standard VAEs, which assume a fixed isotropic Gaussian prior p(z) = N(0,I) and focus on reconstructing input data, VGM employs class-conditional latent distributions p (z | y = c) = N(μc,∑ c) to explicitly model the probabilistic structure of benign and phishing URL representations. Furthermore, VGM is not designed for data reconstruction; instead, it learns discriminative latent embeddings that facilitate probabilistic threat scoring and synthetic threat generation. This enables seamless integration with the SE-GTE, allowing the model to dynamically adapt to evolving phishing patterns. Therefore, VGM can be interpreted as a task-specific extension of VAE principles tailored for classification and adversarial threat modeling rather than a direct implementation of a conventional VAE.

a. Dataset description

The URL-Phish dataset that the current research will be based is URL-Phish dataset [23], which is comprised of 111,660 URLs (11,660 phishing [label = 1] and 100,000 non-phishing [label = 0]). This was compiled in a systematic process that involved information collection, pre-processing, generation of representation and data segmentation, and validation of the baseline.

  • Benign subset (100,000 samples): Benign URLs were found on popular domains, such as.edu,.gov and Alexa Top Sites. The subset was downloaded to a publicly available Zenodo repository of DOI-registered URL listings and provides reliability and validity.

  • Phishing subclass (11,660 samples): Phishing URL sources PhishTank is a threat intelligence community site where phishing URLs reports are assembled and confirmed. Phishing category includes the date between November 12, 2024 and September 24, 2025, thus it is important to ensure that there is time gap between phishing campaign and attacks.

b. Preprocessing of dataset

The dataset undergoes preprocessing through data scraping, integration, duplicate removal, and character-level tokenization to preserve the structural integrity of URLs. Each raw URL string v is decomposed into an ordered sequence of characters:

v=[c1,c2,,cn]

To explicitly capture sequence boundaries, special tokens are appended, resulting in:

STA,c1,c2,,cn,SEP

To maintain uniform input dimensionality, each sequence is normalized to a fixed length d. Sequences longer than d are truncated, while shorter sequences are padded accordingly, yielding an indexed representation:

xd

Subsequently, the indexed tokens are transformed into dense vector embeddings of dimension h, resulting in a fixed-size URL representation:

Vd×h

This representation preserves sequential and structural characteristics of the URL while ensuring consistency across all samples, thereby serving as input to the subsequent generative feature extraction and classification modules.

Finally, dense representations of dimension h are indexed and made consistent across the samples, and they act as inputs to the subsequent generative feature extraction and classification modules.

Representation learning is also carried out over the preprocessing in order to perform the feature analysis and selection rather than discarding the features manually. Character level embedding preserves the signs of the lexical and structure, but truncation and padding fixed length reduce the noise of information introduced by the difference in length of URLs. The dimensionality reduction is further implemented in the generative encoder through projection and residual blocks which are the dimensionality reduction of the representation of URLs in the high dimensions into small embeddings without alteration of the discriminative patterns. These embeddings are then converted to a low-dimensional probabilistic latent space with the assistance of the VGM that lowers the number of unneeded variations without harming the structures connected to phishing. The hierarchical compression (raw URL—embedding—latent vector) is associated with reduced computation cost and time, model efficiency, and high resistance to the shifting phishing trends.

c. Generative AI–driven representation learning

In the study, generative AI is employed to obtain meaningful trends on the raw URL data by modeling underlying structure of phishing behavior rather than just modeling the limits of classification. However, unlike the conventional approaches, the generative learning assists the system to comprehend alteration and obscurity in the design of URLs and this provides the system with greater level of adaptability to the more pliable phishing plans. It is aimed at the conversion of uncoded URLs into informational latent forms with structural relationships.

Z=G(X)
that is, X is the input URL and Z is the learned latent representation.

The URL representation is coded using a help of a generative encoder as illustrated below.

c.i. Generative encoder for URL representation

Generative encoder can extract both structural and sequential features in the URLs. It does not acquire lexical dependencies, patterns of obfuscation and implicit character relationships through engineered aspects. This allows the model to form small representations with difference between benign and phishing URLs.

L=Lgen+λLclsE=f(X)

X represents the input URL, whereas E denotes the encoded feature representation.

Algorithm 1:

Generative Encoder for URL Representation

Input: Embedded URL tensor V(i) ∈ ℝd×h, optional auxiliary cues at(i)t=1T , static cues static(i)

Output: Deterministic embedding comp_emb(i)

Steps:

  1. Feature projection: For each t = 1..T, project auxiliary cues using residual blocks:

  2. at(i) residual block at(i) with l′ ≪ l.

  3. Stack projected cues a1:T(i) .

  4. Concatenate encoder inputs:

  5. X(i)ConcatV(i);a1:T(i);static(i)

  6. Pass through deep residual encoder with depth hypere:

  7. compemb(i)X(i)

  8. Return compemb(i).

c.ii. Variational generative modeling for pattern generalization

Variational modeling can help improve the performance of the representation by using uncertainty learning. Other models have the limitation of using the features learned as constants. However, in variational modeling, the use of probabilistic patterns helps in the representation of the features learned. This helps in the generalization of unseen phishing attacks and the robustness of the model against zero-day attacks.

Z=μ+σε
with σ being the mean and μ being the variance, and ε\epsilonε is random noise.

Algorithm 2:

Variational Generative Modeling (VGM)

Input: Deterministic embedding compemb(i).

Output: Latent sample z(i), posterior parameters μ(i), σ(i)

  1. Receive deterministic embedding compemb(i) from the generative encoder.

  2. Generate the latent posterior distribution conditioned on compemb(i) using Eq. (3):

  3. Convert Extract μ(i) and σ2(i) from the variational encoder network (mean and variance vectors):

  4. Sample Gaussian noise εN(0,I) (Eq. (4))

  5. Obtain the latent sample using the reparameterization trick in Eq. (4):

    z(i)=μ(i)+σ(i)ε,εN(O,1)

  6. Decode z(i) to reconstruct the URL representation (reconstruction is referenced by Eq. (5) through log pθ (x | z)

  7. Compute the ELBO training objective using Eq. (5):

    LossELBO=Eqϕ(z|x)logpθ(x|z)Kullqϕ(z|x)|p(z)

  8. Compute Optimize model parameters by maximizing ELBO (or minimizing −LossELBO) to encourage reconstruction + latent regularization.

  9. Return z(i), μ(i), σ(i) and LossELBO

d. Generative AI classification

Following the extraction of distribution-aware latent features using the generative encoder and variational modeling, the proposed system executes phishing detection through a classification module driven by generative AI. This module is engineered to maintain efficacy against advancing phishing tactics through the integration of a SE-GTE and a hybrid generative–discriminative classifier, as depicted in Figure 1.

Figure 1:

Architecture of hybrid generative-discriminative classifier with SE-GTE. SE-GTE, self-evolving generative threat engine.

d.i. SE-GTE design

The SE-GTE continuously learns phishing behavior and generates synthetic threat patterns in the latent space. This helps the system anticipate new phishing strategies and enhances adaptability by expanding the learning boundary with simulated attack patterns.

T=Z+δ
where Z is the latent representation and δ represents controlled perturbation used to generate new threats.

Algorithm 3:

Self-Evolving Generative Threat Engine (SE-GTE)

Input: URL sample ui, latent dimension d, evolution noise scale τ, confidence threshold δ

Output: High-confidence synthetic threats {zj′} and threat scores S (·)

  1. Receive input URL ui from the pipeline.

  2. Map the URL to latent embedding using Eq. (13):

    zi=E(ui),ziRd

  3. Model benign and phishing latent behavior using Eq. (14):

    p(z|y=c)=Nμc,Σc,wherec{0,1}

  4. Sample synthetic phishing candidates from the phishing distribution

    zjNμ1,Σ1,

  5. Apply controlled perturbation to diversify synthetic threats (Eq. (15)):

    zj=zj+,N0,τl

  6. Compute the probabilistic threat confidence score using Eq. (16):

    S(z)=logp(z|y=1)logp(z|y=0)

  7. Select only high-confidence synthetic threats using Eq. (17):

    S(zj)

  8. Add selected zj into the evolving threat pool to enrich the classifier decision boundary.

  9. Output the high-confidence threat embeddings and corresponding S (·) scores.

d.ii. Hybrid generative-discriminative classifier

This classifier combines the knowledge of patterns from the generative learning paradigm and the ability to predict from the discriminative learning paradigm. It makes a stable and accurate classification decision despite the changing patterns of phishing.

P(y|Z)=αPd+(1α)Pg
where Pd is discriminative probability an d Pg is generative likelihood.

Algorithm 4:

Hybrid Generative–Discriminative Classifier (EF-CS + Fusion)

Input: Latent feature y = z, fusion weight α

Output: Predicted class label c^{0,1}

  1. Receive latent representation yz from the VGM output.

  2. Compute discriminative class probability using the EF-CS softmax formulation in Eq. (23):

    p(c|y,Δ)=expwcTy+bcc=1CexpwcTy+bc

  3. Compute generative modeling signal through exponential-family likelihood in Eq. (24):

    py,c|Δc=πch(y)expηcTT(y)A(ηc)

  4. Use both discriminative and generative signals for decision making.

  5. Fuse both signals using the weighted decision criterion given in Eq. (25):

    c^=argmaxc[αlogp(c|y)+(1α)logp(y|c)

  6. Evaluate the fused score for c = 0 (benign) and c = 1 (phishing).

  7. Select the class c^ that maximizes the fused criterion.

  8. Output the predicted label c^ along with confidence.

  9. Return c^ .

e. Model building

The paper introduces a hybrid phishing URL recognition model, which is trained on a generative AI that integrates representation learning, probabilistic generalization, adaptive threat synthesis, and confidence-sensitive categorization into a single model. The last recommended one is an integrated version of four linked modules, that is: (i) Generative Encoder to encode URL, (ii) VGM, (iii) SE-GTE, and (iv) hybrid generative-discriminative classifier (EF-CS + Fusion). The combination of these modules is a workflow that learns resilient latent patterns on unprocessed URLs and is robust to changing the phishing policy and a zero-day phishing approach.

e.i. Hybrid architecture and workflow of proposed model

This begins with preprocessing URLs, encoding, probabilistic modeling, threat synthesis and classification. This kind of multi-level system improves the security of the detection and allows the system to handle new phishing attacks.

Y=f(Z)
where component predictive label Y predicted and learned latent feature Z.

f. Training setup and experimental protocol

The stratified data splits are utilized to train the model so as to secure the balance of classes and improve the quality of learning. The challenge is on maximizing the output of class imbalanced detectors and adapting to evolving phishing activities.

L=Lgen+λLcls
where Lgen is generative loss and λLcls is classification loss.

The stratified data splits are utilized to train the model so as to secure the balance of classes and improve the quality of learning. The challenge is on maximizing the output of class imbalanced detectors and adapting to evolving phishing activities.

g. Training configuration and hyperparameters

The model was trained using the Adam optimizer with an initial learning rate of 0.001 and a batch size of 64. The training process was conducted for 50 epochs with early stopping based on validation loss to prevent overfitting. The latent representation dimension was set to 128, and dropout regularization with a rate of 0.3 was applied in the encoder layers. The overall training objective combines the variational generative loss and classification loss using a balancing parameter λ to ensure stable joint optimization of generative representation learning and discriminative classification.

The model was trained using the Adam optimizer with an initial learning rate of 0.001 and a batch size of 64. Training was conducted for 50 epochs, with early stopping applied based on validation loss to mitigate overfitting. The latent representation dimension in the generative encoder was set to 128 to capture meaningful feature abstractions from the input data. Dropout regularization with a rate of 0.3 was incorporated within the encoder layers to improve generalization and reduce the risk of overfitting. The dataset was partitioned using an 80:10:10 split for training, validation, and testing, respectively, while maintaining class balance through stratified sampling. The over-all objective function jointly optimizes the generative reconstruction loss, the Kullback–Leibler divergence regularization, and the classification loss, balanced through a weighting parameter λ to ensure stable learning between generative representation modeling and discriminative prediction.

Algorithm 5:

VGA-HyPhishNet: Variational Generative Hybrid Model for Phishing URL Detection

Require: Raw URL dataset D=ui,cii=1N , latent dimension d, fusion weight α, loss trade-off λ

Ensure: Predicted class label c^i{0,1}

  • 1: Preprocessing:

  • 2: for each URL uiD do

  • 3: Tokenize URL into character sequence

  • 4: Encode characters into embedding tensor

  • 5: Extract auxiliary URL features (lexical, structural, and statistical)

  • 6: end for

  • 7: Generative URL Encoding:

  • 8: for each encoded URL do

  • 9: Project auxiliary features using residual projection blocks

  • 10: Concatenate character embeddings and projected features

  • 11: Generate compact embedding ei using generative encoder

  • 12: end for

  • 13: Variational Generative Modeling:

  • 14: for each compact embedding ei do

  • 15: Infer variational posterior:

    qzi|ei=Nμi,σi2I

  • 16: Sample latent representation via reparameterization:

    z(i)=μ(i)+σ(i)ε,εN(O,1)

  • 17: end for

  • 18: Optimize variational generative objective using:

    LossELBO=Eqϕ(z|x)logpθx|zKullqϕz|x|pz

  • 19: Self-Evolving Generative Threat Engine (SE-GTE):

  • 20: Estimate class-conditional latent distributions for benign and phishing URLs

  • 21: Generate synthetic phishing embeddings via controlled perturbation

  • 22: Select high-confidence synthetic threats based on threat scoring

  • 23: Hybrid Generative–Discriminative Classification:

  • 24: for each latent representation zi do

  • 25: Compute discriminative posterior score p(c|zi )

  • 26: Compute generative likelihood score p(zi | c)

  • 27: Fuse decisions using:

    c^=argmaxc[αlogp(c|y)+(1α)logp(y|c)

  • 28: end for

  • 29: Model Optimization:

  • 30: Minimize total objective:

    Ltotal=LELBO+λLcls

  • 31: Apply class-weighted classification loss to address imbalance

  • 32: return Predicted labels for all test URLs

h. Optimization strategy

The proposed VGA-HyPhishNet model is trained using a composite loss function that integrates generative and discriminative objectives. The overall loss is defined as:

Ltotal=αLrec+βLKL+γLcls
where Lrec denotes the reconstruction loss, LKL represents the Kullback–Leibler divergence enforcing latent regularization, and Lcls corresponds to the classification loss (e.g., binary cross-entropy). The coefficients α, β, and γ are hyperparameters that control the contribution of each component.

The reconstruction loss ensures that the latent representation preserves essential structural information from the input URL sequences, while the KL-divergence term regularizes the latent space to follow the desired probabilistic distribution. The classification loss drives the model toward discriminative performance for phishing detection.

In practice, the weights are empirically tuned to balance generative fidelity and classification accuracy. A moderate weighting of the KL-divergence term is used to avoid posterior collapse, while a relatively higher emphasis is placed on the classification loss to ensure robust phishing detection performance. All models are trained using stochastic gradient-based optimization with consistent hyperparameter settings across experiments.

i. Model evaluation

The evaluation of model performance employs both comprehensive and class-specific metrics. We present the four metrics of accuracy, precision, recall, and F1-score; also, the weighted metrics of recall, accuracy, and precision are employed to address class imbalance by averaging per-class metrics based on their support (the quantity of samples for each category. The confusion matrix has four possible outcomes: true positives (TP), true negatives (TN), false positives (FP), and false negatives (FN).

Accuracy: Accuracy measures the proportion of correctly classified samples over the entire test set:

(26)
Accuracy=TP+TNS

Precision: quantifies the accuracy of positive forecasts by calculating the percentage of phishing URLs that are truly phishing (penalizes FP):

(27)
Precision=TPTP+FP

Recall: A classifier’s recall, sensitivity, or true positive rate (TPR) indicates how well it can identify all actual phishing URLs (penalizes FN):

(28)
Recall=TPTP+FN

F1-Score: In order to evaluate a classifier fairly, the F1-score takes the harmonic mean of the two metrics, precision and recall. It really shines when working with datasets that aren’t balanced, where precision or recall alone may be insufficient to represent model performance.

(29)
F1Score=2×Precision×RecallPrecision+Recall

IV. Results and Discussion

A thorough assessment and examination of the canonical proposed VGA-HyPhishNet in relation to the existing methods in the detection of URL-based phishing attacks. The results are analyzed in terms of various performance metrics, confusion matrices, ROC curves, computational costs, etc., in terms of the accuracy, robustness against class imbalance, and efficiency of the detection mechanism. The discussion also sheds light on the implications of the proposed framework in terms of the advantages, trade-offs, and consequences of the proposed hybrid mechanism in detecting phishing attacks. To ensure statistical robustness and reduce bias due to data partitioning, k-fold cross-validation was employed. Specifically, the dataset was partitioned into k equal subsets, and the model was trained and evaluated k times, with each subset used once as the test set while the remaining k − 1 subsets were used for training. The reported performance metrics correspond to the average across all folds, providing a reliable and generalized estimate of model performance.

For fair evaluation, all baseline models (URL-Transformer, BiLSTM-URL, and CharCNN-URL) were re-implemented under identical experimental conditions as in Table 1, including the same preprocessing pipeline, dataset splits, and evaluation metrics.

Table 1:

Example transformation of a URL through the proposed feature extraction stages

StageSample output
Raw URL‘https[//]www[.]amazon[.]com/gp/help/customer/display.html’
Character Tokenization<STA> h t p s [ / / ] w [ . ] a m a z o n … h t m l <SEP>
Character Encoding[2,11,23,23,19,22,42,40,40,43,27,27,27,…,28,3]
Generative Encoder Output[0.41, −0.27, 1.13, 0.08, −0.66, …, 0.09]
Variational Encoder (Mean)[0.38, −0.31, 1.05, 0.12, −0.60, …, 0.11]
Variational Encoder (Variance)[0.04, 0.06, 0.02, 0.05, …, 0.04]

Table 2 presents the comparative performance of the proposed VGA-HyPhishNet against widely used URL-based phishing detection models. The proposed model achieves superior performance across all evaluation metrics, with an accuracy of 0.9873, precision of 0.9300, recall of 0.9497, and an F1-score of 0.9397. These results indicate its strong capability in accurately detecting phishing URLs while minimizing both FP and FN.

Table 2:

Comparative performance of the proposed VGA-HyPhishNet and baseline models

ModelAccuracyPrecisionRecallF1-score
VGA-HyPhishNet0.98730.93000.94970.9397
URL-Transformer0.95560.78030.79990.7899
BiLSTM-URL0.94440.71000.78960.7477
CharCNN-URL0.93870.68030.77990.7267

In comparison, the URL-Transformer attains an F1-score of 0.7899, reflecting limited robustness in handling class imbalance and evolving phishing patterns despite its ability to capture global token dependencies through self-attention. The BiLSTM-URL model demonstrates moderate recall but suffers from lower precision, resulting in an overall F1-score of 0.7477, indicating challenges in discriminating subtle phishing characteristics. Similarly, the CharCNN-URL model records the lowest F1-score of 0.7267, primarily due to its limited capacity to capture long-range dependencies in URL sequences.

The confusion matrices as in Figure 2 exhibit the classification behavior of the proposed VGA-HyPhishNet and the baseline models on benign and phishing URLs. With 14,875 benign and 1,661 phishing URLs accurately identified and the fewest FP (125) and FN (88), VGA-HyPhishNet exhibits the most balanced and dependable performance, demonstrating strong robustness against both forms of misclassification. The URL-Transformer, on the other hand, shows a greater number of FP (394) and FN (350), indicating decreased stability under changing phishing trends. The BiLSTM-URL and CharCNN-URL models exhibit significant degradation, with substantially larger false-negative counts (368 and 385, respectively), indicating their inadequate capacity to consistently detect phishing URLs. Overall, the confusion matrix analysis shows that, as compared to traditional discriminative methods, the generative representation learning, adaptive threat synthesis, and hybrid decision fusion used in VGA-HyPhishNet greatly minimize misclassification errors.

Figure 2:

Confusion matrix.

The ROC curves presented in Figure 3 illustrate the trade-off between the TPR and false positive rate (FPR) for the proposed VGA-HyPhishNet model and the baseline approaches across different decision thresholds. From the figure, it is evident that the proposed VGA-HyPhishNet model outperforms all other models, achieving the highest AUC value of 0.939. This indicates strong discriminative capability and robustness in distinguishing phishing URLs from legitimate ones, even at relatively low FPRs.

Figure 3:

ROC curve. FPR, false positive rate.

In comparison, the URL-Transformer model demonstrates moderate performance, with an AUC of 0.786, reflecting its limited ability to capture subtle variations in phishing URL patterns. Furthermore, the BiLSTM-URL and CharCNN-URL models exhibit comparatively lower performance, with AUC values of 0.734 and 0.690, respectively. These lower values suggest reduced generalization capability and weaker sensitivity to evolving and obfuscated phishing attacks.

Figure 4 shows the relative suitability of each model for real-time deployment based on the average inference time per URL. From the results, the CharCNN-URL model has the lowest inference time of approximately 15 ms. The reason for this is the simple convolutional processing, where the computational cost is linearly increasing with the size of the URL. The second lowest inference time is obtained by the VGA-HyPhishNet model with an average inference time of approximately 18 ms. This indicates that the costs of using the generative encoding, variational sampling, and hybrid fusing are marginal. The highest inference time is obtained by the BiLSTM-URL model with an average inference time of approximately 35 ms. The reason for this is the sequential processing of the characters in the forward and backward directions. The URL-Transformer model has the highest inference time of approximately 55 ms, showing the cost of using self-attention mechanisms, which have quadratic computational costs in the size of the input sequence.

Figure 4:

Inference time comparison across phishing detection models.

Using a dataset of roughly 100,000 URLs, this Figure 5 shows the training time per epoch for various phishing detection algorithms, illustrating their respective computational cost during learning. CharCNN-URL shows the lowest training cost at roughly 380 s per epoch, owing to its shallow convolutional architecture and excellent parallelization. VGA-HyPhishNet requires a slightly greater training time of roughly 400 s per epoch, which is ascribed to the added overhead of variational latent modeling and hybrid generative–discriminative learning, yet it remains computationally viable. BiLSTM-URL has a much higher training cost of around 1,300 s per epoch due to sequential processing and bidirectional recurrence over URL characters. Due to its high parameter counts and self-attention actions, URL-Transformer has the highest training cost at almost 2,500 s each epoch. These results reveal that VGA-HyPhishNet delivers good detection performance with a training cost close to lightweight CNN models, while being substantially more efficient than recurrent and transformer-based alternatives.

Figure 5:

Training cost comparison across phishing detection models.

The ablation research that was done to assess each component’s contribution to the suggested VGA-HyPhishNet system is shown in Table 3. The results show that overall, the model is the most effective overall, highlighting the significance of integrating all parts. The model performs worse when variational modeling is eliminated because it is less able to generalize to hidden phishing patterns. In a similar vein, the system’s capacity to learn from artificial phishing patterns is diminished when the SE-GTE is removed. Generative-only modeling captures structural behavior but lacks a strong decision-making capacity, whereas discriminative classification alone reduces accuracy by increasing FP. Although it works quicker, the discriminative-only variation is less stable when phishing patterns change. Overall, the research demonstrates that detection accuracy and robustness are greatly increased by the hybrid combination of generative learning, adaptive threat modeling, and categorization.

Table 3:

Ablation study and parameter sensitivity of proposed study

Setting/variantKey changeAccuracyPrecisionRecallF1-score
Full Model (VGA-HyPhishNet)Encoder + Variational Modeling + SE-GTE + Hybrid Fusion0.98730.93000.94970.9397
w/o VGM (No variational modeling)Variational modeling removed; deterministic features used0.97280.88500.90400.8944
w/o SE-GTESynthetic threat generation removed0.97620.90210.92150.9117
w/o Hybrid FusionOnly discriminative classification used0.97090.87240.92800.8993
Generative-onlyOnly generative decision used0.95840.82020.90200.8591
Discriminative-onlyOnly classification-based decision used0.96870.86580.91490.8897

[i] SE-GTE, self-evolving generative threat engine.

a. Model interpretability and decision analysis

To provide insights into the model’s decision-making process, an analysis of the learned latent representations and input-level patterns was conducted. At the latent level, the VGM module learns class-conditional distributions that capture structural differences between benign and phishing URLs. Phishing URLs tend to occupy regions of the latent space characterized by higher likelihood under p (z | y = 1), enabling separation through log-likelihood ratio-based scoring.

At the input level, the model implicitly captures discriminative URL characteristics through character-level embeddings. Key indicative patterns include the presence of suspicious tokens (e.g., excessive special characters, uncommon domain structures), abnormal sequence lengths, use of obfuscated strings, and irregular subdomain compositions. These features contribute to distinctive latent embeddings, which are further amplified by the SE-GTE through synthetic threat augmentation.

Additionally, gradient-based attribution analysis (e.g., saliency mapping) indicates that specific character sequences, such as encoded symbols, repeated delimiters, and uncommon domain suffixes have a higher contribution to phishing classification. This demonstrates that the model effectively leverages both structural and probabilistic patterns for robust decision making.

b. Discussion

The results of the experiment demonstrate the efficacy of the proposed VGA-HyPhishNet in enhancing the phishing URL detection rate with the help of a hybrid generative-discriminative learning algorithm. Having high results on all testing scores compared to the conventional models, such as URL-Transformer, BiLSTM-URL, and CharCNN-URL, where VGA-HyPhishNet has a high capacity to distinguish phishing URLs and authentic URLs, and reduction of the false positive and negative. The confusion matrix presents the further evidence of the stability analysis of the model that shows that the misclassification rates have reduced to a much lower degree and that the stability of the model to the altering phishing patterns and class imbalance is considerable. VGA-HyPhishNet implements VGM to learn the hidden structural representation of URLs by enabling more generalization in the face of unknown threats as compared to standard discriminative designs that simply rely on the observable data patterns. VGA-HyPhishNet possessed the highest AUC, meaning that there is improved separability of phishing and benign classes even with high decision thresholds which is supported by the ROC analysis. Computationally, this model is still practically efficient, and the speed of inference is comparable to lightweight CNN-based models, but significantly faster than transformer and recurrent models. Although the increment in generative elements may increase the cost of training by a small margin, the increase in detection accuracy and freedom justifies the trade-off. The ablation research also contributes to the importance of every architectural component by demonstrating that the removal of variational modeling, synthetic threat generation, or hybrid fusion would lead to the visible decline in performance. The hybrid decision process is particularly significant to create a balance between accuracy and recall, in order to offer the constant detection in dynamic phishing situations. Altogether, this discussion indicates that not only does the discriminative classification and generative representation learning produce a higher detection accuracy, but also enhances against online threats changes, which is why VGA-HyPhishNet is a reliable and scalable choice in relation to real-time phishing detection systems.

V. Conclusion

In this study, a novel hybrid generative-discriminative system was introduced under the name of VGA-HyPhishNet which aims at enhancing the phishing URLs in dynamic and real time settings. The proposed model uses generative representation learning compared to the traditional detection models which simply use the fixed classification boundaries; it tries to learn the aspects of phishing as a probabilistic activity. The system includes A SE-GTE, a generative encoder, VGM, and a hybrid decision classifier, which in the framework of experimental performance outperform current baseline models, in terms of F1-score, recall, accuracy, and precision and maintains an efficient inference time, suitable to be deployed in real-time. The model can anticipate concealed phishing habits by developing the synthetic threats with the help of SE-GTE, which increases its vulnerability to zero-day attacks significantly. Also, the discriminative confidence combined with generative likelihood hybrid combination ensures balanced decision making by reducing FN and FP, as well as enhance classification stability, threat evolution, and variational modeling that boosts the generalization of the system. The ablation study ensured that all architectural components play a crucial role in the work of the system through hybrid fusion, which enhances stability in classification, threat evolution, and variational modeling. When all is said and done, the proposed architecture demonstrates that discriminative learning combined with generative intelligence is a powerful technique toward preventing rapidly evolving phishing attacks.

Language: English
Submitted on: May 9, 2025
Published on: Aug 25, 2026
Published by: International Journal on Smart Sensing and Intelligent Systems
In partnership with: Paradigm Publishing Services
Publication frequency: 1 issue per year

© 2026 K. Sravanthi, N. Syed Siraj Ahmed, published by International Journal on Smart Sensing and Intelligent Systems
This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 License.