Detection of AI-Generated Phishing Emails : Comparing The Efficiency Of SVM, Random Forest, CNN And BiLSTM In Detecting AI-Generated Phishing Emails

Background: Phishing attacks have become progressively more complex with the introduction of Large Language Models (LLMs) that are able to produce human-like emails. Consequently, automated phishing emails are difficult to differentiate from legitimate emails using conventional security measures. Accordingly, a new level of sophistication around phishing attacks is pushing for a next generation of detection mechanisms. Objectives: This thesis intends to detect and classify Artificial Intelligence (AI) generated emails from human-written phishing emails. Traditional machine learning models, Support Vector Machine (SVM) and Random Forest, are evaluated as well as DL models, Convolutional Neural Network (CNN) and Bidirectional Long Short Term Memory (BiLSTM). Methods: The study utilizes a multiclass email dataset from Kaggle and another spear-phishing dataset with AI-generated emails. Text preprocessing was done using natural language processing (NLP) processing steps, which included tokenizing and lemmatizing the text. The traditional machine learning models were executed using TF-IDF vectorized emails and the CNN and BiLSTM were executed using padded token sequences. In all cases the models were examined based on metrics of Accuracy, Precision, Recall, F1-score, and AUC-ROC. Results: All four models performed quite well, reaching perfect (100%) accuracy, precision, recall, F1-score, and AUC-ROC with SVM and BiLSTM. CNN and Random Forest were also effective, albeit with a few false positives. The study found a stark contrast in linguistic variables between AI-generated texts vs human-created texts, allowing us to classify the results accurately. Conclusions: Both traditional and DL models perform effectively in identifying AI generated phishing emails, with SVM and BiLSTM demonstrating the best performance. As this research illustrates, automated detection systems will be a practical tool in the arsenal of modern commonplace phishing defense. It is important however, to remain agile to evolutionary progression of AI.

Publication Details

Journal
KTH Publication Database DiVA (KTH Royal Institute of Technology)
Published
2025-01-01
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
article

Detection of AI-Generated Phishing Emails : Comparing The Efficiency Of SVM, Random Forest, CNN And BiLSTM In Detecting AI-Generated Phishing Emails

KTH Publication Database DiVA (KTH Royal Institute of Technology)
Spam and Phishing Detection
article

Detection of AI-Generated Phishing Emails : Comparing The Efficiency Of SVM, Random Forest, CNN And BiLSTM In Detecting AI-Generated Phishing Emails

article en

Abstract

Background: Phishing attacks have become progressively more complex with the introduction of Large Language Models (LLMs) that are able to produce human-like emails. Consequently, automated phishing emails are difficult to differentiate from legitimate emails using conventional security measures. Accordingly, a new level of sophistication around phishing attacks is pushing for a next generation of detection mechanisms. Objectives: This thesis intends to detect and classify Artificial Intelligence (AI) generated emails from human-written phishing emails. Traditional machine learning models, Support Vector Machine (SVM) and Random Forest, are evaluated as well as DL models, Convolutional Neural Network (CNN) and Bidirectional Long Short Term Memory (BiLSTM). Methods: The study utilizes a multiclass email dataset from Kaggle and another spear-phishing dataset with AI-generated emails. Text preprocessing was done using natural language processing (NLP) processing steps, which included tokenizing and lemmatizing the text. The traditional machine learning models were executed using TF-IDF vectorized emails and the CNN and BiLSTM were executed using padded token sequences. In all cases the models were examined based on metrics of Accuracy, Precision, Recall, F1-score, and AUC-ROC. Results: All four models performed quite well, reaching perfect (100%) accuracy, precision, recall, F1-score, and AUC-ROC with SVM and BiLSTM. CNN and Random Forest were also effective, albeit with a few false positives. The study found a stark contrast in linguistic variables between AI-generated texts vs human-created texts, allowing us to classify the results accurately. Conclusions: Both traditional and DL models perform effectively in identifying AI generated phishing emails, with SVM and BiLSTM demonstrating the best performance. As this research illustrates, automated detection systems will be a practical tool in the arsenal of modern commonplace phishing defense. It is important however, to remain agile to evolutionary progression of AI.

KTH Publication Database DiVA (KTH Royal Institute of Technology)
Openalex Percentile: Top 36%
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.

Detection of AI-Generated Phishing Emails : Comparing The Efficiency Of SVM, Random Forest, CNN And BiLSTM In Detecting AI-Generated Phishing Emails · KTH Publication Database DiVA (KTH Royal Institute of Technology) (2025) | TGRS Research Map | TGRS