Can LLM-Embeddings Detect Phishing URLs?
Phishing attacks continue to be a prevalent cyber-security threat that mimics trusted websites to steal sensitive user information. This results in considerable personal and organisational damage. Traditional countermeasures like URL blacklisting and recent machine learning and deep learning models are limited in terms of generalisability. While more recent large language models (LLMs) have been investigated for phishing detection, few have evaluated LLM-based URL embeddings for phishing detection. To address this issue, in this paper, we evaluate three different LLMs using three URL datasets, for phishing detection based on URL embeddings extracted from fine-tuned models. Our evaluations showed Gemma-2B to be the best-performing model with an average F1 score of 0.91 across all test sets. Using the best-performing model we further demonstrate two model implementations: a webpage implementation for users to determine if a URL is phishing or not, and a Gmail API integration to classify which emails are spam.
Authors
- Kajavahini Suseenthiran
- Fariza Rashid (ORCID: https://orcid.org/0009-0006-2437-4447)
- Shahid Rauf (ORCID: https://orcid.org/0000-0001-5689-6115)
- Thilina N. Weerasinghe (ORCID: https://orcid.org/0000-0003-3202-3859)
- Munzir Muneer
Institutions
- University of Ruhuna (LK)
- The University of Sydney (AU)
Publication Details
- Published
- 2025-09-15
- DOI
- https://doi.org/10.1109/lcn65610.2025.11146373
- Citations
- 1
- Primary Topic
- Spam and Phishing Detection
- Type
- article
- Field-Weighted Citation Impact
- 3.25