Skip to main content
QUICK REVIEW

[Paper Review] Detecting Phishing Sites Using ChatGPT

Takashi Koide, Naoki Fukushi|arXiv (Cornell University)|Jun 9, 2023
Spam and Phishing DetectionComputer Science22 citations
TL;DR

The paper introduces ChatPhishDetector, a system that uses large language models (LLMs) to detect phishing sites by crawling web pages, generating prompts, and analyzing text and images; GPT-4V achieves near-perfect precision and recall on a multilingual dataset.

ABSTRACT

The emergence of Large Language Models (LLMs), including ChatGPT, is having a significant impact on a wide range of fields. While LLMs have been extensively researched for tasks such as code generation and text synthesis, their application in detecting malicious web content, particularly phishing sites, has been largely unexplored. To combat the rising tide of cyber attacks due to the misuse of LLMs, it is important to automate detection by leveraging the advanced capabilities of LLMs. In this paper, we propose a novel system called ChatPhishDetector that utilizes LLMs to detect phishing sites. Our system involves leveraging a web crawler to gather information from websites, generating prompts for LLMs based on the crawled data, and then retrieving the detection results from the responses generated by the LLMs. The system enables us to detect multilingual phishing sites with high accuracy by identifying impersonated brands and social engineering techniques in the context of the entire website, without the need to train machine learning models. To evaluate the performance of our system, we conducted experiments on our own dataset and compared it with baseline systems and several LLMs. The experimental results using GPT-4V demonstrated outstanding performance, with a precision of 98.7% and a recall of 99.6%, outperforming the detection results of other LLMs and existing systems. These findings highlight the potential of LLMs for protecting users from online fraudulent activities and have important implications for enhancing cybersecurity measures.

Motivation & Objective

  • Address the need for automated phishing detection leveraging LLMs without requiring extensive labeled training data.
  • Enable multilingual phishing detection by analyzing entire website content (text and visuals) rather than just logos or URLs.
  • Show that prompting and prompt design with LLMs can identify social engineering and brand impersonation across jurisdictions.
  • Compare LLMs and baselines to establish the effectiveness of ChatPhishDetector in real-world scenarios.

Proposed method

  • Crawl websites to collect final URL, browser-rendered HTML, and a screenshot; extract text via OCR when needed.
  • Use prompt engineering with Chain-of-Thought prompts to guide LLMs through four subtasks: SE techniques, brand identification, phishing/non-phishing conclusion, and JSON output.
  • Simplify HTML and OCR text to fit token limits while preserving key signals for phishing detection.
  • Operate in two modes: Normal (text input) and Vision (text+image input) to leverage multimodal LLMs.
  • Evaluate using multiple LLMs (GPT-4, GPT-4V, GPT-3.5, Gemini Pro, Llama 2) and baselines (dnstwist, Phishpedia) on a dataset of 1,000 phishing and 1,000 non-phishing sites.

Experimental results

Research questions

  • RQ1Can LLMs detect phishing sites by analyzing entire website content including text and visuals across languages?
  • RQ2How do different LLMs and input modes (text vs. vision) compare in precision, recall, and robustness for phishing detection?
  • RQ3What signals (brand impersonation, social engineering cues, domain-brand consistency) drive accurate phishing classification?
  • RQ4Is prompt-based phishing detection cost-effective and scalable for real-world deployment?

Key findings

  • GPT-4V (vision mode) achieves the best performance with 98.7% precision and 99.6% recall on the dataset.
  • GPT-4 (normal mode) also performs strongly with 98.3% precision and 98.4% recall; GPT-3.5 trails with notably lower phishing recall (86.7%).
  • The system correctly identifies all 172 highly non-conforming phishing sites (100% detection) in GPT-4/GPT-4V runs for those challenging cases.
  • Compared to baselines (dnstwist 31.3% precision, Phishpedia 26.0% precision), ChatPhishDetector with GPT-4V/GPT-4 provides far higher accuracy and broader coverage (multilingual and non-logo-based phishing).
  • Phishing classification can be tuned with phishing_score thresholds and shows strong ROC performance (AUC up to 0.998 for GPT-4V).
  • Phish detection costs and latency are feasible for deployment (GPT-4V: ~$0.179 per site, ~25s per inference).

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.