How kasusathvikamary/mitm-sentinel works
MITM Sentinel monitors live or synthetic network traffic, normalizes packets, checks them against four threat detectors, and can apply threat-specific countermeasures. Alerts are recorded and sent to desktop, webhook, and dashboard consumers. The CLI exposes monitoring, status, and simulation; the dashboard provides state and alert views, live telemetry, simulation controls, and a defense toggle. The graph includes documented detection and defense capabilities, including modules whose source was not sampled. Connections without direct excerpt evidence rely on README statements or are marked unverified.
Main entry points: engine.py Sentinel Engine · app.py Dashboard API · alert_manager.py Alert Manager · packet_capture.py Packet Capture
Components 24
Entry Points
- CLI Commands
src/main.py - Sentinel Engine
src/core/engine.py
Capture And State
- Packet Capture
src/core/packet_capture.py - Network State
src/core/network_state.py - Event Bus
src/core/event_bus.py
Threat Detection
- ARP Detector
src/detectors/arp_spoof_detector.py - DNS Detector
src/detectors/dns_spoof_detector.py - TLS Detector
src/detectors/ssl_tamper_detector.py - Gateway Detector
src/detectors/rogue_gateway_detector.py
Response And Alerts
- ARP Immunity
src/defense/arp_immunity.py - Host Quarantine
src/defense/firewall_blocker.py - DNS Enforcement
src/defense/dns_sec_enforcer.py - Connection Killer
src/defense/connection_killer.py - Alert Manager
src/alerts/alert_manager.py - Desktop Notifier
src/alerts/desktop_notifier.py - Audit Logger
src/alerts/logger.py - Webhook Notifier
src/alerts/webhook_notifier.py
Dashboard And Simulation
- Dashboard API
src/web/app.py - Dashboard UI
src/web/static/app.js - Attack Simulator
src/simulator/attack_simulator.py
Other components
- Operator
- Network Traffic
- DoH Resolvers
- Webhook Service
Connections 33
- Operator → CLI Commands: runs command
src/main.py - CLI Commands → Sentinel Engine: creates engine
src/main.py - CLI Commands → Attack Simulator: runs simulation
src/main.py - Network Traffic → Packet Capture: provides traffic
README.md - Sentinel Engine → Packet Capture: configures callback
src/core/engine.py - Packet Capture → Sentinel Engine: feeds packets
src/core/engine.py - Sentinel Engine → Network State: tracks baseline
src/core/engine.py - Sentinel Engine → Event Bus: publishes events
src/core/engine.py - Sentinel Engine → ARP Detector: runs analysis
src/core/engine.py - Sentinel Engine → DNS Detector: runs analysis
src/core/engine.py - Sentinel Engine → TLS Detector: runs analysis
src/core/engine.py - Sentinel Engine → Gateway Detector: runs analysis
src/core/engine.py - ARP Detector → Network State: checks mappings
src/detectors/arp_spoof_detector.py - Sentinel Engine → ARP Immunity: executes response
src/core/engine.py - Sentinel Engine → Host Quarantine: executes response
src/core/engine.py - Sentinel Engine → DNS Enforcement: executes response
src/core/engine.py - Sentinel Engine → Connection Killer: executes response
src/core/engine.py - ARP Immunity → Network State: updates ARP table
src/defense/arp_immunity.py - DNS Enforcement → DoH Resolvers: uses DoH fallback
README.md - Sentinel Engine → Alert Manager: dispatches alerts
src/core/engine.py - Alert Manager → Audit Logger: writes audit trail
src/alerts/alert_manager.py - Alert Manager → Desktop Notifier: notifies desktop
src/alerts/alert_manager.py - Alert Manager → Webhook Notifier: sends alert
src/alerts/alert_manager.py - Webhook Notifier → Webhook Service: posts alert
src/alerts/webhook_notifier.py - Alert Manager → Event Bus: publishes alert
src/alerts/alert_manager.py - Dashboard API → Event Bus: subscribes events
src/web/app.py - Event Bus → Dashboard API: broadcasts telemetry
src/web/app.py - Dashboard API → Network State: serves state
src/web/app.py - Dashboard API → Alert Manager: serves history
src/web/app.py - Dashboard API → Attack Simulator: triggers scenarios
src/web/app.py - Attack Simulator → Packet Capture: feeds packets
src/simulator/attack_simulator.py - Operator → Dashboard API: opens dashboard
README.md - Dashboard API → Dashboard UI: serves interface
README.md