---
title: "Intelligent security at ClickHouse speed: How Cogent Security built an AI-native vulnerability management platform"
description: "Cogent Security serves billions of vulnerability findings from per-tenant ClickHouse databases fed by a pipeline of entity resolution into a Knowledge Graph, dbt-built denormalized Iceberg tables, and the ClickHouse Spark Connector."
url: "https://swe.quest/articles/intelligent-security-at-clickhouse-speed-how-cogent-security-built-an-ai-native-1f3815ca47a60230"
canonical: "https://clickhouse.com/blog/cogent-security"
source: "ClickHouse"
published: "2026-03-24"
difficulty: "medium"
kind: "Case study"
reading_minutes: 9
tags: ["analytics","ai-agents","evals","data-pipelines","performance"]
---

# Intelligent security at ClickHouse speed: How Cogent Security built an AI-native vulnerability management platform

A post on [ClickHouse](https://swe.quest/sources/clickhouse.md), published 2026-03-24, 9 min read, Case study. Original: [https://clickhouse.com/blog/cogent-security](https://clickhouse.com/blog/cogent-security)

## Summary

Cogent Security serves billions of vulnerability findings from per-tenant ClickHouse databases fed by a pipeline of entity resolution into a Knowledge Graph, dbt-built denormalized Iceberg tables, and the ClickHouse Spark Connector. Moving off Postgres cut P50/P90/P99 latency from 2s/5s/25s to 0.3s/0.9s/2.5s at 100M rows with no caching, driven by query-first table design, denormalization, projections, and per-column codecs. Their text-to-SQL Chart Agent rose from 40% accuracy single-shot to 94% through an agentic loop with RAG, live SQL execution, a golden query bank, tenant memory, and simpler queries over pre-computed ClickHouse projections. Evaluation compares data output rather than SQL strings, with three-run majority voting, and an in-house Ontology Service keeps schema semantics and per-tenant overlays in sync with the physical schema.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Analytics & OLAP](https://swe.quest/tags/analytics.md) (Data & databases)
- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [Evaluation](https://swe.quest/tags/evals.md) (AI & ML)
- [Data pipelines](https://swe.quest/tags/data-pipelines.md) (Data & databases)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)

## Prerequisites

- columnar databases ([easy posts on Databases](https://swe.quest/tags/databases.md?difficulty=easy))
- text-to-SQL with LLMs ([easy posts on SQL](https://swe.quest/tags/sql.md?difficulty=easy))
- data lakehouse basics

## Keywords

ClickHouse, Cogent Security, Postgres, Apache Iceberg, dbt, ClickHouse Spark Connector, ClickHouse projections

## Related posts

- [How Fetch built its flexible agentic analytics tool on ClickHouse Cloud](https://swe.quest/articles/how-fetch-built-its-flexible-agentic-analytics-tool-on-clickhouse-cloud-284f56cdf33d7d26.md): ClickHouse · 2026-07-28 · Easy · 6 min read · Analytics & OLAP, AI agents, Data pipelines, LLMs
  Fetch built FAST, a conversational BI agent that lets non-technical sales teams query receipt purchase data in plain language, on ClickHouse Cloud ingesting 150 billion rows (6.5 TB compressed) a day.
- [How Artemis Security runs 69x faster detection queries with ClickHouse Cloud](https://swe.quest/articles/how-artemis-security-runs-69x-faster-detection-queries-with-clickhouse-cloud-9e25fd4724aa15b1.md): ClickHouse · 2026-07-01 · Medium · 8 min read · Analytics & OLAP, Performance engineering, Threat detection, AI agents, SQL
  Artemis, an AI-native threat detection platform ingesting terabytes of logs daily, sped up its ClickHouse Cloud workload with three techniques.
- [ClickHouse Powers Dassana’s Security Data Lake](https://swe.quest/articles/clickhouse-powers-dassana-s-security-data-lake-f08fe92e7f020fde.md): ClickHouse · 2023-01-23 · Medium · 7 min read · Analytics & OLAP, Threat detection, Databases, SQL
  Dassana built a security data lake on ClickHouse to normalize mutable security findings (alerts whose state changes) that append-only SIEMs handle poorly.
- [Fast, Feature Rich and Mutable : ClickHouse Powers Darwinium's Security and Fraud Analytics Use Cases](https://swe.quest/articles/fast-feature-rich-and-mutable-clickhouse-powers-darwinium-s-security-and-fraud-ebcdc43d86516c3d.md): ClickHouse · 2022-07-27 · Easy · 11 min read · Analytics & OLAP, Threat detection, Databases
  Darwinium, a digital risk and fraud platform, chose ClickHouse to back interactive security and fraud analytics over large, wide, long-retention event data.
- [How Fountain rebuilt its data plane on ClickHouse Cloud to power Cue, the Frontline Superintelligence](https://swe.quest/articles/how-fountain-rebuilt-its-data-plane-on-clickhouse-cloud-to-power-cue-the-0dccb4dc5f23d9f5.md): ClickHouse · 2026-09-22 · Medium · 9 min read · Analytics & OLAP, Data pipelines, Event-driven architecture, Multi-tenancy, AI agents
  Fountain replaced a multi-vendor batch pipeline (third-party replication to S3/Iceberg, then BigQuery) with ClickPipes CDC streaming Postgres and MongoDB directly into ClickHouse Cloud, cutting analytics freshness from three hours to under two minutes, with most queries sub-second, at about 66% lower cost.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
