Enhancing Cybersecurity Through AI: A Machine Learning-Based Framework for Real-Time Threat Detection and Mitigation

Authors

  • Abdullah Faiz Department of Information & Communication Engineering, North University of china Author
  • Amjad Jumani Lecturer at Faculty of Science and Technology Ilma university Karachi Author
  • Abdul Hafiz BS (IT) Department of Computer Science, University of Balochistan Author
  • Sundas Shujah Munster Technological University, Cork, Ireland Author
  • Mir Rahib Hussain Talpur Department of Information Technology Centre, Sindh Agriculture University Tandojam Author
  • Ali Majid Ph.D. Scholar, Lincoln University College Malaysia Author

DOI:

https://doi.org/10.63075/09mc9q79

Abstract

With the continually increasing evolution of cyber threats in both their complexity and occurrence, the signature based intrusion detection systems have been found inadequate in providing proactive and responsive network protection. The paper proposes a machine learning framework, which maximizes cybersecurity by performing real-time threat detection and mitigation in a layer-based approach by utilizing both unsupervised and supervised models. This framework uses the K-Means clustering method to find anomalies and then uses the Random Forest and Deep Neural Network (DNN) classifier to precisely detect and label the threat. When tested on the CICIDS2017 dataset, the system showed high detection accuracy (up to 98.4%), minimal false positives, and effective differentiation of different types of attacks such as DDoS, Botnet, Brute Force, and Port Scans. The hybrid architecture supports both the detection of known threat and the discovery of previously unseen attacks without labeling. Also, this framework includes a rule-based mitigation engine to automate the response to threats to provide real-time protection with low latency. The work is a part of the emerging area of smart cyber defense tools and proves the feasibility of AI implementation in dynamic and high-rate networks. These findings promote the continuation of explainable AI and reinforcement learning advances in the creation of adaptive cybersecurity systems.

Keywords:  Cybersecurity, Machine Learning, Threat Detection, Deep Learning, Intrusion Detection System, Real-Time Mitigation, Anomaly Detection, Random Forest, Neural Networks, K-Means Clustering

 

Downloads

Download data is not yet available.

Downloads

Published

2025-06-15

How to Cite

Enhancing Cybersecurity Through AI: A Machine Learning-Based Framework for Real-Time Threat Detection and Mitigation. (2025). Annual Methodological Archive Research Review, 3(6), 48-71. https://doi.org/10.63075/09mc9q79