mlsanityData to 7 Oct 2026

LLMs are One-Shot URL Classifiers and Explainers

arXiv 2409.14306 ↗First posted 22 Sep 2024cs.AIcited by 6

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

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  3. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  4. 2023Visual Instruction Tuningcited by 7,792
  5. 2023BLIP-2: Bootstrapping Language-Image Pre-training with Frozen Image Encoders and Large Language Modelscited by 6,069
  6. 2016"Why Should I Trust You?": Explaining the Predictions of Any Classifiercited by 5,040
  7. 2022Large Language Models are Zero-Shot Reasonerscited by 4,323
  8. 2023Code Llama: Open Foundation Models for Codecited by 2,105
  9. 2023Language Models Don't Always Say What They Think: Unfaithful Explanations in Chain-of-Thought Promptingcited by 1,081
  10. 2024MM-LLMs: Recent Advances in MultiModal Large Language Modelscited by 277
  11. 2020Evaluation of Text Generation: A Surveycited by 275
  12. 2022TabLLM: Few-shot Classification of Tabular Data with Large Language Modelscited by 273
12 more
  1. 2022Ask Me Anything: A simple strategy for prompting language modelscited by 155
  2. 2023Do Models Explain Themselves? Counterfactual Simulatability of Natural Language Explanationscited by 85
  3. 2023Towards LLM-guided Causal Explainability for Black-box Text Classifierscited by 44
  4. 2023Making LLMs Worth Every Penny: Resource-Limited Text Classification in Bankingcited by 36
  5. 2018URLNet: Learning a URL Representation with Deep Learning for Malicious URL Detectioncited by 34
  6. 2024UniAudio 1.5: Large Language Model-driven Audio Codec is A Few-shot Audio Task Learnercited by 22
  7. 2021URLTran: Improving Phishing URL Detection Using Transformerscited by 18
  8. 2017Malicious URL Detection using Machine Learning: A Surveycited by 15
  9. 2023Detecting and Correcting Hate Speech in Multimodal Memes with Large Visual Language Modelcited by 12
  10. 2022An Adversarial Attack Analysis on Malicious Advertisement URL Detection Frameworkcited by 5
  11. 2024A Multimodal Approach to Device-Directed Speech Detection with Large Language Modelscited by 5
  12. 2023CVE-driven Attack Technique Prediction with Semantic Information Extraction and a Domain-specific Language Modelcited by 4

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 3; 2026: 3.

6 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Evaluating Large Language Models for Phishing Detection, Self-Consistency, Faithfulness, and Explainability
  2. 2024Multimodal Large Language Models for Phishing Webpage Detection and Identification
  3. 2025Adaptive Linguistic Prompting (ALP) Enhances Phishing Webpage Detection in Multimodal Large Language Models
  4. 2025Phishing Detection in the Gen-AI Era: Quantized LLMs vs Classical Models
  5. 2024Next-Generation Phishing: How LLM Agents Empower Cyber Attackers
  6. 2026User-Centric Phishing Detection: A RAG and LLM-Based Approach ↗
  7. 2026MemoPhishAgent: Memory-Augmented Multi-Modal LLM Agent for Phishing URL Detection
  8. 2025PhishDebate: An LLM-Based Multi-Agent Framework for Phishing Website Detection