Loading article...
Loading article...
Stream/Area:
-
Subject:
-
Paper ID:
IJSREM66497
Volume:
10 |
8 |
Aug 2026
Pages:
1-11
Publication Frequency:
Monthly (12 issues per year)
License:International Journal of Scientific Research in Engineering and Management follows the Creative Commons Attribution 4.0 (CC BY 4.0) License, allowing free use and distribution with proper attribution.
Department of Computer Science
University College of Engineering, Science & Technology Jawaharlal Nehru Technological University Hyderabad Hyderabad, India
Department of Computer Science
University College of Engineering, Science & Technology Jawaharlal Nehru Technological University Hyderabad Hyderabad, India
Phishing email continues to be one of the most persistent and financially damaging categories of cyberattack, and traditional keyword-based spam filters and classical machine-learning classifiers routinely fail against professionally worded messages while offering the end user no explanation for a verdict. This paper presents IntelliPhish, a self-contained Flask web application that fine-tunes a DistilBERT transformer on a cleaned, merged corpus of phishing and legitimate emails and pairs the resulting classifier with SHAP (SHapley Additive exPlanations) word-level attribution, a URL Deep Analysis module, and a curated threat-keyword extractor, so that every verdict arrives with corroborating, human-readable evidence rather than a bare label. The fine-tuned DistilBERT model reaches 97.4% accuracy and a 97.3 F1-score on a held-out test split, the highest of five benchmarked models, while running at roughly one-third the inference latency (38 ms vs. 112 ms) and close to half the disk footprint (256 MB vs. 438 MB) of full BERT-base, and comfortably ahead of Logistic Regression, Random Forest and Naive Bayes baselines trained on the same data. The URL Deep Analysis module scores embedded links on IP-based addressing, excessive length, brand typosquatting via Levenshtein distance, WHOIS domain age and unencrypted HTTP usage, while a 27-term threat lexicon flags urgency and manipulation language independently of the transformer's own decision. Every scan is persisted to SQLite, driving an analytics dashboard and a five-model benchmark page, with an optional read-only Gmail OAuth 2.0 integration allowing the system to scan a live inbox using the identical prediction pipeline used for pasted text. An analysis of 97 real scans recorded during live use shows a 35.1%/64.9% phishing/legitimate split, an average confidence of 97.79%, and an average URL risk score of 44.64 out of 100, with the keyword 'click' detected 181 times, more than any other threat term. Structured testing, including deliberate failure injection into the SHAP explainer and the SQLite writer, confirms that the system degrades gracefully rather than failing hard when an individual analysis module is unavailable. These results demonstrate that a compact, distilled transformer combined with an independent, structural URL-risk layer and a transparent explanation mechanism can deliver phishing detection that is simultaneously accurate, interpretable, auditable, and deployable without specialised hardware.
KEYWORDS
This paper presented IntelliPhish, a phishing-email detection system that goes beyond a bare classification label by combining a fine-tuned DistilBERT transformer with SHAP word-level explanation, an independent URL Deep Analysis module and a curated threat-keyword lexicon, all served through a single, self-contained Flask application. Fine-tuning DistilBERT on a carefully cleaned and de-duplicated merged corpus produced the highest accuracy (97.4%) and F1-score (97.3) among five benchmarked models, while remaining roughly three times faster and nearly half the size of full BERT-base, directly validating the choice of a distilled transformer for a system intended to run without specialised hardware. Beyond raw classification accuracy, the SHAP-based word-level explanation, the URL Deep Analysis module's typosquat and domain-age checks, and the keyword-extraction layer together give the user independently corroborating evidence for every verdict rather than a single opaque number. The analysis of 97 real scans recorded during live use showed a 35.1%/64.9% phishing/legitimate split, an average confidence of 97.79%, and a keyword profile dominated by call-to-action and urgency language consistent with established phishing patterns, evidence that the system's outputs behave in line with real-world expectations rather than only with benchmark data. Structured testing, in particular the graceful-degradation test cases, further confirmed that the system remains usable and honest with the user even when an individual analysis module fails. Limitations: Two limitations are worth stating plainly. First, the deployed inference pipeline truncates email text to 128 tokens while the model was trained at a 256-token maximum length, so reported benchmark accuracy and live-inference accuracy on unusually long emails are not strictly like-for-like. Second, the URL Deep Analysis module relies on structural heuristics — IP-based addressing, typosquatting distance, domain age and HTTP usage — rather than a live threat-intelligence feed, so a newly weaponised but structurally unremarkable domain could still score as low risk. Both limitations are addressed directly in the future work below.
[1] S. Jamal, H. Wimmer, I. H. Sarker, “An Improved Transformer-Based Model for Detecting Phishing, Spam and Ham Emails: A Large Language Model Approach,” Security and Privacy, Wiley, vol. 7, no. 5, 2024. [2] M. A. Uddin, M. Mahiuddin, I. H. Sarker, “An Explainable Transformer-Based Model for Phishing Email Detection: A Large Language Model Approach,” arXiv:2402.13871, 2024. [3] A. Alhuzali, A. Alloqmani, M. Aljabri, F. Alharbi, “In-Depth Analysis of Phishing Email Detection: Evaluating the Performance of Machine Learning and Deep Learning Models Across Multiple Datasets,” Applied Sciences, MDPI, vol. 15, no. 6, Art. 3396, 2025. [4] K. M. M. Uddin, N. Biswas, S. T. Rikta, M. Nur-A-Alam, R. Mostafiz, “Explainable Machine Learning for Phishing Site Detection: A High-Efficiency Approach Using Boosting Models and SHAP,” The Journal of Engineering, Wiley, 2025. [5] M. Mia, D. Derakhshan, M. M. A. Pritom, “Can Features for Phishing URL Detection Be Trusted Across Diverse Datasets? A Case Study with Explainable AI,” Proc. 11th Int. Conf. on Networking, Systems, and Security (NSysS ’24), ACM, pp. 137–145, 2024. [6] V. Sanh, L. Debut, J. Chaumond, T. Wolf, “DistilBERT, a Distilled Version of BERT: Smaller, Faster, Cheaper and Lighter,” arXiv:1910.01108, 2019. [7] S. M. Lundberg, S.-I. Lee, “A Unified Approach to Interpreting Model Predictions,” Advances in Neural Information Processing Systems (NeurIPS), 2017. [8] J. Devlin, M.-W. Chang, K. Lee, K. Toutanova, “BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding,” NAACL-HLT, 2019. [9] Pallets Projects, “Flask Documentation,” https://flask.palletsprojects.com/. [10] Hugging Face, “Transformers Documentation,” https://huggingface.co/docs/transformers/.
Publication Date
8/4/2026
Peer Review Type
Double-Blind Peer Review
Review Rounds: 2
Documents
Article Views
0
Total views since publication
PDF Downloads
13
Total downloads since publication
Geographic Reach
5
Digital Preservation: This article is permanently archived on Zenodo and complies with all data preservation standards across major indexing platforms.
Plagiarism Screening
This manuscript has been checked for plagiarism using TurnitinPlagiarismChecker software.
Conflict of Interest
The authors declare no conflict of interest related to this research work.
Funding Information
No funding information available for this research.
Related research in the same subject area
Loading similar articles...