journal article·2023-04-23Open access

A Phishing-Attack-Detection Model Using Natural Language Processing and Deep Learning

Eduardo Benavides-Astudillo, Walter Fuertes, Sandra Sanchez-Gordon, Daniel Nuñez-Agurto, Germán Rodríguez-Galán

Applied Sciences· Volume 13· Issue 9

Abstract

Phishing is a type of cyber-attack that aims to deceive users, usually using fraudulent web pages that appear legitimate. Currently, one of the most-common ways to detect these phishing pages according to their content is by entering words non-sequentially into Deep Learning (DL) algorithms, i.e., regardless of the order in which they have entered the algorithms. However, this approach causes the intrinsic richness of the relationship between words to be lost. In the field of cyber-security, the innovation of this study is to propose a model that detects phishing attacks based on the text of suspicious web pages and not on URL addresses, using Natural Language Processing (NLP) and DL algorithms. We used the Keras Embedding Layer with Global Vectors for Word Representation (GloVe) to exploit the web page content’s semantic and syntactic features. We first performed an analysis using NLP and Word Embedding, and then, these data were introduced into a DL algorithm. In addition, to assess which DL algorithm works best, we evaluated four alternative algorithms: Long Short-Term Memory (LSTM), Bidirectional LSTM (BiLSTM), Gated Recurrent Unit (GRU), and Bidirectional GRU (BiGRU). As a result, it can be concluded that the proposed model is promising because the mean accuracy achieved by each of the four DL algorithms was at least 96.7%, while the best performer was BiGRU with 97.39%.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Spam and Phishing Detection · Misinformation and Its Impacts · Sentiment Analysis and Opinion Mining

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Department of Informatics and Computer Science, Escuela Politécnica Nacional, Quito 170525, Ecuador

Department of Computer Sciences, Universidad de las Fuerzas Armadas ESPE, Sangolquí 171103, Ecuador

References (46)

Show source-provided references
1. Analysis of Vulnerabilities Associated with Social Engineering Attacks Based on User Behavior
2. A Framework Based on Personality Traits to Identify Vulnerabilities to Social Engineering Attacks
3. A survey on deep learning for cybersecurity: Progress, challenges, and opportunities10.1016/j.comnet.2022.109032 ↗
4. APWG (2023, January 29). Phishing Activity Trends Reports. Available online: https://apwg.org/trendsreports.
5. Achieving a consensual definition of phishing based on a systematic review of the literature10.1186/s40163-014-0009-y ↗
6. Balasubaramanian, S., Ganesan, P., and Rajasekaran, J. (2023). Weighted ensemble classifier for malicious link detection using natural language processing. Int. J. Pervasive Comput. Commun.
7. Elsadig, M., Ibrahim, A.O., Basheer, S., Alohali, M.A., Alshunaifi, S., Alqahtani, H., Alharbi, N., and Nagmeldin, W. (2022). Intelligent Deep Machine Learning Cyber Phishing URL Detection Based on BERT Features Extraction. Electronics, 11.10.3390/electronics11223647 ↗
8. Machine learning and deep learning for phishing email classification using one-hot encoding10.3844/jcssp.2021.610.623 ↗
9. Chowdhary, K. (2020). Fundamentals of Artificial Intelligence, Springer.10.1007/978-81-322-3972-7 ↗
10. Avoiding the Hook: Influential Factors of Phishing Awareness Training on Click-Rates and a Data-Driven Approach to Predict Email Difficulty Perception10.1109/ACCESS.2022.3207272 ↗
11. Benavides-Astudillo, E., Fuertes, W., Sanchez-Gordon, S., Rodriguez-Galan, G., Martínez-Cepeda, V., and Nuñez-Agurto, D. (2022, January 23–25). Comparative Study of Deep Learning Algorithms in the Detection of Phishing Attacks Based on HTML and Text Obtained from Web Pages. Proceedings of the Applied Technologies: 4th International Conference, ICAT 2022, Quito, Ecuador. Revised Selected Papers, Part I.10.1007/978-3-031-24985-3_28 ↗
12. Zhang, X., Zeng, Y., Jin, X.B., Yan, Z.W., and Geng, G.G. (2017, January 11–14). Boosting the phishing detection performance by semantic analysis. Proceedings of the IEEE International Conference on Big Data (Big Data), Boston, MA, USA.10.1109/BigData.2017.8258030 ↗
13. Goyal, P., Pandey, S., and Jain, K. (2018). Deep Learning for Natural Language Processing, Apress.10.1007/978-1-4842-3685-7 ↗
14. A Systematic Literature Review on Phishing Website Detection Techniques
15. Alshingiti, Z., Alaqel, R., Al-Muhtadi, J., Haq, Q.E.U., Saleem, K., and Faheem, M.H. (2023). A Deep Learning-Based Phishing Detection System Using CNN, LSTM, and LSTM-CNN. Electronics, 12.10.3390/electronics12010232 ↗
16. Recurrent neural networks
17. Keras (2022, November 15). Embedding Layer. Available online: https://keras.io/api/layers/corelayers/embedding.
18. Deep belief network based detection and categorization of malicious URLs10.1080/19393555.2018.1456577 ↗
19. Phishing environments, techniques, and countermeasures: A survey10.1016/j.cose.2017.04.006 ↗
20. Classification of Phishing Attack Solutions by Employing Deep Learning Techniques: A Systematic Literature Review10.1007/978-981-13-9155-2_5 ↗
21. A systematic literature review on phishing email detection using natural language processing techniques10.1109/ACCESS.2022.3183083 ↗
22. Phishing or not phishing? A survey on the detection of phishing websites10.1109/ACCESS.2023.3247135 ↗
23. Detection of phishing websites using an efficient feature-based machine learning framework10.1007/s00521-017-3305-0 ↗
24. Off-the-hook: An efficient and usable client-side phishing prevention application10.1109/TC.2017.2703808 ↗
25. A machine learning based approach for phishing detection using hyperlinks information10.1007/s12652-018-0798-z ↗
26. Systematic literature reviews in software engineering—A systematic literature review10.1016/j.infsof.2008.09.009 ↗
27. Detecting compromised social network accounts using deep learning for behavior and text analyses
28. A hybrid DNN–LSTM model for detecting phishing URLs10.1007/s00521-021-06401-z ↗
29. Phishing websites detection via CNN and multi-head self-attention on imbalanced datasets10.1016/j.cose.2021.102372 ↗
30. Sirigineedi, S.S., Soni, J., and Upadhyay, H. (2020, January 9–12). Learning-based models to detect runtime phishing activities using URLs. Proceedings of the 4th International Conference on Compute and Data Analysis, Silicon Valley, CA, USA.10.1145/3388142.3388170 ↗
31. Adebowale, M.A., Lwin, K.T., and Hossain, M.A. (2020). Intelligent phishing detection scheme using deep learning algorithms. J. Enterp. Inf. Manag.10.1108/JEIM-01-2020-0036 ↗
32. Villanueva, A., Atibagos, C., De Guzman, J., Cruz, J.C.D., Rosales, M., and Francisco, R. (2022, January 10–11). Application of Natural Language Processing for Phishing Detection Using Machine and Deep Learning Models. Proceedings of the 2022 International Conference on ICT for Smart Society (ICISS), Bandung, Indonesia.10.1109/ICISS55894.2022.9915037 ↗
33. Combining Long-Term Recurrent Convolutional and Graph Convolutional Networks to Detect Phishing Sites Using URL and HTML10.1109/ACCESS.2022.3196018 ↗
34. Do, N.Q., Selamat, A., Krejcar, O., Yokoi, T., and Fujita, H. (2021). Phishing webpage classification via deep learning-based algorithms: An empirical study. Appl. Sci., 11.10.3390/app11199210 ↗
35. Maurer, M.E. (2022, November 16). Phishload. Available online: https://www.medien.ifi.lmu.de/team/max.maurer/files/phishload.
36. (2023, January 15). GloVe: Global Vectors for Word Representation. Available online: https://nlp.stanford.edu/projects/glove.
37. Evaluating deep learning approaches to characterize and classify malicious URL’s10.3233/JIFS-169429 ↗
38. Social Engineering Attack Detection Using Machine Learning: Text Phishing Attack10.21817/indjcse/2021/v12i3/211203298 ↗
39. Fundamentals of Recurrent Neural Network (RNN) and Long Short-Term Memory (LSTM) network10.1016/j.physd.2019.132306 ↗
40. Feature memory-based deep recurrent neural network for language modeling10.1016/j.asoc.2018.03.040 ↗
41. Long Short-Term Memory10.1162/neco.1997.9.8.1735 ↗
42. PapersWithCode (2023, January 21). Bidirectional LSTM. Available online: https://paperswithcode.com/method/bilstm.
43. Britz, D. (2023, January 29). Recurrent Neural Network Tutorial, Part 4—Implementing a GRU and LSTM RNN with Python and Theano. Available online: https://dennybritz.com/posts/wildml/recurrent-neural-networks-tutorial-part-4.
44. Deng, Y., Jia, H., Li, P., Tong, X., Qiu, X., and Li, F. (2019, January 19–21). A deep learning methodology based on bidirectional gated recurrent unit for wind power prediction. Proceedings of the 14th IEEE Conference on Industrial Electronics and Applications, ICIEA, Xi’an, China.10.1109/ICIEA.2019.8834205 ↗
45. Attention-Based Relation Extraction with Bidirectional Gated Recurrent Unit and Highway Network in the Analysis of Geological Data10.1109/ACCESS.2017.2785229 ↗
46. A visualized botnet detection system based deep learning for the internet of things networks of smart cities10.1109/TIA.2020.2971952 ↗