How Petra Security built real-time M365 threat detection on ClickHouse Cloud
- ClickHouse Cloud
- Microsoft 365
- Postgres
- Exchange
- SharePoint
- Teams
AI Summary
Petra Security provides AI-driven identity threat detection and response for Microsoft 365. To handle millions of high-frequency, fragmented log events, the engineering team adopted ClickHouse Cloud. By leveraging asynchronous inserts, materialized views for real-time signal computation, and compute-compute separation, Petra processes massive volumes of Exchange, SharePoint, and Teams activity. This architecture enables sub-second detection, historical backfills for forensic scans, and high-speed model iteration without performance degradation.
Key Takeaways
- Analyzes the transition from traditional location-based login detection to intent-based post-login monitoring.
- Explains the technical rationale for moving from row-oriented databases like Postgres to ClickHouse Cloud.
- Highlights the operational benefits of managed cloud database features such as compute-compute separation.
Why it matters
Choosing the right database architecture is critical for real-time security platforms processing high-throughput, multi-tenant log streams. This article illustrates how columnar storage, asynchronous inserts, and materialized views solve complex ingestion and low-latency detection challenges in cloud environments.
Conversation0
What would you add from your experience?
Checking your session…
Every good conversation starts with one perspective.