Digitala Vetenskapliga Arkivet

Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
Phishing with Attention: A Study on AI-Enhanced Phishing Leveraging RAG
Karlstad University, Faculty of Health, Science and Technology (starting 2013), Department of Mathematics and Computer Science (from 2013).
2025 (English)Independent thesis Advanced level (professional degree), 20 credits / 30 HE creditsStudent thesis
Abstract [en]

Recent advances in Artificial intelligence (AI), particularly in Natural Language Processing (NLP), following the breakthrough of Large Language Models (LLMs) capable of producing coherent, human-like text, are reshaping modern society. These capabilities offer unprecedented utility across various domains, from assistance in writing to software development. However, they also introduce critical cybersecurity challenges, such as highly deceptive phishing attacks that can exploit human vulnerabilities.

One key concern is the growing accessibility and sophistication of LLMs, enabling adversaries to craft personalized spear-phishing messages with minimal effort. These novel threats can potentially evade traditional detection strategies and compromise user security at scale, underscoring the urgent need to examine and address the possible threats and potential deficiencies in existing detection systems.

This thesis explores the offensive and defensive capabilities of LLMs by focusing on phishing email generation and detection. By collecting publicly available information via a developed Retrieval-Augmented Generation (RAG) pipeline, a generative LLM produced spear-phishing messages with and without the added contextual relevance. Subsequently, a fine-tuned LLM phishing classifier, trained solely on traditional datasets, was tested for its robustness against these AI-generated attacks.

To accomplish this, a comparative quantitative experiment was conducted. The results revealed that the AI-generated phishing emails significantly challenged the classifier, which only correctly identified 13.27% of the new threats compared to the 99.54% of the traditional phishing messages. This stark contrast highlights the model's vulnerability— overfitting to traditional phishing patterns and signals underrepresented in the generated dataset— underscoring both the classifier's inadequacy for safeguarding users in real-world applications and the importance of incorporating synthetic AI samples into training.

Ultimately, these findings emphasize the dual-use nature of LLMs and alarming shortcomings in existing phishing defenses. The study contributes to a deeper understanding of AI's evolving role and associated risks in cybersecurity and offers practical insights for improving phishing detection models and cybersecurity awareness programs.

Place, publisher, year, edition, pages
2025. , p. 143
Keywords [en]
AI, LLM, NLP, RAG, Classification, Cybersecurity, Phishing
National Category
Computer Sciences
Identifiers
URN: urn:nbn:se:kau:diva-105861OAI: oai:DiVA.org:kau-105861DiVA, id: diva2:1977822
Subject / course
Computer Science
Educational program
Engineering: Computer Engineering (300 ECTS credits)
Supervisors
Examiners
Available from: 2025-08-14 Created: 2025-06-26 Last updated: 2026-02-12Bibliographically approved

Open Access in DiVA

Rex_Martini_thesis(1536 kB)347 downloads
File information
File name FULLTEXT01.pdfFile size 1536 kBChecksum SHA-512
b48429f28d3643ccf9aaf19b88d50bee2f40c2dc51ae2b8e44df4153cc697434f9db909a1e6d74917b92fabc14bf2ae51b037352160beb7fe0f608f5d496ea40
Type fulltextMimetype application/pdf

By organisation
Department of Mathematics and Computer Science (from 2013)
Computer Sciences

Search outside of DiVA

GoogleGoogle Scholar
Total: 350 downloads
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

urn-nbn

Altmetric score

urn-nbn
Total: 1676 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf