Sentinel NIDS
A network intrusion detection system that combines behaviour rules with machine learning.
What it does
Sentinel processes PCAP and PCAPNG network captures, flags port scans, suspected brute-force attempts and unusual traffic, and shows each alert with the evidence behind it.
It is a detector, not a blocker: it explains what it saw, from which source to which destination and why, so an analyst can investigate.
How it works
- CaptureTraffic comes from a stored capture or, optionally, live from a local interface with Scapy.
- WindowPackets are grouped by source and destination into 10-second windows with counts of flows, ports and packets.
- DetectBehaviour rules catch scans and repeated access attempts, and an Isolation Forest flags windows that look abnormal.
- ExplainAlerts are stored in SQLite and shown on a FastAPI dashboard with the features that triggered them.
What I did
- Built for the CS-353 Information Security course at NUST SEECS.
- On a 130-window test set the hybrid detector caught all 60 attack or anomalous windows, with 12 false alarms out of 70 benign windows.
Built with
- Python
- Scapy
- scikit-learn (Isolation Forest)
- FastAPI
- SQLite