Evaluating Threshold Screening, K-Means, and Isolation Forest for Password Spraying in Email Authentication Logs
DOI:
https://doi.org/10.29408/edumatic.v10i3.37152Keywords:
email authentication logs, isolation forest, k-means clustering, password spraying, threshold-based detectionAbstract
Password spraying tries a few common passwords against many accounts while staying below lockout thresholds. Self-hosted mail servers often rely on fixed threshold rules, yet their coverage is rarely evaluated on operational logs, and anomaly detection and behavioral clustering are rarely compared on the same data. This study evaluated the coverage of the Dynamic Screening rule on one MDaemon server and compared Isolation Forest and K-Means. We aggregated two months of pseudonymized logs from a private company in Jakarta by IP address, day, and month. Dynamic Screening never blocked or refused 77.6% of 3,578 external IP addresses with failed logins in July. K-Means produced two stable, spraying-like profiles. Isolation Forest flagged 0.2% of the larger profile (1,164 addresses) and no more than 7% across contamination rates of 1% to 20%, while most of its flags (67.6%) fell in profiles interpreted as legitimate. Cluster labels agreed with AbuseIPDB reputation indicators for 58 of 60 sampled addresses, which shows consistency with reputation data, not verified detection accuracy. Statistical rarity and attack behavior can diverge. Given data from one organization and two months, clustering is best viewed as an aid for auditing threshold rules in similar settings.
References
Apruzzese, G., Laskov, P., Montes de Oca, E., Mallouli, W., Brdalo Rapa, L., Grammatopoulos, A. V., & Di Franco, F. (2023). The role of machine learning in cybersecurity. Digital Threats: Research and Practice, 4(1), 1–38. https://doi.org/10.1145/3545574
Arp, D., Quiring, E., Pendlebury, F., Warnecke, A., Pierazzi, F., Wressnegger, C., Cavallaro, L., & Rieck, K. (2022). Dos and don’ts of machine learning in computer security. In 31st USENIX Security Symposium (USENIX Security 22) (pp. 3971–3988). USENIX Association. https://www.usenix.org/conference/usenixsecurity22/presentation/arp
Dharmawan, M. R., & Sipayung, E. M. (2026). Penerapan algoritma isolation forest dan metode rule based untuk deteksi serangan brute force. Jurnal Ilmiah Universitas Batanghari Jambi, 26(1), 271–279. https://doi.org/10.33087/jiubj.v26i1.6425
Fansuri, M. F., & Kusrini, K. (2026). Mutual information-driven feature selection for efficient DDoS detection using modern boosting ensembles. Edumatic: Jurnal Pendidikan Informatika, 10(1), 150–159. https://doi.org/10.29408/edumatic.v10i1.34012
Hamza, A. A., & Al-Janabi, J. S. (2024). Detecting brute force attacks on SSH and FTP protocol using machine learning: A survey. Journal of Al-Qadisiyah for Computer Science and Mathematics, 16(1), 21–31. https://doi.org/10.29304/jqcsm.2024.16.11432
Hariri, S., Carrasco Kind, M., & Brunner, R. J. (2021). Extended isolation forest. IEEE Transactions on Knowledge and Data Engineering, 33(4), 1479–1489. https://doi.org/10.1109/TKDE.2019.2947676
Ikotun, A. M., Ezugwu, A. E., Abualigah, L., Abuhaija, B., & Heming, J. (2023). K-means clustering algorithms: A comprehensive review, variants analysis, and advances in the era of big data. Information Sciences, 622, 178–210. https://doi.org/10.1016/j.ins.2022.11.139
Irawan, R. P., & Sinaga, S. B. (2024). Kombinasi algoritma K-means dan DBSCAN dalam identifikasi anomali pada data log server. MEANS: Media Informasi Analisa dan Sistem, 9(2), 101–105.
Lasantha, N. W. C., Abeysekara, R., & Maduranga, M. W. P. (2024). A novel framework for real-time IP reputation validation using artificial intelligence. International Journal of Wireless and Microwave Technologies, 14(2), 1–16. https://doi.org/10.5815/ijwmt.2024.02.01
Laskar, M. T. R., Huang, J. X., Smetana, V., Stewart, C., Pouw, K., An, A., Chan, S., & Liu, L. (2021). Extending isolation forest for anomaly detection in big data via K-means. ACM Transactions on Cyber-Physical Systems, 5(4), Article 41. https://doi.org/10.1145/3460976
Lesouple, J., Baudoin, C., Spigai, M., & Tourneret, J.-Y. (2021). Generalized isolation forest for anomaly detection. Pattern Recognition Letters, 149, 109–119. https://doi.org/10.1016/j.patrec.2021.05.022
Liu, T., Yu, H., & Blair, R. H. (2022). Stability estimation for unsupervised clustering: A review. WIREs Computational Statistics, 14(6), e1575. https://doi.org/10.1002/wics.1575
Liu, X., & Hu, X. (2024). Research on techniques for detecting brute-force attacks on corporate email. Journal of Computational Methods in Sciences and Engineering, 24(3), 1379–1393. https://doi.org/10.3233/JCM-247147
Lubis, H. T., Roslina, R., & Tanti, L. (2025). Anomaly detection in computer networks using isolation forest in data mining. Jurnal Teknik Informatika, 18(1), 77-86. https://doi.org/10.15408/jti.v18i1.44285
Ma, M. Q., Zhao, Y., Zhang, X., & Akoglu, L. (2023). The need for unsupervised outlier model selection: A review and evaluation of internal evaluation strategies. ACM SIGKDD Explorations Newsletter, 25(1), 19–35. https://doi.org/10.1145/3606274.3606277
Mishra, A., Konduru, S. S., Mishra, S., & Panday, S. (2026). Detection of password reuse and credential stuffing: A server-side approach. Scientific Reports. Advance online publication. https://doi.org/10.1038/s41598-026-71089-x
Mohammed, U. bn N. (2026). Adaptive brute force attack detection based on behavioral profiling and machine learning. Journal of Al-Turath University College, 43(1). https://doi.org/10.63964/JATUC.43.1.2026.26
Pang, G., Shen, C., Cao, L., & van den Hengel, A. (2021). Deep learning for anomaly detection: A review. ACM Computing Surveys, 54(2), 1–38. https://doi.org/10.1145/3439950
Park, J., Kim, J., Gupta, B. B., & Park, N. (2021). Network log-based SSH brute-force attack detection model. Computers, Materials & Continua, 68(1), 887–901. https://doi.org/10.32604/cmc.2021.015172
Santoso, D. B., & Wahyuni, Y. (2024). Deteksi anomali pada log sistem web server menggunakan isolation forest. Jurnal Aplikasi Bisnis dan Komputer, 4(3), 90–96. https://doi.org/10.33751/jubikom.v4i3.10941
Shamsi, Z., Zhang, D., Kyoung, D., & Liu, A. (2022). Measuring and clustering network attackers using medium-interaction honeypots. In 2022 IEEE European Symposium on Security and Privacy Workshops (EuroS&PW) (pp. 294–306). IEEE. https://arxiv.org/abs/2206.13614
Sharma, N., Swarnkar, M., & Zuhair, M. (2024). BruSSH: Early detection of distributed brute force SSH attacks using LSTM. In 2024 IEEE 18th International Conference on Advanced Networks and Telecommunications Systems (ANTS) (pp. 1–6). IEEE. https://doi.org/10.1109/ANTS63515.2024.10898570
Temoshok, D., Fenton, J., Choong, Y.-Y., Lefkovitz, N., Regenscheid, A., Galluzzo, R., & Richer, J. (2025). Digital identity guidelines: Authentication and authenticator management (NIST Special Publication 800-63B-4). National Institute of Standards and Technology. https://doi.org/10.6028/NIST.SP.800-63B-4
Verizon. (2025). 2025 Data Breach Investigations Report. Verizon Business. https://www.verizon.com/business/resources/reports/dbir/
Woods, N., & Siponen, M. (2025). Questioning a security assumption: Are unique passwords harder to remember than reused or modified passwords? Computers & Security, 157, 104545. https://doi.org/10.1016/j.cose.2025.104545
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Antonius Djajakusuma, Richardus Eko Indrajit, Erick Dazki

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
All articles in this journal are the sole responsibility of the authors. Edumatic: Jurnal Pendidikan Informatika can be accessed free of charge, in accordance with the Creative Commons license used.

This work is licensed under a Lisensi a Creative Commons Attribution-ShareAlike 4.0 International License.


