Back to directory

Context-Aware AI Firewall

A stateful intrusion prevention system that reassembles TCP packet streams in order and uses deep-learning models to detect and block malware split across packets.

Context-Aware AI Firewall

This firewall captures per-flow network traffic and buffers and reassembles it based on TCP sequence numbers, handling out-of-order packets, duplicates, overlaps and gaps, so it can see the full reconstructed payload rather than inspecting packets in isolation. It then extracts sequence features such as Shannon entropy, packet intervals, headers and payloads, and classifies the reconstructed stream with a PyTorch LSTM or Transformer model to detect malicious sessions.

Detected attacks trigger dynamic session termination and a temporary one-hour blacklist of the attacking IP at the firewall gateway. The project positions this against traditional packet filters, which inspect packets independently and are blind to payloads split across multiple harmless-looking packets, and stateful-inspection firewalls, which track connection state but are still described as easily bypassed by slow or irregular packet timing.

It is built with a FastAPI backend and a React frontend.

More in Security

See all 287
  • The Standup

    standup.thecompound.tech

    A daily email and dashboard tracking software releases, security advisories, outages and breaking changes across the vendors and repositories a team depends on, surfacing only what needs action rather than a full news feed.

  • Drop

    droprun.sh

    A rootless Linux sandbox for developers, built on user namespaces with optional gVisor isolation, that confines coding agents and third-party packages without leaving your normal work environment.

  • Compliance Posture

    complianceposture.com

    A free, searchable directory that tracks the security and compliance certifications, such as SOC 2, ISO 27001, HIPAA, and GDPR, of over 400 SaaS vendors across twenty categories, with side-by-side comparisons.