Security News Pipeline — 17,073 CVEs, one message

Security AutomationVulnerability ManagementPythonAI TriageNixOS
Image 1
Image 2
Image 3
Image 4
Image 5

Slides (PDF)

The problem

A week of CVE feeds is thousands of records. Most of them are about software I don't run. A few of them matter a lot.

Reading them by hand means reading everything to find those few. With my rough estimate:

Per week, by handHours
Read the advisories3 h
Check which versions I run2 h
Decide what matters1 h
Total6 h

Example: one real run

One run over 7 days of feeds, from the pipeline's own log:

StepCount
CVE records scanned17,073
Matched software I run613
Telegram messages1

It took 10 seconds. 613 out of 17,073 is about 4 %. The other 96 % never needed my attention.

How it works

Zoom
  • Inventory. A read-only inventory of each machine: kernels, installed packages, container images.
  • Feeds. The daily CVE List releases and CISA's Known Exploited Vulnerabilities list. A script matches names and version ranges. No AI in this step.
  • Triage. An AI model gets each match and answers in a fixed format: does it affect me, how severe for me, how exposed, what to do.
  • Alert. Findings that matter go to Telegram; the rest stay in the report or a ticket.
  • Plan. For each new high finding, a second model drafts a fix plan in a sandbox. A separate review pass checks it. The plan lands as a ticket. I decide whether to apply it, and I apply it by hand.

What reaches my phone

The message format, with example values:

One line per finding: component, action, where, which CVEs, and one sentence of why.

And a real hit that stays out: 27 CVEs matched the word "fuse", up to CVSS 9.6. They are about Red Hat Fuse, a Java product, not the Linux FUSE library. That one stays in the report.

Safeguards

Advisories are text written by strangers, and the audience of a security feed includes attackers. So:

  • Advisory text is data. The prompt says so, and the model's output is escaped before it goes anywhere.
  • The triage model has no tools. It can only answer.
  • Strict schema. The answer must fit a JSON schema. IDs the model invents are dropped.
  • AI-free fallback. If the model is down or fails, a simple rule (exploited, or critical and confirmed) still alerts.
  • The pipeline never applies a fix. Plans are model output from untrusted text, and the tickets say so. I apply them by hand.
  • Health alerts. If it stops or fails, I get an alert.

Today

WhatNumber
Components inventoried1,386
One 7-day run17,073 CVE records → 613 matches, 10 s
First 7-day run19,344 CVE records scanned in 7 s → 300 candidates
3-day AI triage test94 matches → 38 items → 3 high, 42 s, nominal 0.11 USD
First plan run3 findings planned and reviewed in 7.8 min, one of them "no action"

The matcher got stricter with each review. A record that fails to parse no longer stalls a day, and "unknown version" is kept apart from "not affected".

Stack

Python (standard library only), NixOS modules and systemd timers, CVE List V5, CISA KEV, Claude models, Telegram, Grafana alerts.

Status

Running daily since November 2026. Applying fixes stays manual.

Related: my-nixos-infrastructure (the repo the plans are written against) and my-homelab (what it protects).