A hybrid Intrusion Detection System (IDS).
PySentry listens to the invisible data flowing through your computer's network card, parses network flows, looks for known bad behavior (signatures), and uses machine learning (IsolationForest) to spot weird, unknown anomalous behavior in real time.
- Real-Time Packet Sniffing: Powered by
scapy. - Signature Detection: Checks against strict hardcoded rules to catch known attacks (SYN Floods & Port Scans).
- AI Anomaly Detection: Uses
scikit-learnto establish baseline network metrics and automatically alert on sudden spikes. - Operations Dashboard: A Streamlit interface for live interactive monitoring.
- Instant Report Generation: One-click generation of formatted threat reports that copy directly to your clipboard or download as PNGs.
Install the necessary packages via the updated requirements file:
pip install -r requirements.txtRun the primary detection engine. (Note: Packet sniffing usually requires Administrator/root privileges!)
python main.pyIn a secondary terminal, spin up the Hacker Dashboard:
streamlit run dashboard.py