π‘οΈ Intrusion-Alert-Educational-Network-IDS
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.
π Features
- π‘ Real-time packet sniffing using Scapy
- π Tracks number of requests per IP address
- π¨ Detects potential DoS/DDoS attacks
- πͺ GUI alert system using Tkinter
- β‘ Multi-threaded for better performance
π§ How It Works
- The script listens to all incoming IP packets.
- Each packet source IP is tracked.
- Requests are counted per second.
- If a specific IP exceeds the threshold (default: 100 requests/sec), an alert is triggered.
βοΈ Requirements
Make sure you have Python 3 installed, then install dependencies:
pip install scapy
β οΈ Note: You may need administrative/root privileges to sniff network traffic.
βΆοΈ Usage
Run the script:
sudo python plugin.py
(Use sudo on Linux/macOS for packet sniffing permissions)
π§ Configuration
You can adjust detection sensitivity by modifying:
THRESHOLD = 100 # Requests per second
π¨ Alert System
- Displays a popup window when suspicious activity is detected
- Prints alert message in the terminal
Example:
Possible DDoS/DoS attack detected!
Source IP: 192.168.1.5
β οΈ Limitations
- May produce false positives (e.g. high traffic like downloads or streaming)
- Detects only based on packet rate (not protocol-specific attacks)
- GUI alerts may cause performance issues if triggered frequently
- Requires root/admin privileges
π‘ Future Improvements
- Detect specific attack types (SYN Flood, UDP Flood)
- Add logging system instead of GUI alerts
- Integrate with firewall to block malicious IPs
- Web dashboard for monitoring
- Port-based filtering
π Project Structure
.
βββ plugin.py
βββ README.md
π¨βπ» Author
Belal Eladawy
Network Engineer & Security Researcher
π License
This project is open-source and available under the MIT License.
β Support
If you find this project useful, consider giving it a star β on GitHub!