Cybersecurity
ODIN
Passive Network Threat Detection
Real-time threat detection for one-way-mirrored network traffic, built for Smart India Hackathon.
- Category
- Cybersecurity
- Source
- Public on GitHub
- Stack
- Python
- Zeek
- Kafka
- Flask
- React
- Docker
- 01Internettraffic
- 02TAPone-way mirror
- 03Zeekconn · dns · ssl
- 04Kafkalog stream
- 05ML detectors×6, batched
- 06Correlationthreat core
- DDoSC2 beaconDGA / DNSTLS malwareReconData exfil
01 · The problem
Security teams monitoring critical infrastructure often only get a one-way mirror of traffic — a passive tap or data diode with no return path into the network being observed. That's the exact constraint the underlying problem statement (built for Smart India Hackathon) poses: catch six distinct attack classes — DDoS, C2 beaconing, DGA/DNS tunnelling, TLS-wrapped malware, reconnaissance, and data exfiltration — from that vantage point alone, in real time.
02 · Approach
Zeek turns raw packets into structured logs (conn/dns/ssl); Kafka streams those logs to six purpose-built detectors, one per threat class; a correlation engine aggregates their findings; a Flask API streams verdicts live over SSE to a React dashboard. The whole pipeline runs end to end on Docker Compose.
03 · The hard part
Throughput was the first wall — running inference per-event capped the pipeline well below what real traffic demanded, and micro-batching inference calls raised throughput 4.74×. The harder bug came later: TLS malware detection was silently returning nothing on real traffic, not because the model was wrong but because a Zeek log join was silently dropping the join key — a failure mode that a synthetic-only dataset would never have surfaced.
04 · Result
All six threat classes have a working detector wired into the live pipeline. The project's own documentation deliberately distinguishes which detectors are validated against real captured traffic versus synthetic data only — an honesty-about-limits stance that mattered more here than claiming blanket coverage.