Skip to content

Build PacketForge into a tested packet analyzer and lightweight IDS - #1

Open
verseofmayank wants to merge 4 commits into
mainfrom
feature/packetforge-analyzer-ids
Open

verseofmayank wants to merge 4 commits into
mainfrom
feature/packetforge-analyzer-ids

Conversation

@verseofmayank

Copy link
Copy Markdown
Owner

PacketForge previously decoded unchecked network-buffer structures and printed ALLOW/DROP decisions without enforcing them. This change preserves that repository history and teaching concept while adding bounded decoding and an accurate Firewall Policy Simulation.

The shared C++17 pipeline now supports Linux AF_PACKET capture and classic Ethernet PCAP analysis, five configurable metadata IDS rules, bounded directional flows and statistics, structured alert evidence, and JSON/CSV/standalone HTML exports. Original sniffer/forwarder entry points remain as compatibility wrappers. Synthetic reserved-address PCAPs, a reproducible demo, audit, protocol/detection documentation and interview preparation are included.

Validation executed locally:

  • Clean GCC 15.2.0 Release build; all 3 CTest targets passed.
  • 10,153 unit assertions (including 10,000 randomized parser inputs) and 68 CLI/fixture subprocess checks passed.
  • Clean ASan/UBSan build and offline tests passed. LeakSanitizer is disabled in the traced development runner; no leak-check pass is claimed.
  • Isolated WSL2 live AF_PACKET tests passed: real loopback UDP, count/duration limits, SIGINT, Ethernet interface binding and explicit promiscuous membership.
  • HTML rendered in Chromium and screenshot inspected; raw build/test evidence is committed under docs/evidence.

Scope limits: no packet enforcement/injection, stream or fragment reassembly, PCAPNG, DNS inspection, checksum validation or line-rate performance claim. Bounded-state loss is reported. Physical NIC coverage and Windows-side WSL visibility are not claimed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant