LLMs are One-Shot URL Classifiers and Explainers
Not on the map. Why?
Abstract (arXiv)
Malicious URL classification represents a crucial aspect of cyber security. Although existing work comprises numerous machine learning and deep learning-based URL classification models, most suffer from generalisation and domain-adaptation issues arising from the lack of representative training datasets. Furthermore, these models fail to provide explanations for a given URL classification in natural human language. In this work, we investigate and demonstrate the use of Large Language Models (LLMs) to address this issue. Specifically, we propose an LLM-based one-shot learning framework that uses Chain-of-Thought (CoT) reasoning to predict whether a given URL is benign or phishing. We evaluate our framework using three URL datasets and five state-of-the-art LLMs and show that one-shot LLM prompting indeed provides performances close to supervised models, with GPT 4-Turbo being the best model, followed by Claude 3 Opus. We conduct a quantitative analysis of the LLM explanations and show that most of the explanations provided by LLMs align with the post-hoc explanations of the supervised classifiers, and the explanations have high readability, coherency, and informativeness.
Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Builds on 24 of its 67 references that are in the map. First posted on arXiv 22 Sep 2024.
Builds on
24 of 67 references.
References · 24
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2023Visual Instruction Tuningcited by 7,792
- 2023BLIP-2: Bootstrapping Language-Image Pre-training with Frozen Image Encoders and Large Language Modelscited by 6,069
- 2016"Why Should I Trust You?": Explaining the Predictions of Any Classifiercited by 5,040
- 2022Large Language Models are Zero-Shot Reasonerscited by 4,323
- 2023Code Llama: Open Foundation Models for Codecited by 2,105
- 2023Language Models Don't Always Say What They Think: Unfaithful Explanations in Chain-of-Thought Promptingcited by 1,081
- 2024MM-LLMs: Recent Advances in MultiModal Large Language Modelscited by 277
- 2020Evaluation of Text Generation: A Surveycited by 275
- 2022TabLLM: Few-shot Classification of Tabular Data with Large Language Modelscited by 273
12 more
- 2022Ask Me Anything: A simple strategy for prompting language modelscited by 155
- 2023Do Models Explain Themselves? Counterfactual Simulatability of Natural Language Explanationscited by 85
- 2023Towards LLM-guided Causal Explainability for Black-box Text Classifierscited by 44
- 2023Making LLMs Worth Every Penny: Resource-Limited Text Classification in Bankingcited by 36
- 2018URLNet: Learning a URL Representation with Deep Learning for Malicious URL Detectioncited by 34
- 2024UniAudio 1.5: Large Language Model-driven Audio Codec is A Few-shot Audio Task Learnercited by 22
- 2021URLTran: Improving Phishing URL Detection Using Transformerscited by 18
- 2017Malicious URL Detection using Machine Learning: A Surveycited by 15
- 2023Detecting and Correcting Hate Speech in Multimodal Memes with Large Visual Language Modelcited by 12
- 2022An Adversarial Attack Analysis on Malicious Advertisement URL Detection Frameworkcited by 5
- 2024A Multimodal Approach to Device-Directed Speech Detection with Large Language Modelscited by 5
- 2023CVE-driven Attack Technique Prediction with Semantic Information Extraction and a Domain-specific Language Modelcited by 4
Built on by
Citing papers per year: 2025: 3; 2026: 3.
6 papers.
- 2025Web Page Classification using LLMs for Crawling Supportcited by 2
- 2025From Past to Present: A Survey of Malicious URL Detection Techniques, Datasets and Code Repositoriescited by 1
- 2025MultiPhishGuard: An Explainable and Adaptive Multi-Agent LLM System for Phishing Email Detectioncited by 0
- 2026Eliciting Least-to-Most Reasoning for Phishing URL Detectioncited by 0
- 2026Self-Explainability in Self-Adaptive and Self-Organising Systems: Status and Research Directionscited by 0
- 2026Content-Based Smart E-Mail Dispatcher Using Large Language Modelscited by 0
- 2026Content-Based Smart E-Mail Dispatcher Using Large Language Models25 Jun 2026
- 2026Self-Explainability in Self-Adaptive and Self-Organising Systems: Status and Research Directions8 Jun 2026
- 2026Eliciting Least-to-Most Reasoning for Phishing URL Detection28 Jan 2026
- 2025MultiPhishGuard: An Explainable and Adaptive Multi-Agent LLM System for Phishing Email Detection26 May 2025
- 2025Web Page Classification using LLMs for Crawling Support11 May 2025
- 2025From Past to Present: A Survey of Malicious URL Detection Techniques, Datasets and Code Repositories23 Apr 2025
Similar, not cited
Close in wording, no citation either way
- 2025Evaluating Large Language Models for Phishing Detection, Self-Consistency, Faithfulness, and Explainability
- 2024Multimodal Large Language Models for Phishing Webpage Detection and Identification
- 2025Adaptive Linguistic Prompting (ALP) Enhances Phishing Webpage Detection in Multimodal Large Language Models
- 2025Phishing Detection in the Gen-AI Era: Quantized LLMs vs Classical Models
- 2024Next-Generation Phishing: How LLM Agents Empower Cyber Attackers
- 2026User-Centric Phishing Detection: A RAG and LLM-Based Approach ↗
- 2026MemoPhishAgent: Memory-Augmented Multi-Modal LLM Agent for Phishing URL Detection
- 2025PhishDebate: An LLM-Based Multi-Agent Framework for Phishing Website Detection