A full-stack, real-time Intrusion Detection and Prevention System (IDS/IPS) that leverages AI/ML to monitor live network traffic, detect cyber attacks, and automatically block malicious IPs using Docker-controlled firewall rules.
SentinelAI-Real-Time-IDS-IPS is designed to demonstrate how modern Security Operations Centers (SOC) detect, analyze, and respond to cyber threats in real time.
The system captures live network packets, applies machine learning for threat classification, visualizes attacks on an interactive dashboard, and enforces automatic prevention by dynamically updating firewall rules inside an isolated Docker environment.
- Real-time network traffic monitoring
- AI/ML-based intrusion detection
- Automatic intrusion prevention (IPS)
- Docker-based firewall isolation
- Live SOC-style security dashboard
- Threat severity classification
- Manual & automated response actions
- Scalable microservice architecture
Network Traffic
↓
Packet Sniffing (Scapy)
↓
Feature Extraction
↓
ML Classifier (XGBoost)
↓
Threat Decision Engine
↓
┌──────────────────┐
│ Live Dashboard │ ← WebSockets (Real-Time)
└──────────────────┘
↓
Docker Firewall (iptables)
↓
Automatic IP Blocking
- React.js
- Tailwind CSS
- WebSockets
- FastAPI (Python)
- Scapy (Packet Sniffing)
- asyncio
- XGBoost
- SMOTE (Class Balancing)
- SHAP (Model Explainability)
- Docker
- iptables
- docker-compose
git clone https://github.com/your-username/SentinelAI-Real-Time-IDS-IPS.git
cd SentinelAI-Real-Time-IDS-IPScd backend
pip install -r requirements.txt
python main.pycd frontend
npm install
npm run devdocker-compose up- Network packets are captured in real time
- Features are extracted from packet metadata
- ML model classifies traffic as benign or malicious
- Dashboard updates instantly via WebSockets
- Malicious IPs are automatically blocked using iptables
- Security team can take manual actions when required
- SOC / Blue Team simulation
- Academic cybersecurity projects
- IDS/IPS architecture demonstrations
- Docker-based security isolation
- AI-driven network defense research
- Deep learning–based detection
- Threat intelligence feed integration
- Cloud deployment support
- Role-based access control
- Automated incident reporting
Made By Diya Kharb
This project is licensed under the MIT License.




