Adaptive Linguistic Prompting (ALP) Enhances Phishing Webpage Detection in Multimodal Large Language Models

Atharva Bhargude, Ishan Gonehal, Chandler Haney, Dave Yoon, Kevin Zhu, Aaron Sandoval, Sean O'Brien, Kaustubh Vinnakota · DOI

Abstract

Phishing remains a critical cybersecurity threat, characterized by sophisticated mimicry of legitimate brands. This paper introduces Adaptive Linguistic Prompting (ALP), a few-shot prompting framework designed to empower Multimodal Large Language Models (MLLMs) like GPT-4o and Gemini 1.5 Pro with structured reasoning capabilities for phishing detection. By analyzing HTML content, webpage screenshots, and URL structures through specialized tracks, the ALP framework achieves an F1-score of 0.93. These results demonstrate that advanced prompt engineering can effectively bridge the gap between raw model capability and specialized security requirements, outperforming traditional heuristic and zero-shot detection methods.

Introduction

Traditional phishing detection methods generally rely on two approaches: heuristics (such as blacklists and specific HTML tag matching) and statistical machine learning models. However, both are prone to failure against "zero-day" attacks and adversarial perturbations. The fundamental challenge of phishing detection lies in semantic reasoning—the ability to identify subtle brand inconsistencies, manipulative language, and suspicious URL patterns that "feel off" to a human expert but may bypass automated filters.

While MLLMs possess significant reasoning potential, they require structured guidance to process diverse data types (text, code, and images) without being deceived by malicious content. The ALP framework addresses this by providing a systematic way to leverage MLLM intelligence for high-precision threat detection.

Methodology

The core of the proposed system is the Adaptive Linguistic Prompting (ALP) framework, which utilizes an 8-shot prompting strategy. This approach provides the model with eight curated examples of expert reasoning to follow, moving beyond simple zero-shot classification.

The ALP framework architecture showing the dual-track analysis of webpage data.

As illustrated in the workflow, the system bifurcates the analysis into two specialized tracks:

  1. Multimodal Webpage Analysis (MWA): The model evaluates HTML text and screenshots to detect brand inconsistencies, visual layout anomalies, and manipulative diction (e.g., urgent or threatening language).
  2. URL Structure Analysis (USA): A dedicated track focuses on the URL, employing a "suspicious-first" heuristic. If the model encounters ambiguity, it is instructed to default to a phishing classification, aligning the AI's behavior with real-world risk-aversion strategies.

Final classification is determined by a risk-aware fusion rule: the system defaults to "phishing" if the USA track flags the link or if the MWA confidence score exceeds a threshold of 8.5/10.

Experimental Setup

The study utilized a refined version of the Lee et al. (2024) dataset. To ensure cost-efficiency and data quality, the authors used automated clustering and manual validation to select a representative subset of 311 benign brands alongside 289 phishing instances. Each data point consisted of a webpage screenshot and a JSON file containing critical HTML attributes such as meta descriptions, favicon links, and button styles.

Results and Discussion

The ALP framework demonstrated significant performance gains over baseline methods. GPT-4o, utilizing the combined analysis, achieved the highest performance with an F1-score of 0.93, characterized by 91.67% precision and 94.12% recall. Gemini 1.5 Pro followed closely with an F1-score of 0.91.

Detailed performance metrics comparing different approaches across GPT-4o and Gemini 1.5 Pro.

A key insight from the results is the impact of the "suspicious-first" heuristic. In GPT-4o, refining the prompt to be risk-aware increased the USA track's accuracy from 81% to 91% without architectural changes. Furthermore, the models exhibited complementary strengths: GPT-4o was superior at logical URL scrutiny, while Gemini 1.5 Pro showed higher proficiency in multimodal visual authenticity analysis.

Conclusion and Future Work

While ALP represents a significant step forward, several challenges remain for production-scale deployment. The reliance on proprietary models introduces latency and API costs that may hinder real-time scanning of millions of URLs. Additionally, future research must address non-English phishing content and potential "LLM-aware" adversarial tactics designed to bypass diction analysis. The authors suggest that future iterations could explore smaller open-source models and more dynamic weighted probability functions for fusing multimodal results.

Summary updated

BibTeX
@inproceedings{bhargude2025adaptive,
  author = {Atharva Bhargude and Ishan Gonehal and Chandler Haney and Dave Yoon and Kevin Zhu and Aaron Sandoval and Sean O'Brien and Kaustubh Vinnakota},
  title = {{Adaptive Linguistic Prompting (ALP) Enhances Phishing Webpage Detection in Multimodal Large Language Models}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure