Project Abstract
The modern digital transformation is making cybersecurity threats more advanced, and it is necessary to design smart systems that can recognize the presence of intrusion into the network in real-time to protect the integrity of the network and the confidentiality of information. This project proposes the design and development of a Network-Based Intrusion Detection System (NIDS) which combines machine learning and deep packet inspection methods to track network traffic, detect anomalies and notify representatives of any suspicious operations. The backend of the system was built in Flask (Python) and includes a pre-trained machine learning model (intrusion_model.pkl) that is used to categorize network activities in terms of features derived out of packet captures (PCAP files). PyShark (used to interpret packets), scikit-learn (used to scale and encode features), and joblib (used to load models with high efficiency) are some of the main supporting tools. The frontend is implemented using HTML and Bootstrap, and it is user-friendly due to the possibility to upload packet files, extract features automatically, and display real-time intrusion detection output. The features also include a log management system where the users are allowed to add incident logs and the administrators can view, update, or delete them. SQLite databases (database.db, logs.db) hold predictions and logs history that will be utilized during future analysis and audits. Moreover, the system can be used to monitor PCAP files in real-time and to perform batch analysis, which is useful in both live network protection and forensic investigations after the incident.
Main Objective
To design, develop and test an effective and efficient network intrusion detection system (NIDS) based on machine learning to improve network security surveillance.