RAIDER: Reinforcement-aided Spear Phishing Detector

Keelan Evans, Alsharif Abuadbba, Mohiuddin Ahmed, Tingmin Wu, Mike Johnstone, Surya Nepal · DOI

TL;DR

RAIDER is a novel detection system that uses reinforcement learning to autonomously select the most effective features for identifying spear phishing attacks. By moving away from static, manual feature engineering, it reduces feature dimensions by 55% while improving detection accuracy for spoofing attacks to 94% and adapting better to evolving "zero-day" threats.

What Problem Does This Paper Address?

Spear phishing is the surgical strike of cyber-attacks. Unlike broad phishing campaigns that blast generic lures to thousands, spear phishing targets specific individuals using tailored information. This makes it notoriously difficult to detect because the emails often look exactly like legitimate correspondence from a trusted contact.

Current Machine Learning (ML) solutions face three major hurdles:

  1. Zero-Day Vulnerability: Classifiers trained on historical data often fail when attackers introduce new, unseen techniques.
  2. Scalability (The Curse of Dimensionality): To profile a sender accurately, systems often extract thousands of features. As the number of senders in a mailbox grows, the memory and computational requirements explode.
  3. Feature Instability: Manual feature engineering is labor-intensive and results in "sparse" data that drifts over time, making long-term detection unreliable.

Methods

The authors introduce RAIDER (Reinforcement AIded Spear Phishing DEtectoR), which treats feature selection as a dynamic optimization problem.

At its core, RAIDER uses a Reinforcement Learning (RL) agent to explore the "action space" of possible email header features. The process follows a loop:

  • Action: The agent adds a specific feature to a subset.
  • Evaluation: A K-Nearest Neighbors (KNN) classifier uses this subset to predict if an email is a spear phishing attack or benign.
  • Reward: The agent receives a reward or penalty based on whether the new feature increased or decreased the overall prediction accuracy.
Fig. 1. KNN makes predictions based on a vote between the k nearest data points.

This "Average of Rewards" (AOR) policy allows RAIDER to autonomously prune useless features and focus only on those that provide the highest signal for specific attack types.

Overview of RAIDER’s reinforcement learning process that is used to evaluate raw features and generate feature subsets.

Datasets

The researchers evaluated RAIDER using a massive corpus of over 11,000 emails, plus a longitudinal dataset for stability analysis:

  • Public Datasets: Enron Corpus, University at Buffalo’s Bread Secured, SpamAssassin (easy and hard ham), and IWSPA-AP 2018.
  • CSIRO Dataset: Over 32,000 phishing emails spanning five years (2016–2020) used to test how features remain stable over time.
  • Simulated Attacks: Since real spear phishing data is scarce, the authors crafted three attack scenarios: Blind Spoofing (low info), Known Domain (medium info), and Known Sender (high info/impersonation).

Key Insights and Ideas

  • Autonomous Adaptation: The most significant "aha moment" is that RAIDER doesn't just find one set of features; it can be retrained to find the best features for new attacks. When a "Known Sender" attack (the hardest to detect) appears, RAIDER can update its feature subset to boost accuracy from 49% to 62%.
  • Feature Stability: Traditional manual features are "messy" and volatile over time. PCA visualization (Figure 2) shows that RAIDER’s automated features are more tightly clustered and stable across years compared to state-of-the-art manual methods.
Fig. 2. The visualisation of traditional feature extraction of phishing emails as in [12] over five years (2016-2020) using the PCA (Principal Component Analysis). Here PCA projects the data points into a new 2D space while the axes do not have physical meaning. The new values on the x-axis and y-axis (Principal Component 1 and 2) contribute most to the variation through a transformation.
  • Header-Only Intelligence: RAIDER achieves high accuracy without ever looking at the email body or attachments, relying solely on metadata and transport headers. This preserves privacy and avoids the computational cost of natural language processing.

Key Results

  • Efficiency: RAIDER reduced the required feature dimensions by 55% compared to existing manual systems.
  • Accuracy:
    • Blind Spoofing: Achieved 94% accuracy (a 4% improvement over the state-of-the-art).
  • Known Sender: While this remains the toughest challenge, RAIDER's ability to update its feature set prevented the massive accuracy drops seen in static models.
  • Speed: Once trained, RAIDER is slightly faster at classification, taking roughly 0.0086 seconds per email.
Fig. 3. The three simulated attack methods borrowed from Gascon et al. [12]. In Blind Spoofing the attacker crafts a spear phishing email without any external information about the structure of the emails of the impersonated sender or their email domain. In Known Domain the attacker has access to emails from other individuals from within the impersonated sender’s email domain and uses this information to forge spear phishing attacks with traits unique to this domain. In Known Sender the attacker has access to previous emails from the impersonated sender and this information to forge spear phishing attacks with traits unique to the impersonated sender.

Limitations and Future Work

The authors identify two main limitations:

  1. Contextual Blindness: RAIDER currently analyzes each email in isolation. It doesn't "remember" previous emails in a conversation thread, which could be a vital clue in detecting sophisticated impersonation.
  2. Crafted vs. Real Data: While the simulated attacks are based on real-world techniques, the system still needs testing against genuine, high-stakes spear phishing campaigns in the wild.

Future work will focus on making the classifier "context-aware" by analyzing entire email chains rather than single messages.

Summary updated

Abstract

Spear Phishing is a harmful cyber-attack facing business and individuals worldwide. Considerable research has been conducted recently into the use of Machine Learning (ML) techniques to detect spear-phishing emails. ML-based solutions may suffer from zero-day attacks; unseen attacks unaccounted for in the training data. As new attacks emerge, classifiers trained on older data are unable to detect these new varieties of attacks resulting in increasingly inaccurate predictions. Spear Phishing detection also faces scalability challenges due to the growth of the required features which is proportional to the number of the senders within a receiver mailbox. This differs from traditional phishing attacks which typically perform only a binary classification between phishing and benign emails. Therefore, we devise a possible solution to these problems, named RAIDER: Reinforcement AIded Spear Phishing DEtectoR. A reinforcement-learning based feature evaluation system that can automatically find the optimum features for detecting different types of attacks. By leveraging a reward and penalty system, RAIDER allows for autonomous features selection. RAIDER also keeps the number of features to a minimum by selecting only the significant features to represent phishing emails and detect spear-phishing attacks. After extensive evaluation of RAIDER over 11,000 emails and across 3 attack scenarios, our results suggest that using reinforcement learning to automatically identify the significant features could reduce the dimensions of the required features by 55% in comparison to existing ML-based systems. It also improves the accuracy of detecting spoofing attacks by 4% from 90% to 94%. In addition, RAIDER demonstrates reasonable detection accuracy even against a sophisticated attack named Known Sender in which spear-phishing emails greatly resemble those of the impersonated sender.
BibTeX
@inproceedings{evans2022raider,
  author = {Keelan Evans and Alsharif Abuadbba and Mohiuddin Ahmed and Tingmin Wu and Mike Johnstone and Surya Nepal},
  title = {{RAIDER: Reinforcement-aided Spear Phishing Detector}},
  booktitle = {NSS},
  year = {2022},
  doi = {10.1007/978-3-031-23020-2\_2},
}
Figure