π΅οΈββοΈ Network Packet Sniffer Traffic Analyzer
Captures & Analyses live network traffic in real time to detect suspicious activities using rule-based, MITRE-mapped, and machine-learning techniques.
πΈ Screenshots
.png)
.png)
.png)
π‘οΈ Enterprise Network Sniffer IDS (Intrusion Detection System)
Developed by: Β© 2026 Syed Shaheer Hussain
π Project Introduction
The Enterprise Network Sniffer IDS is a Pythonβbased enterpriseβgrade network traffic monitoring and intrusion detection system. It captures live network packets, analyzes them in real time, detects suspicious or malicious behavior (such as port scanning, flooding, abnormal traffic patterns), and generates forensicβready PDF reports.
[!caution] This project is designed for learning, research, academic (FYP), and defensive security simulation purposes.
π― Mission & Vision
π― Mission
To provide a practical, understandable, and extensible IDS solution that helps students and security enthusiasts understand how realβworld network monitoring and intrusion detection systems work.
π Vision
To evolve this system into a full enterprise SOCβready IDS/IPS platform with dashboards, MLβbased detection, and SIEM integration.
β What is a Network?
A network is a collection of devices (computers, servers, routers, switches, IoT devices) connected together to share data and resources.
Examples:
- π Internet
- π’ Office LAN
- βοΈ Cloud infrastructure
π What is Network Sniffing?
Network sniffing is the process of:
- Capturing network packets
- Inspecting headers & payloads
- Analyzing traffic behavior
Why Sniffing is Important?
- Detect attacks
- Troubleshoot networks
- Monitor bandwidth
- Forensic investigation
[!important] β οΈ Sniffing without permission is illegal.
π‘οΈ What is an IDS?
An Intrusion Detection System (IDS) monitors network traffic and:
- Detects malicious patterns
- Generates alerts
- Logs incidents
- Produces reports
IDS Types
- NIDS β Networkβbased IDS β (This project)
- HIDS β Hostβbased IDS
π‘ Why This Project Was Made?
βοΈ To learn realβworld cybersecurity βοΈ To simulate enterprise IDS behavior βοΈ To understand packetβlevel attacks βοΈ To build a portfolioβgrade security project βοΈ To prepare for SOC / Blue Team roles
ποΈ Project Architecture
[ Network Interface ]
β
[ Packet Capture Engine ] (Scapy / PyShark)
β
[ Detection Engine ]
β
[ Event Logger ]
β
[ GUI Dashboard ]
β
[ PDF Report Generator ]
π Folder Structure
βββ network-sniffer/
βββ IDS_Report.pdf
βββ main.py
βββ requirements.txt
βββ utils/
β βββ logger.py
β βββ permissions.py
β βββ theme.py
β βββ __pycache__/
β βββ logger.cpython-314.pyc
β βββ theme.cpython-314.pyc
βββ screenshots/
β βββ Screenshot (57).png
β βββ Screenshot (58).png
β βββ Screenshot (59).png
βββ gui/
β βββ app.py
β βββ charts.py
β βββ __pycache__/
β βββ app.cpython-314.pyc
β βββ charts.cpython-314.pyc
βββ core/
βββ ids_engine.py
βββ mitre.py
βββ ml_detector.py
βββ pcap_manager.py
βββ pyshark_sniffer.py
βββ report.py
βββ scapy_sniffer.py
βββ __pycache__/
βββ ids_engine.cpython-314.pyc
βββ mitre.cpython-314.pyc
βββ ml_detector.cpython-314.pyc
βββ pcap_manager.cpython-314.pyc
βββ pyshark_sniffer.cpython-314.pyc
βββ report.cpython-314.pyc
βββ scapy_sniffer.cpython-314.pyc
π§ Core Concepts Used
- Packet sniffing
- TCP/IP analysis
- Port scan detection
- Behavioral analysis
- Log correlation
- Defensive cybersecurity
βοΈ Technologies Used
π§βπ» Programming Languages
- Python 3.10+
π¦ Libraries & Tools
- Scapy
- PyShark (Wireshark TShark)
- FPDF (PDF reports)
- PyQt5 / Tkinter (GUI)
- Logging module
π₯οΈ OS Support
- Windows β
- Linux β
πΌοΈ GUI Features
βοΈ Start / Stop Sniffing βοΈ Live event log window βοΈ IDS alerts display βοΈ Generate PDF report βοΈ Clean enterprise layout
β‘ Features
- Realβtime packet capture
- Port scan detection (T1046)
- Event logging
- GUIβbased control
- Auto PDF reporting
- Old reports preserved
- Unicodeβsafe PDF generation
π§ Functions Overview
start_sniffing()β Begin packet capturestop_sniffing()β Stop captureanalyze_packet()β Detect suspicious behaviorlog_event()β Save IDS alertsgenerate_pdf()β Create forensic report
π PDF Reporting System
βοΈ Each report saved with timestamp βοΈ No old report replaced βοΈ Long lines auto wrapped βοΈ Hex & raw data safe
Example Output:
IDS_Report_20260202_154001.pdf
π Installation Guide (StepβbyβStep)
1οΈβ£ Install Python
Download from: π https://www.python.org
βοΈ Tick Add Python to PATH
2οΈβ£ Install Wireshark (Required)
Download: π https://www.wireshark.org
βοΈ Ensure TShark is installed βοΈ Default path:
C:\Program Files\Wireshark\tshark.exe
Or Open Command Prompt
where tshark
- This cmd tells you the location/path of tshark
- Make sure the wireshark folder assigned in Envoirnment Variable Path
3οΈβ£ Install Project Dependencies
Open CMD in project folder:
pip install -r requirements.txt
βΆοΈ How to Run the Project
Step 1
cd network-sniffer
Step 2
python main.py
π₯οΈ How to Use (GUI)
1οΈβ£ Click Start Sniffing
2οΈβ£ Generate traffic (browser, ping, scan)
3οΈβ£ Watch alerts in GUI
4οΈβ£ Click Generate Report
5οΈβ£ PDF saved in IDS_Reports/
π Chrome / Browser Usage
βοΈ Open Chrome βοΈ Browse any website βοΈ IDS captures packets automatically
β No username/password required β Runs locally on your machine
π Flow Chart
Start
β
Select Interface
β
Capture Packets
β
Analyze Traffic
β
Threat Detected?
β β
Yes No
β β
Log Event
β
Generate Report
β
End
β οΈ Cautions
[!caution]
- β Do NOT use on public networks
- β Do NOT sniff without permission
- β Educational use only
π Important Notes
[!important]
- Requires admin privileges
- Antivirus may flag sniffing
- Heavy traffic may slow system
π What You Will Learn
βοΈ Network protocols βοΈ IDS working βοΈ Packet analysis βοΈ Cyber defense mindset βοΈ Python system design
π Market Value
This project is valuable for:
- SOC Analyst roles
- Blue Team jobs
- Cybersecurity portfolios
- FYP / Thesis
π Future Enhancements
- MLβbased anomaly detection
- Web dashboard
- SIEM integration
- Email alerts
- Cloud monitoring
- IPS (auto blocking)
π Disclaimer
[!important] This software is provided for educational and research purposes only. The developer is not responsible for misuse.
π Copyright
Β© 2026 Syed Shaheer Hussain All rights reserved.
β Support & Engagement
If you find this repository useful or insightful, please consider:
- β Starring the repository
- π Sharing it within your network
- π€ Following my GitHub profile for future projects and updates
Your support helps drive continued innovation and open-source contributions.
β Syed Shaheer Hussain
β Final Note
[!note] This project demonstrates real enterprise cybersecurity concepts in a simple, understandable, and extensible way. It is ideal for students, researchers, and security enthusiasts.
π‘οΈ Learn. Detect. Defend.