Machine Learning-Based Phishing Email Detection: A Comparative Study of Support Vector Machine and Random Forest
Keywords:
Email Phishing;; Machine Learning;; Support Vector Machine;; Random Forest;; Hyperparameter Tuning;
Abstract
Information and communication technology has now developed very rapidly, bringing significant changes to our daily lives. With the advancement of information and communication technology, access to information has become very easy and fast. However, this convenience also brings its own challenges, especially in terms of personal data security. As technology users, we are required to be wise and vigilant in safeguarding our personal data so that it is not misused by irresponsible parties. One example of cybercrime that often occurs is phishing emails. In this attack, the perpetrator uses a link containing a virus to encrypt the user's data or device, then asks for a ransom to restore access to the data. Phishing emails usually look like official emails from trusted sources, so recipients are often unaware of the dangers lurking. Therefore, to minimize the losses that can occur, we can also take advantage of technology so that we can automatically classify phishing emails. Therefore, this research will carry out the process of building a machine learning model which can automatically classify phishing emails. So that with the model built in this research, it is hoped that it can help in anticipating phishing emails. In this research, the construction of machine learning models will use data with a total of 18650 data which consists of 11322 non-phishing email data and 7328 phishing email data. The model that will be built in this research is a model using the Support Vector Machine and Random. Forest algorithms. In the model building process, to find the optimal parameters, the hyperparameter tuning process is carried out using CV gridsearch, so as to produce optimal parameters. After testing the model to classify phishing emails, the results show that using the Support Vector Machine algorithm produces a test accuracy of 97.27%, while using the Random Forest algorithm produces an accuracy of 96.51%.
Downloads
References
Book: Single Author
[1] Indah Purnama Sari. Algoritma dan Pemrograman. Medan: UMSU Press, 2023, pp. 290.
[2] Indah Purnama Sari. Buku Ajar Pemrograman Internet Dasar. Medan: UMSU Press, 2022, pp. 300.
[3] Indah Purnama Sari. Buku Ajar Rekayasa Perangkat Lunak. Medan: UMSU Press, 2021, pp. 228.
Book: Two or More Authors
[4] Rolly Junius Lontaan Muhammad Fairuzabadi, Indah Purnama Sari Imam Ekowicaksono, Fatimah Nur Arifah Rahman Indra Kesuma, Nizirwan Anwar Andika Setiawan. Deep Learning untuk Pemula: Memahami Algoritma, Tools, dan Masa Depan AI. Medan: Yayasan Kita Menulis 1,2025,pp. 150
[5] Binastya Anggara Sekti, Indah Purnama Sari, Fanny Ramadhani, Andy Satria, Pasnur Pasnur, Sitti Harlina, Purwa Hasan Putra, Sitti Aisa, Nizirwan Anwar, Samuel Hasudungan Tampubolon, Siti Sundari, Muhammad Noor Hasan Siregar, Wilsen Grivin Mokodaser, Janner Simarmata, Annahl Riadi, Baso Ali, Semmy Wellem Taju, Nirsal Nirsal. Pengantar Kecerdasan Buatan untuk Pemula. Medan: Yayasan Kita Menulis, pp.350.
[6] Janner Simarmata Arsan Kumala Jaya, Syarifah Fitrah Ramadhani, Niel Ananto, Abdul Karim, Betrisandi, Muhammad Ilham Alhari, Cucut Susanto, Suardinata, Indah Purnama Sari, Edson Yahuda Putra. Komputer dan Masyarakat. Medan: Yayasan Kita Menulis, 2024, pp.162.
[7] Mahdianta Pandia, Indah Purnama Sari, Alexander Wirapraja Fergie Joanda Kaunang, Syarifah Fitrah Ramadhani Stenly Richard Pungus, Sudirman, Suardinata Jimmy Herawan Moedjahedy, Elly Warni, Debby Erce Sondakh. Pengantar Bahasa Pemrograman Python. Medan : Yayasan Kita Menulis, 2024, pp.180
[8] Zelvi Gustiana Arif Dwinanto, Indah Purnama Sari, Janner Simarmata Mahdianta Pandia, Supriadi Syam, Semmy Wellem Taju Fitrah Eka Susilawati, Asmah Akhriana, Rolly Junius Lontaan Fergie Joanda Kaunang. Perkembangan Teknologi Informatika. Medan: Yayasan Kita Menulis, 2024, pp.158
[9] Muhammad Hibrian Wiwi, Indah Purnama Sari, Sudirman Sudirman, Ramli Ramli, Sitti Arni, Eka Rahayu, Janner Simarmata, Boni Oktaviana, Raemon Syaljumairi, Muharman Lubis. Basis Data Terapan. Medan: Yayasan Kita Menulis, 2025.
[10] Ari Usman Muhammad Fairuzabadi, Indah Purnama Sari, Sudirman Berti Sari Br Sembiring, Cucut Susanto, Fera Damayanti Ayu Lestari Perdana, Wiranti Kusuma Hapsari. Sistem Pakar : Konsep, Model Dan Implementasi. Medan: Yayasan Kita Menulis, 2024, pp.172
[11] Irfan AP, Cucut Susanto, Indah Purnama Sari, Andi Zulherry, Yusron Abda'u Ansya, Idah Kusuma Dewi, Khairul Muttaqin, Rahman Pradipta, Janner Simarmata, Ahmad Ihsan, Maisaroh, Bayu Waseso, Roberto Kaban, Dafrid Cahyadi Arifin, Syukriy Abdullah, Adam M Tanniewa, Muharman Lubis, Inkreswari Retno Hardini, Chicha Rizka Gunawan, Roy Mubarak. Sistem Informasi Modern untuk Era Digital. Medan : Yayasan Kita Menulis, 2026.
Journal Article from the Internet
[12] Sari, I.P., Al-Khowarizmi, A.K., & Batubara, I.H. (2021). Cluster Analysis Using K-Means Algorithm and Fuzzy C-Means Clustering For Grouping Students' Abilities In Online Learning Process. Journal of Computer Science, Information Technology and Telecommunication Engineering, Vol. 2 No. 1, page 139-144
[13] Sari, I.P., Batubara, I.H., & Al-Khowarizmi, A.K. (2021). Sensitivity Of Obtaining Errors In The Combination Of Fuzzy And Neural Networks For Conducting Student Assessment On E-Learning. International Journal of Economic, Technology and Social Sciences (Injects), Vol. 2 No. 1, page 331- 338
[14] Sari, I.P., Fahroza, M.F., Mufit, M.I., & Qathrunad, I.F. (2021). Implementation of Dijkstra's Algorithm to Determine the Shortest Route in a City. Journal of Computer Science, Information Technology and Telecommunication Engineering,Vol. 2 No. 1, page 134-138
[15] Sari, I.P., Al-Khowarizmi, A.K., Ramadhani, F., & Sulaiman, O.K. (2023). Implementation of the Selection Sort Algorithm to Sort Data in PHP Programming Language. Journal of Computer Science, Information Technology and Telecommunication Engineering, Vol. 4 No. 1, page 377-381
[16] Manurung, A.A., Nasution, M.D., & Sari, I.P. (2023). Implementation of Fuzzy K-Nearest Neighbor Method in Dengue Disease Classification. 2023 11th International Conference on Cyber and IT Service Management (CITSM)
[17] Ramadhani, F., Satria, A., & Sari, I.P. (2023). Implementasi Metode Fuzzy K-Nearest Neighbor dalam Klasifikasi Penyakit Demam Berdarah. Hello World Jurnal Ilmu Komputer 2 (2), 58-62
[18] Sari, I.P., Batubara, I.H., Ramadhani, F., & Wardani, S. (2022). Perancangan Sistem Antrian pada Wahana Hiburan dengan Metode First In First Out (FIFO). Sudo Jurnal Teknik Informatika 1 (3), 116-123
[19] Az-Zahrah., A, & Sari., I.P. (2024). Perbandingan Sistem Prediksi Menggunakan Metode Monte Carlo dengan Metode K-NN pada Nilai Peserta Didik Uji Kompetensi Kejuruan. sudo Jurnal Teknik Informatika 3 (3), 127-135
[20] Ramadhani, F., Satria, A., & Sari, I.P. (2022). Aplikasi internet berbasis website sebagai E-Commerce penjualan komponen sport car. Blend Sains Jurnal Teknik 1 (2), 69-75
[21] Sari, I.P., Al-Khowarizmi, A., & Ramadhani, F. (2021). User Interface Prototype Using User Centered System Design Method in Motorvice Information System. 2021 International Conference on Computer Science and Engineering (IC2SE) 1, 1-6
[22] Ramadhani, F., Al-Khowarizmi, A.K., & Sari, I.P. (2021). Improving the Performance of Naïve Bayes Algorithm by Reducing the Attributes of Dataset Using Gain Ratio and Adaboost. 2021 International Conference on Computer Science and Engineering (IC2SE) 1, 1-5
[23] Sitompul, D.N., Rahmatika, A., & Sari, I.P. (2023). Application of The Sales and Purchase Program Using The Rapid Application Development Model. Al'adzkiya International of Computer Science and Information Technology (AIoCSIT) Journal, Vol. 4 No. 1, page 6-16
[24] Sari, I.P., Ramadhani, F., Satria, A., & Apdilah, D. (2023). Implementasi Pengolahan Citra Digital dalam Pengenalan Wajah menggunakan Algoritma PCA dan Viola Jones. Hello World Jurnal Ilmu Komputer 2 (3), 146-157
[25] Batubara, I.H., Sari, I.P., Siregar, E.F.S., & Lubis, B.S. (2021). Meningkatkan Kemampuan Penalaran Matematika Melalui Metode Penemuan Terpandu Berbantuan Software Autograph. Seminar Nasional Teknologi Edukasi Sosial dan Humaniora 1 (1), 699-705
[26] Apdilah, D., & Sari, I.P. (2021). Optimization Of The Fuzzy C-Means Cluster Center For Credit Data Grouping Using Genetic Algorithms. Al'adzkiya International of Computer Science and Information Technology (AIoCSIT) Journal, Vol. 2 No. 2, page 156-163
[27] Sulaiman, O.K., & Sari, I.P. (2021). Implementation Data Mining For Level Analysis Traffic Violation By Algorithm Association Rule. Al'adzkiya International of Computer Science and Information Technology (AIoCSIT) Journal, Vol. 2 No. 2, page 128-135
[28] Sari, I.P., Hariani, P.P ., Al-Khowarizmi, A.K., Ramadhani, F., Sulaiman, O.K., Satria, A., & Manurung, A.A. (2024). CLUSTERING HIV/AIDS DISEASE USING K-MEANS CLUSTERING ALGORITHM. Proceeding International Seminar on Islamic Studies. Vol. 5, No. 1 (2024), 1668-1676
[29] Sari, I.P., Ramadhani, F., Satria, A., & Sulaiman, O.K. (2023). Leukocoria Identification: A 5-Fold Cross Validation CNN and Adaboost Hybrid Approach. 2023 6th International Seminar on Research of Information Technology and Intelligent Systems (ISRITI). 486-491
[30] Sari, I.P., Al-Khowarizmi, A.K., Sulaiman, O.K., & Apdilah, D. (2023). Implementation of Data Classification Using K-Means Algorithm in Clustering Stunting Cases. Journal of Computer Science, Information Technology and Telecommunication Engineering, Vol. 4 No. 2, page 402-412
[31] Sari., I.P, Batubara., I.H, Al-Khowarizmi., A, & PP Hariani. (2022). Perancangan Sistem Informasi Pengelolaan Arsip Digital Berbasis Web untuk Mengatur Sistem Kearsipan di SMK Tri Karya. Wahana Jurnal Pengabdian kepada Masyarakat 1 (1), 18-24
[32] Habibi., F, Qathrunada., I.F, & Anggraini., T. (2023). “Design and Build a Tourism Website Using Shopify Framework”. Hanif Journal of Information Systems. Vol. 1 No. 1, 2023.
[33] Sari., I.P, A Syahputra, N Zaky, RU Sibuea, & Z Zakhir. (2022). Perancangan sistem aplikasi penjualan dan layanan jasa laundry sepatu berbasis website. Blend sains jurnal teknik 1 (1), 31-37
[34] Zulherry, A., Riadi, I., & Umar, R. (2026). Anomaly Detection in Cloud Device-Based Information Technology Infrastructure Using Isolation Forest Algorithm. Journal Of Informatics And Telecommunication Engineering 9 (2)
[35] Sari, I.P., & Zulherry, A. (2025). Development of A Smart Monitoring System for IoT–Based Tide Observation. Al'adzkiya International of Computer Science and Information Technology (AIoCSIT) Journal, 6 (2), 18-23
[36] Zulherry, A., Gunawan, M., & Sari, I.P. (2025). Development of an Android-Based Smart Health Monitoring Device for Heartbeat Detection. Al'adzkiya International of Computer Science and Information Technology (AIoCSIT) Journal, 6 (2), 43-47
[37] Sari, I.P., Zulherry, A., Basri, M., & Hayani W. (2025). Pembelajaran Pemrograman berbasis Machine Learning sebagai Upaya Peningkatan Computational Thinking. Jurnal Penelitian, Pendidikan dan Pengajaran: JPPP 6 (3), 245-250
[38] Bisono, A. T., & Zulherry, A. (2025). Analisis sentimen game Genshin Impact untuk mengetahui reaksi dan harapan pemain menggunakan metode Naïve Bayes. sudo Jurnal Teknik Informatika, 4(2), 183-193.
[39] Basri, M., & Zulherry, A. (2025). Analysis of the Impact of Gambling and Online Loans in the Perspective of Informatics, Islam, and Kemuhammadiyahan. Ar-Rasyid: Jurnal Pendidikan Agama Islam, 5(1), 65-73.
[40] Asadel, A., & Zulherry, A. (2025). Detecting Zero-Width Characters Obfuscated in Phishing URLs using the XGBOOST Algorithm. Hanif Journal of Information Systems 3 (1), 43-53
[41] Zulherry, A., Sari, I.P., & Basri, M. (2025). Perancangan Aplikasi Monitoring Kehadiran Pegawai Menggunakan RFID. sudo Jurnal Teknik Informatika 4 (4), 378-384
[42] Sari., I.P, A Azzahrah, FQ Isnaini, L Nurkumala, & A Thamita. (2022). Perancangan sistem absensi pegawai kantoran secara online pada website berbasis HTML dan CSS. Blend sains jurnal teknik 1 (1), 8-15
[43] Septiana., D. (2024). Forecasting Rice Prices with Holt-Winter Exponential Smoothing Model. Hanif Journal of Information Systems. Vol. 1 No. 2, 2024.
[44] Sari.,I.P, & Ramadhani., F. (2021). Pengaruh Teknologi Informasi Terhadap Kewirausahaan Pada Aplikasi Perancangan Jual Beli Jamu Berbasis WEB. Prosiding Seminar Nasional Kewirausahaan 2 (1), 874-878.
[45] Satria., A, Ramadhani., F, & Sari, I.P. (2023). Rancang Bangun Sistem Informasi Penerimaan Peserta Didik Baru (PPDB) Sekolah Menengah Kejuruan Telkom 2 Medan Menggunakan Codeigniter. Wahana Jurnal Pengabdian kepada Masyarakat 2 (1), 23-31
[46] Sari., I.P, A Jannah, AM Meuraxa, A Syahfitri, & R Omar. (2022). Perancangan Sistem Informasi Penginputan Database Mahasiswa Berbasis Web. Hello World Jurnal Ilmu Komputer 1 (2), 106-110.
[47] Mahardika., F, & Abdillah., M.L. (2024). Design of Unified Modeling Language Information System for Motorcycle Unit Selling and Buying Transactions using the Waterfall Method. Hanif Journal of Information Systems. Vol. 1 No. 2, 2024.
[48] Sari., I.P, & Batubara., I.H. (2021). Perancangan Sistem Informasi Laporan Keuangan Pada Apotek Menggunakan Algoritma K-NN. Seminar Nasional Teknologi Edukasi dan Humaniora (SiNTESa) 1 (2021 - ke 1
[49] Ichsan, A., Zulherry, A., Lubis, T. A., & Shahnaz, B. A. Z. (2025). Utilization of Mobile Applications to Speed Up The Search for Android-Based Index Places. IJATCoS: Indonesian Journal of Applied Technology. Computer and Science, 2(1).
[50] Amada, E.P., & Zulherry, A. (2025). Klasterisasi Minat Dan Bakat Siswa Menggunakan Metode X-Means Berbasis Web: Studi Kasus SMA Negeri 1 Hamparan Perak. sudo Jurnal Teknik Informatika 4 (4), 276-283.
[51] Zulherry, A., Ramadhani, F., & Satria, A. (2024). Klasifikasi Data Tracer Study Dengan Pemanfaatan Data Mining Menggunakan Algoritma Support Vector Machine dan Neural Network. Portal Riset dan Inovasi Sistem Perangkat Lunak 2 (1), 45-54
[52] Zulherry, A. (2023). Decision making for network security with simple additive weighting method. Journal of Intelligent Decision Support System (IDSS), 6(3), 155-159.
[53] Zulherry, A., Gunawan, T. S., & Wanayumini, W. (2021). Analisis Hasil Pendukung Keputusan Mendapatkan Rumah Dinas Perusahaan Menggunakan Metode Analytical Hierarchy Process (AHP) dan Technique for Order Preference by Similarity to Ideal Solution (TOPSIS). Jurnal Media Informatika Budidarma, 5(2), 695-704.
[54] Sari., I.P, & Batubara., I.H. (2021). User Interface Information System for Using Account Services (Joint Account) WEB-Based. International Journal of Economic, Technology and Social Sciences (Injects), 462-469
[55] Sari., I.P, Al-Khowarizmi., A, & Batubara., I.H. (2021). Implementasi Aplikasi Mobile Learning Sistem Manajemen Soal dan Ujian Berbasis Web Pada Platform Android. IHSAN: JURNAL PENGABDIAN MASYARAKAT 3 (2), 178-183
[56] Mudafri., H.A. (2024). Design of a Web-Based Coffeeshop Ordering Information System. Hanif Journal of Information Systems. Vol. 1 No. 2, 2024.
[57] Sari., I.P, Hariani., P.P, Satria., A, & Manurung., A.A. (2023). Rancang Bangun Sistem Informasi Pengelolaan Arsip Materi Ajar Berbasis Web untuk Guru MAS Darul Falah. Wahana Jurnal Pengabdian kepada Masyarakat 2 (2), 59-65
[58] Ramadhani., F, & Sari., I.P. (2021). Pemanfaatan Aplikasi Online dalam Digitalisasi Pasar Tradisional di Medan. Prosiding Seminar Nasional Kewirausahaan 2 (1), 806-811
[59] Sari., I.P, Sulaiman., O.K, Ramadhani., F, & Satria., A. (2023). Perancangan Sistem Manajemen Surat Berbasis Web Pada Kantor Camat Tano Tombangan Angkola. INCODING: Journal of Informatics and Computer Science Engineering 3 (2), 61-76.
[60] Guntur., S, Ichsan., A, & Sari., I.P. (2024). Designing a Web-Based Mail Management System at the Beringin Helvetia Sub-district Office. Altafani: Jurnal Pengabdian Masyarakat 1 (1)
[61] Sari., I.P, Sulaiman., O.K, Al-Khowarizmi., A, & Azhari., M. (2023). Perancangan Sistem Informasi Pelayanan Masyarakat pada Kelurahan Sipagimbar dengan Metode Prototype Berbasis Web. Blend Sains Jurnal Teknik 2 (2), 125-134.
[62] Hutasuhut., B.K, Sari., I.P, & Al-Khowarizmi, A.K. (2023). Analysis the Effect of Digitalization and Technology on Web-Based Entrepreneurship. Journal of Computer Science, Information Technology and Telecommunication Engineering
[63] Dongoran., D, & Sari., I.P. (2024). Implementasi Klasifikasi Data Tracer Study Pada Universitas Muhammadiyah Sumatera Utara Dengan Pemanfaatan Data Mining Menggunakan Kombinasi Algoritma Support Vector Machine. Hello World Jurnal Ilmu Komputer 4 (1), 12-24
[64] Sari., I.P, Azis., Z, & Hasibuan., A.R. (2025). ANALYSIS OF RON 92 OIL BASED ON MORPHOLOGY AND HISTOGRAM TECHNIQUES. BAREKENG: Jurnal Ilmu Matematika dan Terapan 19 (2), 1341-1352
[65] Aqta., D.P, & Sari., I.P. (2025). Evaluasi Keefektifan Teknik Morfologi dan Histogram Citra Digital pada Minyak RON 92 di SPBU Pertamina Medan Tembung. Hello World Jurnal Ilmu Komputer 3 (4), 161-170
[66] Yusuf., M, & Sari., I.P. (2025). Sistem Pakar Mencegah Stunting dengan Menentukan Gizi Anak Menggunakan Natural Language Processing (NLP). Jurnal JTIK (Jurnal Teknologi Informasi dan Komunikasi) 9 (3), 924-934
[67] Sari., I.P, Sulaiman., O.K, & Apdilah., D. (2025). Penerapan Sistem Pakar Diagnostik Penyakit Kelapa Sawit sebagai Solusi bagi Petani dalam Meningkatkan Produktivitas Perkebunan. CivicAction: Jurnal Pengabdian dan Inovasi Masyarakat 1 (1), 8-17
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Nurkumala Lubis, Mulkan Azhari

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Authors who publish in Hanif Journal of Information Systems agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) License that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See The Effect of Open Access).
Similar Articles
- Ahmad Asadel, Andi Zulherry, Detecting Zero-Width Characters Obfuscated in Phishing URLs using the XGBOOST Algorithm , Hanif Journal of Information Systems : Vol. 3 No. 1 (2025): August Edition
- Ilham Prastia, Mulkan Azhari, Development of Virtual Reality-Based Computer Assembly Simulation Learning Media , Hanif Journal of Information Systems : Vol. 3 No. 1 (2025): August Edition
- Arief Rahman Hakim, Ahmad Riady Hasibuan, Pipit Putri Hariani, Implementation of Multimedia Development Life Cycle in Learning Media Applications for Children with Mental Disabilities , Hanif Journal of Information Systems : Vol. 2 No. 1 (2024): August Edition
- Julia Namira Nasution, Zainal Azis, Comparison of Logistic Regression and K-Nearest Neighbor (KNN) Algorithms in a Heart Failure Prediction Dataset , Hanif Journal of Information Systems : Vol. 3 No. 1 (2025): August Edition
- Muhammad Nauval Asyqar Ridwan Ritonga, Halim Maulana, IoT Based Industrial Waste Monitoring System Design with Data Visualization on A Web Application Using The Supervised Learning Method , Hanif Journal of Information Systems : Vol. 3 No. 1 (2025): August Edition
- Muhammad Aulia Abdi Rianto, Mhd. Zulfansyuri Siambaton, Heri Santoso, A Decision Support System for Determining Optimal Concrete Quality Using the Simple Additive Weighting (SAW) Algorithm (Case Study: UISU Concrete Laboratory) , Hanif Journal of Information Systems : Vol. 3 No. 1 (2025): August Edition
- Leony Ayu Diah Pasha, Zainal Azis, Predicting The Risk of Online Sales Fraud with The Naïve Bayes Approach on Facebook Social Media , Hanif Journal of Information Systems : Vol. 2 No. 2 (2025): February Edition
- Andi Zulherry, Implementation of Multi-Room Computer Laboratory Network Infrastructure Based on Star Topology in an Educational Environment , Hanif Journal of Information Systems : Vol. 3 No. 2 (2026): February Edition
- Al-Khowarizmi Al-Khowarizmi, Asrar Aspia Manurung, Mulkan Azhari, Design of an Application to Calculate Student Grades in Learning Logic Informatics Propositional Calculus Material , Hanif Journal of Information Systems : Vol. 1 No. 1 (2023): August Edition
- Malinar Nasution, Nizwardi Jalinus, The Philosophy and Foundations of Vocational Technology in Education with IT Integration , Hanif Journal of Information Systems : Vol. 1 No. 2 (2024): February Edition
You may also start an advanced similarity search for this article.









