Skip to content

fragan7dsouza/Intrusion-Detection-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🛡️ Intrusion Detection System (IDS)

A lightweight Python-based Intrusion Detection System that monitors real-time TCP traffic to detect potential port scanning attacks. Built using Scapy for packet sniffing and Tkinter for an interactive GUI.


⚙️ Features

  • ✅ Real-time packet sniffing using Scapy
  • ✅ Detection of suspicious IPs scanning multiple TCP ports
  • ✅ GUI built with Tkinter
  • ✅ Start/Stop monitoring controls
  • ✅ Live alert feed
  • ✅ View logs from previous sessions
  • ✅ Light/Dark mode toggle

🖥️ GUI Preview

IDS GUI Screenshot


📁 Project Structure

Intrusion-Detection-System/
│
├── gui.py               # main user interface
├── ids_engine.py        # packet sniffing and detection logic
├── simulate_tcp.py      # test script to simulate a port scan
├── suspicious_log.txt   # log file for suspicious activity
├── README.md            # project documentation

🚀 Getting Started

🔧 Prerequisites

  • Python 3.x installed
  • Install dependencies using pip:
pip install scapy

🖱️ How to Run

  1. Launch the GUI:
python gui.py
  1. Start Monitoring from the GUI.

  2. In another terminal, simulate a TCP port scan:

python simulate_tcp.py
  1. Detected intrusions will appear in the GUI and log file.

🧪 simulate_tcp.py

This file simulates a port scan by attempting rapid TCP connections across a range of ports on your local machine.

Make sure the target_ip matches your system's local IP (ipconfig on Windows to check).


📄 Log File

Suspicious activity is saved in suspicious_log.txt with timestamps for future reference.


📌 Notes

  • Designed for educational and testing purposes only.
  • Windows users may need to run the terminal/VS Code as Administrator to allow packet sniffing.

👨‍💻 Author

Fragan Dsouza
📎 LinkedIn
💻 GitHub


📜 License

This project is open-source and free to use under the MIT License.

About

A simple Python-based Intrusion Detection System (IDS) using Scapy and Tkinter to detect TCP port scans in real time. Includes a GUI for live alerts, log viewing, and light/dark mode support.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages