
Lightweight Python-based IDS that monitors network traffic in real-time using Scapy, detecting DoS/DDoS attacks via per-IP request rate analysis with a GUI alert system.
A lightweight Intrusion Detection System (IDS) built with Python to monitor network traffic and detect potential DoS/DDoS attacks based on request rate per IP.
Make sure you have Python 3 installed, then install dependencies:
pip install scapy
⚠️ Note: You may need administrative/root privileges to sniff network traffic.
Run the script:
sudo python plugin.py
(Use sudo on Linux/macOS for packet sniffing permissions)
You can adjust detection sensitivity by modifying:
THRESHOLD = 100 # Requests per second
Example:
Possible DDoS/DoS attack detected!
Source IP: 192.168.1.5
.
├── plugin.py
└── README.md
Belal Eladawy Network Engineer & Security Researcher
This project is open-source and available under the MIT License.
If you find this project useful, consider giving it a star ⭐ on GitHub!