Design and Build a Machine Learning-Based Brute-Force Login Early Detection System with Adaptive Risk Scoring and Automated Actions
Downloads
Brute-force login attacks pose a significant cybersecurity threat to information systems, potentially leading to unauthorized access and data loss. This research designs and builds an early detection system for brute-force login attacks by integrating a machine learning-based classification model, an adaptive risk scoring mechanism, and automated response actions. The Random Forest model was trained using login attempt log data collected from a controlled test website over two months with 100 dummy accounts, resulting in 30,000 entries comprising 17,000 normal, 5,000 suspicious, and 8,000 attack data samples. The adaptive risk scoring mechanism combines the ML model output with four contextual indicators frequency of failed attempts, access time, IP location, and user agent to generate a dynamic risk score, enabling the system to make decisions based on multiple indicators rather than a single factor. Evaluation results demonstrate 96.5% accuracy, 95.8% precision, and 97.2% recall in three-class classification. Ablation studies confirm that the integration of adaptive risk scoring improves accuracy from 91.2% (RF only) to 96.5% (RF with all indicators). The system successfully blocked 8 IP addresses identified as attacking sources, achieving a false positive rate of 0.7% and an average response time of 42 milliseconds. This study concludes that the combination of Random Forest, adaptive risk scoring, and automated actions provides an effective and comprehensive approach for the early detection of brute-force login attacks.
Abdullah, R., & Fachri, F. (2025). Mitigate the security of academic information system webservers against brute force attacks using penetration testing. Remik, 9(3), 885–896.
Aljabri, M., Shaahid, A., Alnasser, F., Saleh, A., Alomari, D., Aboulnour, M., Al-Eidarous, W., & Althubaity, A. (2024). IoT attacks detection using supervised machine learning techniques. HighTech and Innovation Journal, 5(3), 534–550.
Ali Hamza, A., & Jumma Surayh Al-Janabi, R. (2024). Detecting brute force attacks using machine learning. BIO Web of Conferences, 97, 00045.
Arifman, F., Mantoro, T., & Handayani, D. O. D. (2026). A hybrid machine learning approach for classifying Indonesian cybercrime discourse using a localized threat taxonomy. Information, 17(3), 301.
Chandra, N. A., Ramli, K., Ratna, A. A. P., & Gunawan, T. S. (2022). Information security risk assessment using situational awareness frameworks and application tools. Risks, 10(8), 165.
Dini, P., Elhanashi, A., Begni, A., Saponara, S., Zheng, Q., & Gasmi, K. (2023). Overview on intrusion detection systems design exploiting machine learning for networking cybersecurity. Applied Sciences, 13(13), 7507.
Fachri, F. (2023). Optimize web server security against brute-force attacks using penetration testing. Journal of Information Technology and Computer Science, 10(1), 51–58.
Fauziyyah, G., Maulana, I., Komarudin, K., & Selamet, R. (2025). Risk security cyber in system AI-based: Study evaluative on Indonesian government digital infrastructure. Journal of Artificial Intelligence Research, 1(2), 80–89.
Jiang, Y., Jiang, Y., & Wang, P. (2026). A review on mitigating thermal runaway propagation in battery packs: From mechanisms to modeling and design optimization. Energy Advances, 5(6), 777–809.
Karthiga, B., Durairaj, D., Nawaz, N., Venkatasamy, T. K., Ramasamy, G., & Hariharasudan, A. (2022). Intelligent intrusion detection system for VANET using machine learning and deep learning approaches. Wireless Communications and Mobile Computing, 2022, Article 1.
Khanam, S., Ahmedy, I. B., Idna Idris, M. Y., Jaward, M. H., & Bin Md Sabri, A. Q. (2020). A survey of security challenges, attacks taxonomy and advanced countermeasures in the Internet of Things. IEEE Access, 8, 219709–219743.
Qian, J., Gan, Z., Zhang, J., & Bhunia, S. (2022). Analyzing Socialarks data leak—A brute force web login attack. In 2022 4th International Conference on Computer Communication and the Internet (ICCCI) (pp. 21–27).
Rabbani, M., Wang, Y., Khoshkangini, R., Jelodar, H., Zhao, R., Bagheri Baba Ahmadi, S., & Ayobi, S. (2021). A review on machine learning approaches for network malicious behavior detection in emerging technologies. Entropy, 23(5), 529.
Safitra, M. F., Lubis, M., & Fakhrurroja, H. (2023). Counterattacking cyber threats: A framework for the future of cybersecurity. Sustainability, 15(18), 13369.
Sangeeta, S., & Roderick, M. (2025). Integrating emotion-specific factors into the dynamics of biosocial and ecological systems: Mathematical modeling approaches accounting for psychological effects. Mathematical and Computational Applications, 30(6), 136.
Saputra, F. H., Ilham, I., Rizal, M., Wisda, W., Wanita, F., Mursalim, M., & Fadillah, A. (2025). Enhancing intrusion detection using random forest and SMOTE on the NSL-KDD dataset. Journal of Systems and Computer Engineering (JSCE), 6(3), 240–247.
Sarker, I. H., Kayes, A. S. M., Badsha, S., Alqahtani, H., Watters, P., & Ng, A. (2020). Cybersecurity data science: An overview from machine learning perspective. Journal of Big Data, 7(1).
Sekar, A. K., Ramakrishnan, R., Ganesh, A., & Kiruthiga, T. (2023). Emerging cyber security and brute force attacks in hospital management information systems. In 2023 Second International Conference on Smart Technologies for Smart Nation (SmartTechCon) (pp. 421–426).
Tyas, W. S., Rafrastara, F. A., & Ghozi, W. (2026). Optimizing URL-based phishing detection using XGBoost and Relief feature selection. Synchronous, 10(1), 430–438.
Vugdelija, N., Nedeljković, N., Kojić, N., Lukić, L., & Vesić, M. (2021). Review of brute-force attack and protection techniques. In 13th International Conference, ICT Innovations 2021 (pp. 220–230).
Copyright (c) 2026 Tubagus Setyo Mulyatama, Galura Muhammad Suranegara

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



