Analysis of University Students’ Awareness of Phishing Attacks Using Naive Bayes and Random Forest Algorithms

Authors

  • Rahma Syari Universitas Pembangunan Panca Budi
  • Muhammad Iqbal Universitas Pembangunan Panca Budi

Keywords:

Phishing, Cybersecurity Awareness, Naive Bayes, Random Forest, Machine Learning, Classification

Abstract

Phishing attacks remain one of the most common cybersecurity threats, particularly due to users' lack of awareness in identifying suspicious messages and protecting personal information. This study aims to classify students' awareness levels toward phishing attacks using the Naive Bayes and Random Forest algorithms. The dataset consisted of 100 respondent data obtained through a questionnaire and was classified into three awareness categories: low, medium, and high. The data were divided into 80 training data and 20 testing data. The evaluation of both models was conducted using accuracy, precision, recall, F1-score, and a confusion matrix. The experimental results showed that both Naive Bayes and Random Forest achieved an accuracy of 100% on the testing data. All categories obtained precision, recall, and F1-score values of 1.00. Furthermore, the Random Forest model identified Skor_Skenario and Rata_Rata_Perilaku as the most influential features in the classification process. The results indicate that both algorithms performed effectively in classifying students' awareness levels toward phishing attacks based on the dataset used in this study.

References

K. Okokpujie, C. G. Kennedy, K. Nnodu, and E. Noma-Osaghae, “Cybersecurity awareness: Investigating students’ susceptibility to phishing attacks for sustainable safe email usage in academic environment (A case study of a Nigerian leading university),” International Journal of Sustainable Development and Planning, vol. 18, no. 1, pp. 255–263, 2023, doi: 10.18280/ijsdp.180127.

H. Ruzaili, N. Katuk, K. M. Zaini, and W. Abdullah, “Phishing awareness and preventive measures among university students: Knowledge, behaviors, and victimisation perspectives,” Millenium—Journal of Education, Technologies, and Health, 2025, doi: 10.29352/mill0229.43489.

Malahayati and N. Nabilah, “Analisis tingkat kesadaran mahasiswa terhadap serangan rekayasa sosial (Studi kasus: Mahasiswa Teknologi Informasi Universitas Islam Negeri Ar-Raniry),” JINTECH: Journal of Information Technology, vol. 5, no. 1, pp. 1–12, 2024, doi: 10.22373/jintech.v5i1.4262.

R. J. Nur’aini and M. Simanjuntak, “Phishing awareness and security concerns: Analyzing the role of anti-phishing knowledge and internet experience in online banking users,” Jurnal Ilmu Keluarga dan Konsumen, vol. 18, no. 2, pp. 121–133, 2025, doi: 10.24156/jikk.2025.18.2.121.

N. S. Ismail, F. I. F. Rikzan, N. Katuk, N. L. Hashim, and N. A. M. Zulkefli, “Enhancing information security awareness on phishing among IT students: A pilot test case study at Politeknik Tuanku Syed Sirajuddin,” Journal of Digital System Development, 2023, doi: 10.32890/jdsd2023.1.2.

G. M. W. Tangka and E. Y. Putra, “Classification of Indonesian undergraduate students’ awareness level of phishing attacks using decision tree algorithm,” Journal of Information System Research, vol. 6, no. 4, 2025, doi: 10.47065/josh.v6i4.7859.

V. A. Windarni, A. F. Nugraha, S. T. A. Ramadhani, D. A. Istiqomah, F. M. Puri, and A. Setiawan, “Deteksi website phishing menggunakan teknik filter pada model machine learning,” Information System Journal, vol. 6, no. 1, pp. 39–43, 2023, doi: 10.24076/infosjournal.2023v6i01.1268.

J. Juremi and J. Kurniadi, “An email detection tool integrating Random Forest and Naive Bayes algorithms for phishing protection,” Malaysian Journal of Cybersecurity and Applications, vol. 2, no. 1, 2026, doi: 10.22452/mjca.vol2no1.1.

Z. Shahbazi, R. Jalali, and M. Molaeevand, “AI-based phishing detection and student cybersecurity awareness in the digital age,” Big Data and Cognitive Computing, vol. 9, no. 8, art. 210, 2025, doi: 10.3390/bdcc9080210.

M. A. Alqahtani, “Factors affecting cybersecurity awareness among university students,” Applied Sciences, vol. 12, no. 5, art. 2589, 2022, doi: 10.3390/app12052589.

L. Bognár and L. Bottyán, “Evaluating online security behavior: Development and validation of a personal cybersecurity awareness scale for university students,” Education Sciences, vol. 14, no. 6, art. 588, 2024, doi: 10.3390/educsci14060588.

A. Safi and S. Singh, “A systematic literature review on phishing website detection techniques,” Journal of King Saud University—Computer and Information Sciences, vol. 35, no. 2, pp. 590–611, 2023, doi: 10.1016/j.jksuci.2023.01.004.

L. J. Cronbach, “Coefficient alpha and the internal structure of tests,” Psychometrika, vol. 16, pp. 297–334, 1951, doi: 10.1007/BF02310555.

D. Jibat, S. Jamjoom, Q. Abu Al-Haija, et al., “A systematic review: Detecting phishing websites using data mining models,” Intelligent and Converged Networks, vol. 4, no. 4, pp. 326–341, 2023, doi: 10.23919/ICN.2023.0027.

E. Morrow, “Scamming higher ed: An analysis of phishing content and trends,” Computers in Human Behavior, vol. 158, art. 108274, 2024, doi: 10.1016/j.chb.2024.108274.

A. K. Gwenhure, “University students’ security behavior against email phishing attacks: Insights from the health belief model,” Journal of Cybersecurity, vol. 11, no. 1, art. tyaf034, 2025, doi: 10.1093/cybsec/tyaf034.

B. Setiawan and M. A. Rizal, “Measurement of information security and privacy awareness in college students after the Covid-19 pandemic,” Procedia Computer Science, vol. 234, pp. 1396–1403, 2024, doi: 10.1016/j.procs.2024.03.138.

G. Rosta and L. Bottyán, “On the factors of students’ cybersecurity behavior,” PedActa, vol. 14, no. 1, pp. 58–66, 2024, doi: 10.24193/pedacta.14.1.6.

M. Kawale, B. Maru, S. Dagu, M. Varghese, and V. Gupta, “Machine learning based phishing website detection,” in Proc. 11th International Conference on Computing for Sustainable Global Development (INDIACom), 2024, pp. 833–837, doi: 10.23919/INDIACom61295.2024.10498854.

L. Breiman, “Random forests,” Machine Learning, vol. 45, pp. 5–32, 2001, doi: 10.1023/A:1010933404324.

A. Chandra, Gregorius, M. S. J. Immanuel, A. A. S. Gunawan, and Anderies, “Accuracy comparison of different machine learning models in phishing detection,” in Proc. 5th International Conference on Information and Communications Technology (ICOIACT), 2022, pp. 24–29, doi: 10.1109/ICOIACT55506.2022.9972107.

M. Bahaghighat, M. Ghasemi, and F. Özen, “A high-accuracy phishing website detection method based on machine learning,” Journal of Information Security and Applications, vol. 77, art. 103553, 2023, doi: 10.1016/j.jisa.2023.103553.

C. F. M. Foozy, M. A. I. Anuar, A. Maslan, H. A. M. Adam, and H. Mahdin, “Phishing URLs detection using Naive Bayes, Random Forest and LightGBM algorithms,” International Journal of Data Science, vol. 5, no. 1, pp. 56–63, 2024, doi: 10.18517/ijods.5.1.56-63.2024.

B. V. Pavani, D. Mahitha, and B. U. Maheswari, “Enhancing online safety: Phishing URL detection using machine learning and explainable AI,” in Proc. 15th International Conference on Computing Communication and Networking Technologies (ICCCNT), 2024, pp. 1–6, doi: 10.1109/ICCCNT61001.2024.10723976.

F. Pedregosa et al., “Scikit-learn: Machine learning in Python,” Journal of Machine Learning Research, vol. 12, pp. 2825–2830, 2011.

Downloads

Published

2025-10-27

Most read articles by the same author(s)