SpearBot: Leveraging Large Language Models in a Generative-Critique Framework for Spear-Phishing Email Generation

Qinglin Qi, Yun Luo, Yijia Xu, Wenbo Guo, Yong FangarXiv 2024 · DOI

Introduction

Phishing remains a primary vector for cyberattacks, resulting in significant financial losses globally. While generic phishing campaigns are often caught by modern filters, spear-phishing—highly personalized attacks targeting specific individuals—remains exceptionally effective. Historically, the high cost and manual effort required to craft these personalized messages limited their scale. However, the advent of Large Language Models (LLMs) like GPT-4 has introduced the potential for automating these sophisticated social engineering attacks.

Despite their capabilities, two major barriers prevent the direct use of LLMs for spear-phishing: internal safety alignments (e.g., RLHF) that cause models to refuse harmful requests, and advanced external detection systems utilizing Machine Learning (ML) and Pre-trained Language Models (PLMs). This paper introduces SpearBot, a framework designed to systematically overcome these hurdles through a novel generative-critique architecture.

The SpearBot Framework

The SpearBot framework operates by simulating the workflow of a sophisticated attacker while automating the most labor-intensive steps. The process begins with Jailbreak Initialization. To bypass the safety filters of models like GPT-4, the authors utilize semantic framing, presenting the task as a "security research assistant" helping a student study phishing. This context effectively tricks the model into complying with requests it would otherwise refuse.

The heart of the system is the Generative-Critique Loop. Unlike simple prompt-based generation, SpearBot subjects its output to a panel of "LLM Critics" (including models like Claude-3 and GPT-4).

The SpearBot Generative-Critique Architecture

If a critic identifies an email as phishing, it provides specific feedback on the "tells" or suspicious elements. SpearBot then iteratively refines the email, subtly masking its intent until it can pass the critics' inspection. This adversarial process ensures the final output lacks the typical markers of AI-generated spam or traditional phishing.

Experimental Setup and Evaluation

To evaluate SpearBot, the authors generated a dataset of 1,000 spear-phishing emails based on 100 "virtual personas." These personas included detailed attributes such as job titles, hobbies, and affiliations to ensure high levels of personalization.

The evaluation pipeline tested the generated emails against three tiers of defenders: traditional ML models (e.g., XGBoost), PLM-based detectors (e.g., BERT, RoBERTa), and LLM-based defenders. Additionally, a double-blind human study was conducted to assess the readability and deceptiveness of the emails.

Evaluation Pipeline for Generated Emails

Key Results

The findings demonstrate a significant shift in the threat landscape:

  • Bypassing Automated Defenders: SpearBot emails achieved a bypass rate of nearly 80% against XGBoost defenders that previously boasted 97% accuracy on legacy datasets. PLM-based defenders were even more vulnerable, with detection accuracy dropping to between 1% and 4%.
  • Human Deception: Human evaluators, including those with cybersecurity training, struggled to distinguish SpearBot emails from legitimate correspondence. The emails were rated as highly readable and contextually appropriate.
  • Economic Feasibility: The framework can produce a high-quality, personalized attack for approximately $0.12 to $0.15 per email, making large-scale spear-phishing economically viable for the first time.

Conclusion

SpearBot highlights the fragility of current LLM safety alignments and the inadequacy of existing phishing detection systems against AI-driven social engineering. While the framework demonstrates a potent threat, the authors advocate for its use in "red teaming" scenarios to generate diverse, high-quality training data for the next generation of defenders. As LLMs continue to evolve, the boundary between legitimate communication and sophisticated deception will only become harder to define.

Paper Citation: Qi, Q., Luo, Y., Xu, Y., Guo, W., & Fang, Y. (2024). SpearBot: Leveraging Large Language Models in a Generative-Critique Framework for Spear-Phishing Email Generation. arXiv:2412.11109v1 [cs.CR].

Summary updated

BibTeX
@misc{qi2024spearbot,
  author = {Qinglin Qi and Yun Luo and Yijia Xu and Wenbo Guo and Yong Fang},
  title = {{SpearBot: Leveraging Large Language Models in a Generative-Critique Framework for Spear-Phishing Email Generation}},
  year = {2024},
  eprint = {2412.11109},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.11109},
}
Figure