Detecting LLM-Generated Phishing URLs Using Deep Learning: Evaluating Model Robustness Against AI-Crafted Evasion Techniques
Keywords:
Character-Level Classification, Evasion Attacks, Phishing URL Detection, Robustness Evaluation, Transformer EncoderAbstract
The growing reliance on LLMs for the creation and modification of web content presents new challenges for the detection of phishing URLs, especially when malicious URLs have structural differences. While traditional detection models may perform well on known URL structures, they can be subject to adversarial manipulation and changes in data distributions. This work examines a weakness-driven evaluation of a phishing URL classifier in the scenarios of known structural perturbations, unprecedented evasion patterns, and external data conditions, by studying a robustness-aware character-level detection model on a processed dataset of 496,678 phishing URLs, including 151,097 phishing URLs and 345,581 legitimate URLs, as well as the external ASAPhishingURL_Dataset for cross-source evaluation.For RACA-Former, URLs are input as sequences of characters and a Transformer encoder learns contextual information between characters. A robustness-aware attention mechanism aggregates the character-level representation before the head that classifies a URL as phishing or legitimate. The evaluation includes clean testing, four types of structural perturbations, test on external dataset, held-out evasion, and an ablation comparison based on masked mean pooling. On the clean test set, the RACA-Former achieved an accuracy of 99.16%, precision of 99.45%, and recall of 97.79%. On the known perturbations, accuracy ranged from 97.56% to 99.25% with subdomain injection having the most degradation. In the ASA dataset, accuracy was 62.33% and specificity was 24.67%, despite a high phishing recall. On held-out subdomain injection, accuracy dropped to 33.20% and specificity to 5.62%. The ablation results show that neither RACA-Former's robustness-aware attention led to measurable gains. Overall, these results give a systematic evaluation that goes beyond performance on clean data, exposing persistent deficits in cross-source generalization and unseen evasion detection, raising the need for further research before deploying in realistic phishing situations.
Downloads
Downloads
Published
Issue
Section
License
You are free to:
- Share — copy and redistribute the material in any medium or format for any purpose, even commercially.
- Adapt — remix, transform, and build upon the material for any purpose, even commercially.
- The licensor cannot revoke these freedoms as long as you follow the license terms.
Under the following terms:
- Attribution — You must give appropriate credit , provide a link to the license, and indicate if changes were made . You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
- No additional restrictions — You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits.
Notices:
You do not have to comply with the license for elements of the material in the public domain or where your use is permitted by an applicable exception or limitation .
No warranties are given. The license may not give you all of the permissions necessary for your intended use. For example, other rights such as publicity, privacy, or moral rights may limit how you use the material.

