Phishing & Spam Detection

Distinguishes fraudulent emails, links and websites.

Experimental research applicationDocumentation needs completingLevel: Beginner AI in Cybersecurity Threat Detection

Added: — Last updated:

Documentation needs completing: the content of this page is an initial editorial record whose scientific review is not yet complete; the linked papers are real records matched to OpenAlex, but they do not necessarily prove that the application is commercially deployed.

Overview

Models combine analysis of the message text with link and sender properties to estimate the probability of phishing, and may use language models to understand persuasion and urgency tactics.

The real-world problem

Phishing messages are the most common way in for stealing accounts and data.

Advantages

  • Protecting users
  • Fast response

Limitations

  • Attackers' tactics evolve
  • Messages written by language models look natural

Ethical and technical challenges

  • Privacy of email content
  • Blocking legitimate messages

How it works

Represent the text with TF-IDF or a BERT model, add link features, then classify with a threshold that reflects the cost of errors.

Types of data used

  • Email text and headers
  • URLs
  • Web page content

Implementation requirements

A recent set of labelled messages.

AI techniques

Models

Models are separated into: «actually used» (with documented evidence), «research prototype» (with published evidence), and «proposed» (suited to the task, without claiming it is used in a deployed system).

ModelNature of useArchitectureEvidence
BERT (Bidirectional Encoder Representations from Transformers) in the Model AtlasProposed / suited to the taskA model that suits this task and is used in the literature for it, suggested here without claiming it is used in a deployed product.Encoder-only Transformer—
RoBERTa (Robustly Optimized BERT Pretraining Approach) in the Model AtlasProposed / suited to the taskA model that suits this task and is used in the literature for it, suggested here without claiming it is used in a deployed product.Encoder-only Transformer—
XGBoost modelProposed / suited to the taskA model that suits this task and is used in the literature for it, suggested here without claiming it is used in a deployed product.Gradient-boosted decision trees—

Algorithms

  • Naive Bayes — A probabilistic classifier that assumes features are independent given the class, common in text classification.
  • TF-IDF — Weighting words by their frequency in the document and their rarity in the collection, for text retrieval and classification.
  • Logistic Regression — A probabilistic linear model for binary or multiclass classification.

Frameworks and tools

  • scikit-learn — A Python library for classical machine learning algorithms, evaluation and preprocessing.
  • Hugging Face Transformers — A library for loading pre-trained models and fine-tuning them for text, images and audio.

Datasets

DatasetSizeLicenceDocumentationSource
Spambase In the Dataset Explorer4,601 samplesUnknownDocumentation needs completingSource

Real-world examples

There are currently no documented real-world examples of this application in the encyclopedia. Recorded application type: «Experimental research application».

Research papers

Research and project ideas

Recorded research gap

Detecting phishing generated by large language models in Arabic

The following ideas are suggestions derived from the application's record, not completed projects; review recent literature before adopting them.

Graduation project (bachelor's)

Graduation project: a prototype system for Phishing & Spam Detection

A suggested project idea derived from the application's record in the encyclopedia, not a completed project. Distinguishes fraudulent emails, links and websites.

Objectives: Build a prototype that addresses the problem: Phishing messages are the most common way in for stealing accounts and data. Evaluate it with suitable metrics and compare it with a simple baseline.

Methodology: Represent the text with TF-IDF or a BERT model, add link features, then classify with a threshold that reflects the cost of errors.

Suggested models: BERT (Bidirectional Encoder Representations from Transformers), RoBERTa (Robustly Optimized BERT Pretraining Approach), XGBoost model — Suggested data: Spambase

Master's

Detecting phishing generated by large language models in Arabic

A suggested research topic derived from the gap recorded for this application in the encyclopedia; it needs a review of recent literature before it is adopted.

Objectives: Addressing the recorded limitations: Attackers' tactics evolve; Messages written by language models look natural

Methodology: Review the related literature recorded, then design reproducible experiments on the available datasets, with a strict data split to avoid leakage and reporting of confidence intervals.

Suggested models: BERT (Bidirectional Encoder Representations from Transformers), RoBERTa (Robustly Optimized BERT Pretraining Approach), XGBoost model — Suggested data: Spambase

References

  1. Hajar Fares, Jihad Kilani, Fatima Zahra Fagroud et al. (2024). Machine Learning Approach for Email Phishing Detection. Procedia Computer Science. doi:10.1016/j.procs.2024.11.179
  2. Jacob Devlin, Ming-Wei Chang, Kenton Lee, Kristina Toutanova (2019). BERT: Pre-training of deep bidirectional transformers for language understanding. NAACL-HLT 2019, 4171–4186. doi:10.18653/v1/n19-1423
  3. Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, Veselin Stoyanov (2019). RoBERTa: A robustly optimized BERT pretraining approach. . Link
  4. Tianqi Chen, Carlos Guestrin (2016). XGBoost: A Scalable Tree Boosting System. . doi:10.48550/arxiv.1603.02754
  5. Spambase — UCI Machine Learning Repository [Dataset source, accessed: 2026-11-15] Link
  6. Hugging Face Transformers [Tool documentation, accessed: 2026-11-15] Link
  7. scikit-learn [Tool documentation, accessed: 2026-11-15] Link