← All writing
Building a CTI Platform From Scratch (10 of 10)

A Year Running This in Production: What I'd Do Differently

Cover illustration for A Year Running This in Production: What I'd Do Differently

The platform now tracks 194,000 vulnerabilities, 183,000 of them scored against EPSS, matches 887 of them against a 19 asset inventory, and has sent 5,679 priority alerts that actually changed what I looked at that day. None of that was true the week I started. All of it came from fixing things that broke, not from a design document that got everything right the first time.

The biggest mistake, looked at honestly: building the alerting and the asset matching before the data was clean. I spent real effort tuning an alert engine's thresholds before I discovered that five different scripts were quietly fragmenting the same KEV data under five different source labels, which meant some of the thresholds I was tuning were reacting to a data quality problem, not a real signal. Clean the pipeline before you trust anything downstream of it. I knew that rule in the abstract and still violated it in practice, because the exciting part of a project is always the layer closest to the output, not the unglamorous ingestion code underneath it.

The second lesson: a monitoring system is only as honest as its own assumptions. I had a health checker flag a vulnerability from 1988 as my freshest NVD data, because it trusted the first result an API call returned instead of checking whether that result was actually representative. The bug was not in the monitoring logic's intent. It was in an assumption nobody had questioned, that the first item in a response is the most recent one. Every automated system carries assumptions like that, made once under time pressure and never revisited until something forces the question.

The thing I would keep exactly as is: scoping the asset inventory small and treating 19 accurate assets as more valuable than 200 approximate ones. Everything downstream, the matching, the alerting, the trust I place in what the system tells me, depends on that inventory being something I believe without double checking. That discipline, protecting the integrity of the smallest, most load bearing piece of the system, is the one architectural decision from day one I have never regretted.

This series started as a build log and ended up being mostly about the gap between what a system is designed to do and what it actually does once real data and real time pressure get involved. That gap is where the job actually is, in security or anywhere else building something meant to be trusted.

PreviousSBOM Import and the Supply Chain Blind Spot