Real-Time Threat Detection Pipeline
Arclight Security / 2023-presentReplaced a batch-oriented detection system (15-min cycles) with a streaming architecture. The old system meant attackers had established persistence before alerts fired. The new design uses Kafka for event ingestion, Go consumer services for rule evaluation, and ClickHouse for windowed aggregations.
Key decision: Each rule type gets its own consumer group, so high-volume simple pattern rules don't bottleneck complex multi-step correlation rules. Built a custom windowed aggregation layer in Go with in-memory state and Redis checkpoints to avoid hitting ClickHouse on every event. The state machine engine tracks attack progression across events for multi-stage detection rules that weren't possible in the batch system.
2.3B
events/day
400+
tenants
47s
detection time (was 14min)
-28%
false positive rate