Machine Learning Approach for Malicious URL Detection with Particle Swarm Optimization-Based Feature Selection
Year: 2026
Type: article
Abstract: The rapid growth of web-based services has intensified the need for reliable mechanisms to distinguish malicious Uniform Resource Locators (URLs) from legitimate ones. Phishing campaigns, malware distribution networks, and defacement operations increasingly rely on deceptive web addresses to compromise unsuspecting users and critical infrastructure. Accurate URL classification plays a critical role in mitigating phishing attacks, malware distribution, and other cyber threats. This study presents a machine learning framework for detecting malicious URLs in cybersecurity applications. This study presents a comprehensive empirical evaluation of multiple machine learning and deep learning approaches for URL classification under two experimental settings: training with the complete feature set and training with a reduced subset obtained through Particle Swarm Optimization (PSO). The framework incorporates advanced feature engineering techniques that capture domain-specific characteristics of malicious URLs. Seventeen classifiers, encompassing traditional ensemble methods, neural architectures, and hybrid stacking configurations, were evaluated on a publicly available dataset of 651,191 URL samples retrieved from Kaggle. The PSO reduced the original ten-feature space to seven discriminative features, representing a 30% dimensionality reduction. Experimental results demonstrate that all-feature models consistently outperformed their PSO-reduced counterparts, with Random Forest achieving the highest classification accuracy of 91.90% and an F1-score of 0.9165. The findings offer empirical grounding for the design of computationally efficient URL threat detection systems and provide actionable directions for future research in adversarial machine learning and real-time cybersecurity pipelines.
Source: Electronics
Author: Mohammed Farsi
Institution: Taibah University
Language: English
Topic: Spam and Phishing Detection
Subfield: Information Systems
Field: Computer Science
Domain: Physical Sciences
Open Access status: gold
Estimated APC paid: $2,896
OpenAlex ID: W7165168405
