arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.14306cs.AI
收藏

LLM 是一次性的 URL 分类器与解释器

LLMs are One-Shot URL Classifiers and Explainers

University of Sydney(悉尼大学);University of New South Wales(新南威尔士大学);Thales Australia(泰雷兹澳大利亚公司)

Fariza Rashid, Nishavi Ranaweera, Ben Doyle, Suranga Seneviratne

AI总结:

本文提出一种基于 LLM 和思维链推理的一次性学习框架,用于恶意 URL 分类与自然语言解释,实验表明其性能接近监督模型且解释具有高可读性与一致性。

摘要:

恶意 URL 分类是网络安全的关键环节。尽管现有研究包含众多基于机器学习和深度学习的 URL 分类模型,但大多数模型因缺乏具有代表性的训练数据集而面临泛化和领域适应问题。此外,这些模型无法用自然人类语言解释给定的 URL 分类。在本研究中,我们探讨并展示了使用大型语言模型(LLMs)来解决此问题。具体而言,我们提出了一种基于 LLM 的一次性学习框架,该框架利用思维链(CoT)推理来预测给定 URL 是良性还是网络钓鱼。我们使用三个 URL 数据集和五个最先进的 LLM 评估了我们的框架,结果表明一次性 LLM 提示确实提供了接近监督模型的性能,其中 GPT 4-Turbo 是最佳模型,其次是 Claude 3 Opus。我们对 LLM 的解释进行了定量分析,结果表明 LLM 提供的大多数解释与监督分类器的事后解释一致,且这些解释具有很高的可读性、连贯性和信息量。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑