mlsanityData to 14 Oct 2026

An Investigation of Large Language Models and Their Vulnerabilities in Spam Detection

arXiv 2504.09776 ↗First posted 14 Apr 2025cs.CRcited by 1

On the map: LLM safety and security → Prompt injection and agent security

Abstract (arXiv)

Spam messages continue to present significant challenges to digital users, cluttering inboxes and posing security risks. Traditional spam detection methods, including rules-based, collaborative, and machine learning approaches, struggle to keep up with the rapidly evolving tactics employed by spammers. This project studies new spam detection systems that leverage Large Language Models (LLMs) fine-tuned with spam datasets. More importantly, we want to understand how LLM-based spam detection systems perform under adversarial attacks that purposefully modify spam emails and data poisoning attacks that exploit the differences between the training data and the massages in detection, to which traditional machine learning models are shown to be vulnerable. This experimentation employs two LLM models of GPT2 and BERT and three spam datasets of Enron, LingSpam, and SMSspamCollection for extensive training and testing tasks. The results show that, while they can function as effective spam filters, the LLM models are susceptible to the adversarial and data poisoning attacks. This research provides very useful insights for future applications of LLM models for information security.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Placed in Prompt injection and agent security, one of 12 directions in LLM safety and security. Builds on 2 of its 11 references that are in the map. First posted on arXiv 14 Apr 2025.

Builds on

2 of 11 references.

References · 2

  1. 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,415
  2. 2023Spam-T5: Benchmarking Large Language Models for Few-Shot Email Spam Detectioncited by 13

Built on by

Cited by year

Citing papers per year: 2025: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2025Phishing Email Detection Using Large Language Models
  2. 2025Phishing Detection in the Gen-AI Era: Quantized LLMs vs Classical Models
  3. 2024Next-Generation Phishing: How LLM Agents Empower Cyber Attackers
  4. 2024Breaking Down the Defenses: A Comparative Survey of Attacks on Large Language Models
  5. 2025Detecting LLM-Generated Spam Reviews by Integrating Language Model Embeddings and Graph Neural Network
  6. 2024Securing Large Language Models: Addressing Bias, Misinformation, and Prompt Attacks
  7. 2025Evaluating Large Language Models for Phishing Detection, Self-Consistency, Faithfulness, and Explainability
  8. 2026An Empirical Evaluation of Prompt Injection Vulnerabilities in Large Language Models Across Multilingual and Obfuscated Attack Scenarios