Dual-Path Phishing Detection: Integrating Transformer-Based NLP with Structural URL Analysis

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Altan, Ibrahim, Bachir, Abdulla, Parbhulkar, Yousuf, Rizvi, Abdul Muksith, Farazi, Moshiur
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909805888667648
author Altan, Ibrahim
Bachir, Abdulla
Parbhulkar, Yousuf
Rizvi, Abdul Muksith
Farazi, Moshiur
author_facet Altan, Ibrahim
Bachir, Abdulla
Parbhulkar, Yousuf
Rizvi, Abdul Muksith
Farazi, Moshiur
contents Phishing emails pose a persistent and increasingly sophisticated threat, undermining email security through deceptive tactics designed to exploit both semantic and structural vulnerabilities. Traditional detection methods, often based on isolated analysis of email content or embedded URLs, fail to comprehensively address these evolving attacks. In this paper, we propose a dual-path phishing detection framework that integrates transformer-based natural language processing (NLP) with classical machine learning to jointly analyze email text and embedded URLs. Our approach leverages the complementary strengths of semantic analysis using fine-tuned transformer architectures (e.g., DistilBERT) and structural link analysis via character-level TF-IDF vectorization paired with classical classifiers (e.g., Random Forest). Empirical evaluation on representative email and URL datasets demonstrates that this combined approach significantly improves detection accuracy. Specifically, the DistilBERT model achieves a near-optimal balance between accuracy and computational efficiency for textual phishing detection, while Random Forest notably outperforms other classical classifiers in identifying malicious URLs. The modular design allows flexibility for standalone deployment or ensemble integration, facilitating real-world adoption. Collectively, our results highlight the efficacy and practical value of this dual-path approach, establishing a scalable, accurate, and interpretable solution capable of enhancing email security against contemporary phishing threats.
format Preprint
id arxiv_https___arxiv_org_abs_2509_20972
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Dual-Path Phishing Detection: Integrating Transformer-Based NLP with Structural URL Analysis
Altan, Ibrahim
Bachir, Abdulla
Parbhulkar, Yousuf
Rizvi, Abdul Muksith
Farazi, Moshiur
Cryptography and Security
Artificial Intelligence
Phishing emails pose a persistent and increasingly sophisticated threat, undermining email security through deceptive tactics designed to exploit both semantic and structural vulnerabilities. Traditional detection methods, often based on isolated analysis of email content or embedded URLs, fail to comprehensively address these evolving attacks. In this paper, we propose a dual-path phishing detection framework that integrates transformer-based natural language processing (NLP) with classical machine learning to jointly analyze email text and embedded URLs. Our approach leverages the complementary strengths of semantic analysis using fine-tuned transformer architectures (e.g., DistilBERT) and structural link analysis via character-level TF-IDF vectorization paired with classical classifiers (e.g., Random Forest). Empirical evaluation on representative email and URL datasets demonstrates that this combined approach significantly improves detection accuracy. Specifically, the DistilBERT model achieves a near-optimal balance between accuracy and computational efficiency for textual phishing detection, while Random Forest notably outperforms other classical classifiers in identifying malicious URLs. The modular design allows flexibility for standalone deployment or ensemble integration, facilitating real-world adoption. Collectively, our results highlight the efficacy and practical value of this dual-path approach, establishing a scalable, accurate, and interpretable solution capable of enhancing email security against contemporary phishing threats.
title Dual-Path Phishing Detection: Integrating Transformer-Based NLP with Structural URL Analysis
topic Cryptography and Security
Artificial Intelligence
url https://arxiv.org/abs/2509.20972