Intrusion Detection and Prevention using Snort and Python for Detecting DDOS attack and DNS Flood
Keywords:
Intrusion Detection and Prevention System,, DNS Flood Attack, Distributed Denial of Service (DDoS), Snort IDS, Python-based Network SecurityAbstract
With the rapid expansion of Internet-based applications and services, network infrastructures have become increasingly vulnerable to Distributed Denial of Service (DDoS) attacks, particularly DNS flood attacks, which exploit the DNS protocol to exhaust server and network resources. Traditional intrusion detection mechanisms often rely on static signatures or centralized architectures, making them less effective against evolving and high-rate attack patterns. This project proposes an Intrusion Detection and Prevention System (IDPS) using Python and Snort for efficient detection and mitigation of DNS flood and DDoS attacks. The proposed system combines Snort-based intrusion detection with Python-based traffic analysis and automation to provide both real-time detection and active prevention. Snort continuously monitors incoming and outgoing network traffic using customized rules to identify suspicious behavior related to excessive DNS requests and abnormal packet rates. Python scripts further analyze Snort alerts and traffic statistics to correlate attack patterns, reduce false positives, and dynamically respond to detected threats. Once an attack is confirmed, the system automatically triggers prevention mechanisms such as blocking malicious IP addresses, rate limiting traffic, and updating firewall rules, thereby minimizing service disruption. Unlike SDN-dependent solutions, the proposed IDPS operates at the host or server level, improving scalability, ease of deployment, and real-world applicability. The system is designed to handle both volumetric DDoS attacks and protocol-based DNS flooding without requiring complex network reconfiguration. Experimental evaluation demonstrates that the proposed approach effectively detects attacks with minimal performance overhead while maintaining normal network operations for legitimate users. Overall, this project provides a practical, lightweight, and reliable security solution for enhancing network resilience against modern DDoS and DNS-based attacks.
Downloads
Published
Issue
Section
License
Copyright of articles published in the International Journal for Interdisciplinary Sciences and Engineering Applications (IJISEA) belongs to the Journal upon acceptance and publication, in accordance with the applicable author copyright agreement.
Authors may reuse their published work for educational and non-commercial purposes, provided that the original publication in IJISEA is properly acknowledged and the applicable permissions are obtained.
Any commercial reproduction, redistribution, republication, or other reuse beyond the permitted rights requires prior written permission from the Editorial Office.
The journal provides open access to its published articles for reading and scholarly reference. Access to published content does not automatically grant unrestricted reproduction or redistribution rights.
All rights not expressly granted remain reserved by the Journal.