Python-based network packet sniffer and basic intrusion detection system (IDS) built on Linux using Scapy. NetSentry captures live network traffic, analyzes DNS and HTTP protocols, detects suspicious network behavior, exports PCAP files, logs security events, and generates traffic statistics for basic SOC-style network monitoring.
- Live packet capture
- TCP, UDP, and ICMP monitoring
- DNS query extraction
- Suspicious domain detection
- HTTP request analysis
- Suspicious HTTP path detection
- Behavioral port scan detection
- PCAP export
- Structured logging
- Traffic statistics and summary reports
- Command-line filtering
- Modular architecture
- Python 3.13
- Scapy
- Colorama
- Linux (Kali / Ubuntu)
- VS Code
- Git
NetSentry/
├── src/
│ ├── sniffer.py
│ ├── detection_engine.py
│ ├── http_analyzer.py
│ ├── logger.py
│ └── utils.py
├── docs/
│ ├── architecture.md
│ ├── usage.md
│ ├── interview_questions.md
│ └── screenshots/
├── logs/
├── pcaps/
├── tests/
├── README.md
├── CHANGELOG.md
├── project_notes.md
├── requirements.txt
└── .gitignore
Clone the repository:
git clone https://github.com/Vishnu9604/NetSentry.git
cd NetSentryCreate a virtual environment:
python3 -m venv venv
source venv/bin/activateInstall dependencies:
pip install -r requirements.txtCapture all traffic:
sudo venv/bin/python src/sniffer.pyCapture TCP traffic:
sudo venv/bin/python src/sniffer.py --tcpCapture UDP traffic:
sudo venv/bin/python src/sniffer.py --udpCapture ICMP traffic:
sudo venv/bin/python src/sniffer.py --icmpCapture traffic for a specific port:
sudo venv/bin/python src/sniffer.py --port 53Capture localhost traffic:
sudo venv/bin/python src/sniffer.py --tcp --iface loNetSentry currently detects:
- Suspicious DNS domains
- Suspicious HTTP paths
- Behavioral TCP port scans
- Basic reconnaissance activity
- Protocol-level traffic patterns
- HTTP response analysis
- TLS fingerprinting
- ICMP flood detection
- DNS tunneling detection
- Threat intelligence integration
- Real-time monitoring dashboard
- Mini SIEM integration
- Cloud log ingestion
Vishnu Satam
Cybersecurity | Network Security | Python | SOC Analyst Projects




