A PREDICTIVE FRAMEWORK FOR DETECTING SOCIAL ENGINEERING ATTACKS USING EMAIL METADATA AND NATURAL LANGUAGE PROCESSING

Email remains the principal delivery channel for social engineering attacks, and phishing messages are increasingly written to resemble legitimate correspondence closely enough to evade rule-based and blacklist filters. This paper presents a predictive framework that combines email metadata attributes with Natural Language Processing (NLP) of the subject line and message body, and evaluates three deep learning classifiers within it, namely a Recurrent Neural Network (RNN), a Convolutional Neural Network (CNN) and Bidirectional Encoder Representations from Transformers (BERT). The framework comprises data cleaning, tokenization, stop-word removal, stemming and lemmatization, URL and HTML tag extraction, handling of missing metadata fields, extraction of metadata and text features, model training and evaluation. The metadata branch encodes numerical metadata features (Table 2), and the transformer model is the pre-trained checkpoint (12 encoder layers, 768-dimensional hidden state, approximately 110 million parameters), fine-tuned end to end for binary classification. Experiments used 5,502 messages from the publicly available Enron Spam corpus, of which 5,003 (90.93 per cent) are legitimate and 499 (9.07 per cent) are spam, partitioned by a stratified 80:20 split into 4,401 training and 1,101 test messages. On the held-out test set, CNN achieved the highest accuracy (97.82 per cent) and F1-score (86.81 per cent) with a false positive rate of 0.30 per cent. BERT achieved the highest area under the receiver operating characteristic curve (97.42 per cent), and RNN achieved the highest precision (98.36 per cent) but detected only 60 of the 100 spam messages. Because a classifier that labels every message as legitimate would already reach 90.92 per cent accuracy on this test set, recall, F1-score, false positive rate, balanced accuracy and the Matthews correlation coefficient are reported alongside accuracy. CNN and BERT each detected 79 of the 100 spam messages, reducing missed attacks by 47.5 per cent relative to RNN, and the difference between them lies in four false positives, which is too small to establish the superiority of either on a test set of this size. The results favour convolutional and transformer architectures over a recurrent baseline for this task, and identify recall on the minority class as the main constraint on deployment.

Authors

Institutions

Publication Details

Journal
International Journal of Science Research and Technology
Published
2026-11-28
DOI
https://doi.org/10.70382/tijsrat.v13i9.099
Primary Topic
Spam and Phishing Detection
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

A PREDICTIVE FRAMEWORK FOR DETECTING SOCIAL ENGINEERING ATTACKS USING EMAIL METADATA AND NATURAL LANGUAGE PROCESSING

Amina Imam Abubakar, Rajesh Prasad, NAFISAT USMAN ADAMS
International Journal of Science Research and Technology
Spam and Phishing Detection
article

A PREDICTIVE FRAMEWORK FOR DETECTING SOCIAL ENGINEERING ATTACKS USING EMAIL METADATA AND NATURAL LANGUAGE PROCESSING

Amina Imam Abubakar, Rajesh Prasad, NAFISAT USMAN ADAMS
article en

Abstract

Email remains the principal delivery channel for social engineering attacks, and phishing messages are increasingly written to resemble legitimate correspondence closely enough to evade rule-based and blacklist filters. This paper presents a predictive framework that combines email metadata attributes with Natural Language Processing (NLP) of the subject line and message body, and evaluates three deep learning classifiers within it, namely a Recurrent Neural Network (RNN), a Convolutional Neural Network (CNN) and Bidirectional Encoder Representations from Transformers (BERT). The framework comprises data cleaning, tokenization, stop-word removal, stemming and lemmatization, URL and HTML tag extraction, handling of missing metadata fields, extraction of metadata and text features, model training and evaluation. The metadata branch encodes numerical metadata features (Table 2), and the transformer model is the pre-trained checkpoint (12 encoder layers, 768-dimensional hidden state, approximately 110 million parameters), fine-tuned end to end for binary classification. Experiments used 5,502 messages from the publicly available Enron Spam corpus, of which 5,003 (90.93 per cent) are legitimate and 499 (9.07 per cent) are spam, partitioned by a stratified 80:20 split into 4,401 training and 1,101 test messages. On the held-out test set, CNN achieved the highest accuracy (97.82 per cent) and F1-score (86.81 per cent) with a false positive rate of 0.30 per cent. BERT achieved the highest area under the receiver operating characteristic curve (97.42 per cent), and RNN achieved the highest precision (98.36 per cent) but detected only 60 of the 100 spam messages. Because a classifier that labels every message as legitimate would already reach 90.92 per cent accuracy on this test set, recall, F1-score, false positive rate, balanced accuracy and the Matthews correlation coefficient are reported alongside accuracy. CNN and BERT each detected 79 of the 100 spam messages, reducing missed attacks by 47.5 per cent relative to RNN, and the difference between them lies in four false positives, which is too small to establish the superiority of either on a test set of this size. The results favour convolutional and transformer architectures over a recurrent baseline for this task, and identify recall on the minority class as the main constraint on deployment.

International Journal of Science Research and Technology
University of Abuja (NG)
Spam and Phishing Detection
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon