Keywords: Intrusion Detection System (IDS), Long Short-Memory (LSTM), K-Means Clustering, Network Security, Real-time Traffic Analysis, Machine Learning, C++ Capture Core.
Abstract
In modern network infrastructures that are beginning to evolve to high-speed smart environments, the traditional signature-based Intrusion Detection Systems (IDS) exhibit a striking vulnerability to detect zero-day exploits and variations in time. In order to overcome this weakness, it introduces a very high-performance hybrid NIDS named GuardNet which separates the process of raw packet-reading and deep-learning analysis. The system consists of a C++ Data Acquisition Plane which makes use of the Npcap library to perform line-rate sniffing, avoiding operating-system stack overhead and allowing real-time provision of packet length, service ports and similar features. The transmission of these features is done through a secure RESTful bridge to a Python based Intelligence Plane which uses a multi-tier AI engine.To filter benign traffic, GuardNet uses an unsupervised K -Means clustering module as a statistical gating unit, and a Stacked Long Shortterm Memory (LSTM) network is used to analyze the complex temporal patterns of attacks. Live Wi-Fi traffic empirical assessment based on 97.66% classification accuracy and 100.00% precision are fully able to remove false positives. In addition, the system comes with an autonomous mitigation layer, called Sentinel that imposes real time IP blocking in high confidence predictions. GuardNet is a flexible, transparent structure that balances the trade-off between computational complexity and real time responsiveness in the context of the current cybersecurity defense.