Protectify: Advanced Firewall Architecture

Main GUI

Central Control

  • Defines PythonControlApp using PyQt5
  • Fixed-size window for Protectify control
  • Clean UI with custom styling
  • Organizes title, team info & scripts

Packet Capture

Traffic Sniffing

  • Packet sniffing via Scapy & Tkinter
  • Initializes data structures for packets
  • Processes IP, port, and protocol details
  • Outputs to traffic.csv and ip.txt

AI Detection

Anomaly Detection

  • AI-based engine with anomaly checking
  • Feature extraction using Scapy
  • LSTM Autoencoder model implementation
  • Reads ip.txt, writes malicious.txt

Internet Access

App Control

  • ProtectifyFirewall with CustomTkinter
  • Monitors running apps via psutil
  • Controls per-app internet rule access

IP Tracking

Geolocation

  • IPDetailsApp using PyQt5 monitoring
  • Fetches geolocation from freeipapi.com
  • Integrates Google Maps quick links

IP Blocking

Firewall Actions

  • Blocks malicious IPs via Windows firewall
  • Reads targets from malicious.txt
  • Executes netsh command rules

DNS Protection

DNS Config

  • PyQt5 interface for DNS management
  • Configures system DNS via netsh
  • Supports Quad9, Google, CleanBrowsing

traffic.csv

Packet Logs

  • Written by Packet Capture module
  • Stores logs with timestamps & IPs

ip.txt

Unique IPs

  • Shared IP encounter registry
  • Tracked across active sessions

malicious.txt

Blocked IPs

  • Flagged threat repository
  • Feeds automated blocking scripts

blacklist.txt

Known Threats

  • Predefined threat signatures
  • Reference check list