How stamparm/maltrail works
The system architecture should be represented with the following main components:
Core Components
• Traffic Source
• Sensor(s)
• Server
• Client (Web Interface)
Key Relationships
a. Data Flow:
• Traffic -> Sensor (packet capture)
• Sensor -> Server (event logging)
• Server -> Client (reporting interface)
Component Details
Sensor Component:
• Subcomponents:
• Packet Capture Module (pcapy-ng)
• Trail Matching Engine
• Event Generation
• Update Module (for trails)
• Input/output:
• Network Traffic Input
• Event Output to Server/Local Storage
Server Component:
• Subcomponents:
• HTTP/HTTPS Server
• Log Storage
• User Authentication
• Trail Updates
• Connections:
• UDP Input from Sensors
• HTTP/HTTPS Output to Clients
• Optional Syslog/Logstash Output
Client Component:
• Subcomponents:
• Web Interface
• Data Processing (client-side)
• Visualization Elements
Additional Elements
Storage:
• Trail Storage
• Log Storage
• User Configuration
External Connections:
• Connections to:
• Trail Update Sources
• External Logging Systems
• Search Services (searX)