Intrusion Detection and Prevention using Snort and Python for Detecting DDOS attack and DNS Flood

Authors

  • M. Haritha B. Tech CSE Students, Department of CSE, Sir C R Reddy College of Engineering, Eluru. Author
  • M. Nithin Venkat Sai B. Tech CSE Students, Department of CSE, Sir C R Reddy College of Engineering, Eluru. Author
  • M. Sree Rishik B. Tech CSE Students, Dept. of CSE, Sir C R Reddy College of Engineering, Eluru. Author
  • M. Venkata Sriram B. Tech CSE Students, Dept. of CSE, Sir C R Reddy College of Engineering, Eluru. Author
  • M. S. Siva Srinivas B. Tech CSE Students, Dept. of CSE, Sir C R Reddy College of Engineering, Eluru. Author
  • S. V. V. S. Kumar Department of CSE, Sir C R Reddy College of Engineering, Eluru. Author

Keywords:

Intrusion Detection and Prevention System,, DNS Flood Attack, Distributed Denial of Service (DDoS), Snort IDS, Python-based Network Security

Abstract

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

2026-06-20

Issue

Section

Articles