Network Intrusion Detection System

Advanced AI-powered network security monitoring with real-time threat detection using machine learning

SYSTEM SECURE

Key Features

Live Packet Capturing

Real-time monitoring of network traffic with advanced packet analysis and filtering capabilities.

AI Threat Detection

Machine learning-powered threat prediction using Random Forest algorithm for accurate anomaly detection.

High Performance

Optimized processing pipeline ensures minimal false positives and real-time response capabilities.

Analytics Dashboard

Comprehensive visualization of network traffic patterns and threat analysis with interactive charts.

Security Focused

Built with security in mind, providing detailed threat analysis and recommended security measures.

Easy Integration

Simple setup process with comprehensive documentation for seamless integration into existing systems.

About the Project

Project Overview

This Network Intrusion Detection System is designed for live monitoring of personal networks. It captures network packets from the user's PC and analyzes them to predict potential threats using a trained machine learning model. The system provides real-time threat detection with detailed analysis and recommendations.

System Architecture

The system follows a three-tier architecture with clear separation of concerns:

Frontend (HTML/CSS/JS)

User interface for real-time monitoring and visualization

Backend (Node.js)

REST API server handling requests and Python script execution

ML Engine (Python)

Packet capture, feature extraction, and threat prediction

Backend-Frontend Connection

The system uses a RESTful API architecture for seamless communication:

  • API Endpoint: GET /run-python - Triggers network analysis
  • Data Format: JSON responses with packet data and predictions
  • Real-time Updates: Frontend polls backend for live data
  • Error Handling: Comprehensive error management and user feedback
  • CORS Support: Cross-origin requests enabled for development

Technologies Used

Python
Scikit-Learn
Scapy/PyShark
Node.js
HTML5
CSS3
JavaScript

Model Training

The Random Forest model is trained using labeled network traffic data to classify network packets as benign, malicious, or outlier. The model provides detailed feature importance analysis and threat explanations, enabling accurate detection of various attack patterns and anomalies.

Machine Learning Pipeline

Data Collection

Capture network packets

Preprocessing

Extract features

ML Model

Random Forest

Prediction

Threat analysis

Installation Guide

1

Clone Repository

git clone https://github.com/Jvd-06/Network_Intrution_detection.git
Contact developers for product access and queries
2

Download Trained Model

Download the pre-trained model from Google Drive and place it in the models folder:

https://drive.google.com/file/d/1-1p9dGLb2w-RIQ1iuAgGoj0MtJdZX7ht/view?usp=sharing
3

Create Virtual Environment

python -m venv venv

Activate Virtual Environment

venv\Scripts\activate
4

Install Dependencies

pip install -r requirements.txt
5

Start Backend Server

cd back-end && node server.js
6

Start Packet Capture

cd scripts && python runner.py

Launch Frontend

Open front-end/index.html in your browser and click "Analyze Network"

Live Demo

0

Packets Captured

0

Threats Detected

100%

Security Score

Source IP Destination IP Source Port Destination Port Bytes In Bytes Out Duration Threat Level
Click "Start Demo" to begin network analysis simulation

Meet the Developers

Javid Jahir Hussain

Security Analyst

Cybersecurity Network Analysis Python Machine Learning Threat Detection

Chandrakumar S

Full Stack Developer

JavaScript Node.js Angular Python HTML, CSS