Behavioural Feature Engineering for Phishing Detection: The Case of Redirection Patterns

Taliah Muhammad, Agwom Itserim Emmanuel, Fatimah Adamu-Fika, A. U. Bello, Kamal Shehu Bature, Onyinye Vivian Okpoko, Aanuoluwapo Enyojo Baba-OnojaAdvances 2025

Abstract

Phishing detection remains a persistent challenge due to the continually evolving tactics of attackers. This study enhances phishing detection by emphasising redirection pattern features as key behavioural indicators. A two-phased feature extraction approach was employed: Phase 1 prioritised redirection patterns, such as the number of redirections and intermediate domain reputation, while Phase 2 incorporated supporting lexical and domain-based attributes. Using publicly available datasets from PhishTank and OpenPhish, the system was evaluated through multiple machine learning models. Results highlight the critical role of redirection patterns in capturing dynamic behaviours often overlooked by traditional feature sets. The modular feature extraction process not only improves detection accuracy but also offers adaptability to emerging phishing tactics. These findings provide a foundation for integrating behavioural insights into phishing detection frameworks and advancing the development of more resilient cybersecurity systems.

Introduction

Phishing is a persistent cat-and-mouse game in cybersecurity. Traditional detection methods often rely on blacklists—which are frequently outdated by the time they are published—or heuristic analysis of a URL's lexical features. However, attackers have adapted by employing sophisticated redirection patterns to obscure malicious destinations. By routing users through several intermediate, often legitimate-looking domains, attackers can bypass simple scanners and security filters.

This research addresses a critical gap in current phishing detection: the lack of focus on the dynamic behavior of how a URL resolves through a redirection chain. By shifting the focus from what a URL looks like to how it behaves, the study proposes a more resilient detection framework.

Methodology

The researchers developed a two-phased feature engineering approach to train and evaluate three machine learning models: LightGBM, XGBoost, and Logistic Regression.

Feature Engineering

  1. Phase 1: Redirection Pattern Features (Behavioral Layer): This core novelty tracks the "hops" a URL takes. Features include the total number of intermediate redirections, the reputation of intermediate domains, the depth of the redirection hierarchy, and the variety of top-level domains (TLDs) used in the sequence.
  2. Phase 2: Supporting URL Features (Traditional Layer): To provide context, standard metrics were included, such as URL length, the presence of suspicious keywords (e.g., "login," "verify"), the ratio of special characters, domain age, and the use of IP addresses instead of domain names.

The final feature matrix combined these layers, allowing models to weigh behavioral redirection chains against static URL characteristics.

Dataset and Training

The study utilized a dataset of 18,000 URLs:

  • 10,000 Phishing URLs: Sourced from PhishTank and OpenPhish.
  • 8,000 Legitimate URLs: Collected from verified, trusted sources.

The data was split 70:30 for training and testing to ensure the models could generalize effectively to unseen data.

Results and Discussion

The experimental results demonstrate that behavioral features are superior indicators of malice compared to static analysis alone.

The Redirection Fingerprint

A key insight from the data is the distinct distribution of redirections. While legitimate sites typically redirect once (e.g., HTTP to HTTPS), phishing campaigns often utilize 4 to 10+ hops to evade detection. In feature importance rankings, "Number of Redirections" and "Intermediate Domain Reputation" consistently outperformed traditional features like URL length.

Model Performance

The LightGBM model emerged as the most effective, achieving:

  • Accuracy: 92.8%
  • F1-Score: 92.7%
  • Precision: 92.5%
  • Recall: 93.0%

XGBoost performed similarly well, while Logistic Regression lagged at 84.5% accuracy. This disparity underscores the non-linear complexity of redirection-based phishing tactics, which gradient-boosting algorithms are better equipped to capture.

Conclusion and Future Work

This study proves that the "path" a URL takes is often more suspicious than the URL itself. By focusing on redirection patterns, detection systems can achieve high accuracy and low false-positive rates, reducing "security fatigue" for end-users.

However, challenges remain. Current models are trained on static datasets, whereas real-world redirection chains can change dynamically based on a victim's geography or device (cloaking). Future research will focus on real-time stream processing, incorporating user interaction analytics, and validating models against adversarial redirections designed to mimic legitimate traffic.

Journal Reference Format: Tajudeen Mashkur Muhammad, Agwom Itserim Emmanuel, Fatimah Adamu-Fika, Kamal Shehu Bature, Auwal Bello, Onyinye Vivian Okpoko, & Aanuoluwapo Enyojo Baba-Onoja (2025): Behavioural Feature Engineering for Phishing Detection: The Case of Redirection Patterns. Journal of Behavioural Informatics, Digital Humanities and Development Res. Vol. 11 No.

  1. Pp 106-114. https://www.isteams.net/behavioralinformaticsjournal.dx.doi.org/10.22624/AIMS/BHI/V11N2P210

Summary updated

BibTeX
@inproceedings{muhammad2025behavioural,
  author = {Taliah Muhammad and Agwom Itserim Emmanuel and Fatimah Adamu-Fika and A. U. Bello and Kamal Shehu Bature and Onyinye Vivian Okpoko and Aanuoluwapo Enyojo Baba-Onoja},
  title = {{Behavioural Feature Engineering for Phishing Detection: The Case of Redirection Patterns}},
  booktitle = {Advances},
  year = {2025},
  doi = {10.22624/aims/bhi/v11n2p210},
}
Figure