A Lightweight, Dependency-Free Network Packet Analyzer and Rule-Based Threat Detection Engine in Python

This report presents the design and implementation of a lightweight, dependency-free Network Packet Analyzer written entirely in the Python standard library. The tool captures live IPv4 traffic through raw sockets, dissects Ethernet, IPv4, TCP, UDP, and ICMP headers, and applies four rule-based heuristics to detect SYN floods, port scans, ICMP floods, and traffic on known high-risk ports (e.g., Metasploit listeners, backdoors, unencrypted legacy protocols). Captured sessions are summarized into structured JSON reports that can be viewed in the terminal or exported to HTML. A built-in demonstration mode replays synthetic traffic — including a scripted attack scenario — so the full detection pipeline can be exercised without root privileges or a live network interface, making the tool suitable for security education, classroom demonstrations, and low-resource network monitoring. This paper documents the system architecture, packet-parsing pipeline, threat detection methodology, reporting format, current limitations, and directions for future work (including a web dashboard, GeoIP enrichment, PCAP export, and ML-based anomaly detection). Source code: https://github.com/jatin8318/Network-Packet-analyzer (MIT License)

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-07-25
DOI
https://doi.org/10.5281/zenodo.21548574
Primary Topic
Network Security and Intrusion Detection
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
preprint

A Lightweight, Dependency-Free Network Packet Analyzer and Rule-Based Threat Detection Engine in Python

Yadav NK
Zenodo (CERN European Organization for Nuclear Research)
Network Security and Intrusion Detection
preprint

A Lightweight, Dependency-Free Network Packet Analyzer and Rule-Based Threat Detection Engine in Python

Yadav NK
preprint en

Abstract

This report presents the design and implementation of a lightweight, dependency-free Network Packet Analyzer written entirely in the Python standard library. The tool captures live IPv4 traffic through raw sockets, dissects Ethernet, IPv4, TCP, UDP, and ICMP headers, and applies four rule-based heuristics to detect SYN floods, port scans, ICMP floods, and traffic on known high-risk ports (e.g., Metasploit listeners, backdoors, unencrypted legacy protocols). Captured sessions are summarized into structured JSON reports that can be viewed in the terminal or exported to HTML. A built-in demonstration mode replays synthetic traffic — including a scripted attack scenario — so the full detection pipeline can be exercised without root privileges or a live network interface, making the tool suitable for security education, classroom demonstrations, and low-resource network monitoring. This paper documents the system architecture, packet-parsing pipeline, threat detection methodology, reporting format, current limitations, and directions for future work (including a web dashboard, GeoIP enrichment, PCAP export, and ML-based anomaly detection). Source code: https://github.com/jatin8318/Network-Packet-analyzer (MIT License)

Zenodo (CERN European Organization for Nuclear Research)
Quality Education
Network Security and Intrusion Detection
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

A Lightweight, Dependency-Free Network Packet Analyzer and Rule-Based Threat Detection Engine in Python — Yadav NK · Zenodo (CERN European Organization for Nuclear Research) (2026) | TGRS Research Map | TGRS