TL;DR
This paper introduces Adaptive Linguistic Prompting (ALP), a novel method that leverages multimodal Large Language Models (LLMs) like GPT-4o and Gemini 1.5 Pro to significantly improve phishing webpage detection. By guiding LLMs through structured reasoning over text, visuals, and URLs, ALP achieves a state-of-the-art F1-score of 0.93, outperforming traditional methods and offering a more robust and interpretable approach to cybersecurity.
What Problem Does This Paper Address?
Phishing attacks remain a persistent and evolving threat, with attackers constantly developing new tactics to evade detection. Traditional methods, such as URL matching and brand verification, often fall short against sophisticated or novel attacks. While recent advancements have explored multimodal LLMs for phishing detection, there's a need for more effective prompting strategies that can fully harness the capabilities of these models. This paper addresses the challenge of enhancing phishing detection accuracy and robustness by developing a structured, few-shot prompting methodology that guides multimodal LLMs to analyze textual deception, urgency cues, and manipulative diction across various modalities (text, visuals, URLs).
Methods
The core innovation of this paper is Adaptive Linguistic Prompting (ALP), a few-shot prompting methodology designed to guide multimodal LLMs. ALP is inspired by structured reasoning and few-shot learning techniques. It breaks down the analysis of phishing webpages into structured, modality-specific reasoning steps, using curated examples rather than generic zero-shot templates.
The authors implemented two main analysis strategies using ALP:
- Multimodal Webpage Analysis (MWA): This approach leverages the LLM's ability to jointly reason over HTML content and screenshots. An 8-shot ALP prompt guides the LLM to analyze brand recognition, diction/syntax, and visual elements of the webpage.
- URL Structure Analysis (USA): This strategy focuses on analyzing URLs by extracting structured data from embedded URLs within HTML. An 8-shot ALP prompt is used to classify URLs based on domain name, protocol, URL path, and other phishing indicators.
A key design insight is the "suspicious-first" heuristic for URL analysis, which prioritizes flagging potentially suspicious URLs. The paper also proposes a combined analysis approach that fuses the results from MWA and USA using a risk-aware rule to achieve higher accuracy.
Datasets
The study utilizes a curated dataset sourced from Lee et al. (2024), which contains 1607 Benign Brands and 289 Phishing Brands. Each brand is represented by one screenshot and one JSON file containing HTML attributes. For computational efficiency and to maintain analytical rigor, the benign dataset was filtered down to 311 brands. This dataset was used for both training (via few-shot examples) and evaluation.
Key Insights and Ideas
- Structured Reasoning is Key: ALP's success highlights that simply feeding multimodal data to LLMs isn't enough. Guiding them through a structured reasoning process, breaking down the analysis into specific components (brand, language, visuals), significantly boosts performance.
- "Suspicious-First" for URLs Pays Off: Implementing a simple "suspicious-first" heuristic in the URL analysis prompt dramatically improved detection accuracy, demonstrating that prompt engineering can be as impactful as model architecture. This suggests a risk-averse approach can be highly effective.
- Complementary Strengths of MWA and USA: The MWA approach excels at identifying subtle visual and linguistic deception (like brand mimicking), while USA is adept at spotting structural anomalies in URLs. Combining these two analyses creates a more robust detection system.
- LLMs as Interpretable Phishing Detectors: ALP not only improves accuracy but also makes the LLM's reasoning process more interpretable. The structured output, including step-by-step reasoning and key indicators, allows users to understand why a page is flagged as phishing.
Key Results
The combined analysis of MWA and USA using ALP achieved a state-of-the-art F1-score of 0.93. This significantly surpasses traditional methods and previous baseline results (which achieved an F1 of 0.91).
- GPT-4o: Achieved a combined F1-score of 0.93 (91.67% precision, 94.12% recall).
- Gemini 1.5 Pro: Achieved a combined F1-score of 0.91 (91% precision, 92% recall).
The "suspicious-first" prompt strategy alone increased USA's accuracy from 81% to 91% in GPT-40. The paper also shows that while Gemini 1.5 Pro excels in MWA, GPT-40 shows stronger performance in USA, suggesting potential for hybrid model approaches.
Limitations and Future Work
The authors acknowledge several limitations:
- Dataset Diversity: The dataset may not fully capture all emerging phishing tactics or region-specific attacks.
- Proprietary LLMs: Reliance on models like GPT-4o introduces scalability and cost barriers.
- Language and Evasion: The framework's performance on non-English content and advanced adversarial evasion techniques (e.g., context-aware paraphrasing) is unexplored.
- MWA vs. USA Prioritization: The "suspicious-first" strategy might inadvertently de-prioritize nuanced visual mimicry detected by MWA in certain conflicting scenarios.
Future work suggested includes:
- Optimizing prompt engineering to reduce token consumption.
- Exploring multi-LLM frameworks to leverage specific model strengths.
- Expanding datasets to include non-English phishing tactics.
- Integrating cost-effective open-source models.
- Rigorous testing against adversarial evasion strategies.
- Investigating weighted probability combination functions for MWA and USA.
Summary updated