How abdurrahmantolay/ebpf-iot-ddos-thesis works
The repository implements an XDP-based UDP flood detector with a user-space controller that reads kernel trace alerts, suppresses repeats, blocks reported IPs, logs alerts, and notifies Telegram. The README also describes Docker and Raspberry Pi evaluation and CPU/mitigation analysis, but the available tree and excerpts do not expose their implementation. The README names a different kernel source filename; this graph uses the existing ebpf/udp_filter.c.
Main entry points: controller.py Trace Monitor · udp_filter.c UDP Flood Detector
Components 12
Kernel Detection
- UDP Flood Detector
ebpf/udp_filter.c - Per-IP Packet Counts
ebpf/udp_filter.c - Kernel Trace Pipe
User Controller
- Trace Monitor
controller/controller.py - Alert Cooldown
controller/controller.py
Mitigation and Alerts
- IP Blocking
controller/controller.py - iptables
- Alert Logging
controller/controller.py - Local Alert Log
- Telegram Notifications
controller/controller.py - Telegram Bot API
Other components
- Incoming Traffic
Connections 11
- Incoming Traffic → UDP Flood Detector: enters
README.md - UDP Flood Detector → Per-IP Packet Counts: updates
ebpf/udp_filter.c - UDP Flood Detector → Kernel Trace Pipe: emits alert
ebpf/udp_filter.c - Kernel Trace Pipe → Trace Monitor: reads
controller/controller.py - Trace Monitor → Alert Cooldown: checks
controller/controller.py - Trace Monitor → IP Blocking: calls
controller/controller.py - Trace Monitor → Alert Logging: calls
controller/controller.py - Trace Monitor → Telegram Notifications: calls
controller/controller.py - IP Blocking → iptables: runs command
controller/controller.py - Alert Logging → Local Alert Log: appends
controller/controller.py - Telegram Notifications → Telegram Bot API: posts alert
controller/controller.py