Post

17,476 Public Signals, One Local LLM: What an Automated Vulnerability Radar Gets Right and Where Its Score Fails

I built a radar that watches 39 AI and MCP repositories, triages every commit, release and advisory with a local model, and ranks three items each morning. After 12 days and 1,722 triages: what it filtered, where the model was confidently wrong, why the score saturated at 100, and what the human step still has to do.

17,476 Public Signals, One Local LLM: What an Automated Vulnerability Radar Gets Right and Where Its Score Fails

For 12 days a radar has watched 39 source-available projects in the MCP and AI-agent ecosystem. It collected 17,476 public signals (commits, releases, GitHub advisories and OSV records), triaged 1,722 of them with a local language model, and put a ranked shortlist in front of me each morning. This post reports what that produced, with the numbers from the radar’s own database. It covers the design, what held up, what did not, and which parts of it you can reuse for the open-source components your own company ships and depends on.

The pipeline reads public data only. Everything it flags is a fix that maintainers have already published, or a commit that looks like one. The research starts after that, when a person asks what the fix did not cover.

TL;DR

  1. A deterministic prefilter removed 87.7% of the volume before any model ran. Of 17,476 signals, 2,149 reached the model. For commits the cut was 93.3%.
  2. Local triage is fast enough to be practical. Median 48 s and p95 88 s per item on one workstation GPU. The backlog drain completed 1,208 triages in one day, at up to 193 per hour. The triage step spent no cloud tokens.
  3. The model agrees with advisories, and is wrong with high confidence anyway. It judged 98.7% of GitHub advisories and 99.7% of OSV records to be security fixes. Four of the 6 it rejected carried 0.95 stated confidence, including a reflected XSS advisory. Stated confidence does not separate right from wrong verdicts.
  4. The research score saturated. Nine items scored exactly 100, because the formula can add up to 105 and is clamped. On average, 30% of an item’s score came from the watched-repo priority I assigned, not from the model.
  5. The human step is the bottleneck, and that is intended. 182 items scored 90 or more. I hunted 10. Nine closed with no variant. One became a report to a maintainer, still unfixed, so I do not name it.
  6. Two of my own feedback loops never ran. The tables for feedback, verdicts and calibration samples have zero rows. The score has never been tuned by a single human judgement.

What the radar does

The radar is one TypeScript codebase on a small Kubernetes cluster, with durable workflows (Restate) and a Postgres schema. A single workstation with an RTX 3090 serves the model. Each stage is a pure function or a logged step, so every score can be traced back.

StageWhat happensWhere the judgement sits
CollectPoll commits every 30 minutes, plus releases, GitHub advisories and OSV records for 39 watched repositoriesWatchlist, chosen by me
PrefilterScore each signal 0 to 100 from security vocabulary, sensitive paths (auth, token, fetch, proxy) and added checks in the diff. Bot commits and dependency bumps are penalised. Threshold 35Fixed rules, every reason logged
CorrelateLink commits, releases, GHSA and CVE ids that refer to the same fix. A newly linked commit gets +60Rules
TriageA local model reads the message, advisory text and up to 400 diff lines. It returns JSON: is it a security fix, CWE class, root cause, fix summary and up to three variant hypothesesThe model
Scoreresearch_score combines the model’s verdict with repo priority, advisory links, a focus-CWE list and variant hypothesesFormula, breakdown stored
QueueEvery morning at 06:00, the top three items go to a ranked queueRules plus diversity limits

Two design choices matter for anyone copying this. First, all untrusted text (commit messages, advisory bodies, diffs) goes into the prompt inside delimited blocks whose boundary token is a hash of the content, so a malicious commit message cannot close the block early. Second, the model must return schema-valid JSON, with one repair retry. If the model server is unreachable, the triage sleeps and backs off for up to 24 hours instead of failing.

The watchlist has 39 repositories in five categories: 11 MCP servers, 10 MCP SDKs, 8 agent frameworks, 7 agent runtimes and 3 identity projects. Signals include history. Commits go back to 1 June 2026 and advisories to 2021, so the 17,476 count includes a backfill, and the radar itself has run since 7 November.

The funnel

Horizontal bar chart on a log scale showing each stage from 17,476 signals down to 1 reported finding

Of the 17,476 signals, 2,149 passed the prefilter and 15,326 were skipped. Commits dominate the input (15,619) and the rejection: 14,578 commits, 93.3%, never reached a model.

The model then triaged 1,722 items and judged 1,117 of them, 64.9%, to be security fixes. I excluded 13 first-day rows from every count. Their 18 ms median latency is far below anything the 27B model reaches, so I treat them as development-run output. At the time of the queries, 403 more signals were waiting (159 awaiting the model, 244 pending), because I had stopped the model server.

The sharpest cuts are the prefilter (8 times fewer), the score cut from 1,117 to 182 (6 times) and the human step from 182 to 10 (18 times). Machines made the first four reductions, and my hours made the last two.

What worked

The deterministic prefilter earns its place. A rule set of 32 security terms, 17 sensitive path fragments and some penalties removed 15,326 signals without spending GPU time. Every rejection carries a stored reason, so I can audit it.

Local triage is fast enough. Across 1,722 triages the median was 48.3 s, the p95 87.7 s and the maximum 163 s. On 18 November the radar completed 1,208 triages, with eight consecutive hours between 109 and 193 per hour.

Left: hourly triage completions on 18 November. Right: histogram of per-item latency, median 48 s and p95 88 s

Running locally has a cost that the chart hides. Two larger models I tried for a different lab step, qwen3-coder-next and qwen3:14b, failed to load on the 24 GB card, and only the 8B model ran. The radar’s triage model is recorded in the database as qwen3.8-27b-agent. What you can run decides what you can triage with.

Structured output is reliable. 11 of 1,733 triages that reached the model failed, 0.6%. Nine of those were schema failures on the vuln_class label or CWE field after the repair retry, and two were HTTP 400s from the model server.

The model agrees with expert-labelled sources. On the 759 advisory-sourced signals it judged 98.7% of GitHub advisories (387 of 392) and 99.7% of OSV records (366 of 367) to be security fixes. That is a recall check against a known-positive set, and the only ground truth I have.

What did not work

Stated confidence carries no signal. The model reported 90 to 100 percent confidence on 1,167 of 1,722 triages (67.8%). In that top bucket, 772 were judged security fixes and 395 were not. The same bucket holds both verdicts.

Left: share judged a security fix by signal type. Right: stacked histogram of stated confidence by verdict

Confident misses exist on known-positive input. Of the 759 advisory-sourced signals, the model rejected 6, a recall of 99.2%. Four of the six carried 0.95 stated confidence: “Reflected XSS in standalone OAuth authorization script callback handler”, “Missing Authentication for Critical Function in @modelcontextprotocol/…”, “Missing user ID claims collapse authenticated principals…” and a path traversal in a Confluence attachment tool. Each is a published vulnerability that the model called not security. The other two (a duplicate-advisory notice at 0.85 and a trusted-plugin design note at 0.78) are defensible rejections. This is the error a triage model must not make silently.

Correlation links loosely. The correlator boosts a commit by 60 points when it links it to a GHSA or CVE id. It linked 437 commits. The model judged 96 of the 373 triaged ones to be security fixes. In a random sample of 14 of the other 277, 11 were catalog edits, version bumps or contributor chores, and 3 were functional fixes with no security angle. The model looks right and the correlator looks too generous. I cannot compute the prefilter’s true recall from these links, because the +60 hides what the rules alone would have scored.

The score does not mean what the number suggests. The formula is: 40 times the model’s confidence if it is a security fix, plus 6 times the watched-repo priority (up to 30), plus 10 for a linked advisory, plus 10 for a focus CWE, plus 5 per strong variant hypothesis (up to 15), minus penalties. The maximum is 105, so it clamps at 100.

Left: histogram of research scores for 1,117 security items. Right: stacked bar of average points per component, total 80.2

Three numbers show the problem:

  • Nine items scored 100, 35 scored 98 or more, and 182 scored 90 or more. The top of the scale is crowded, not selective.
  • The model’s verdict supplies 35.3 of the average 80.2 points. The repo priority I typed into the watchlist supplies 23.8, or 29.7%. Items from priority-5 repos average 88.0, against 78.6 for priority 3 and 4. 42.7% of priority-5 items score 90 or more, against 10.6% of the rest.
  • 1,057 of 1,117 security items (94.6%) came back with exactly three variant hypotheses, which is the schema maximum. The bonus for variant hypotheses is almost a constant.

The score ranks “important project, plausible fix” and not “likely to contain a missed variant”. For picking the next hunt it is a filter, not an answer.

The learning loop is empty. The radar has 15 queue runs and 38 queue items, of which one is marked done. The feedback, verdicts and calibration tables have 0 rows, so the score’s feedback term has never fired.

What the radar produced

The radar picks neighbourhoods. The research is a loop I run by hand on a fixed fix: write down where I think the bug was before I open the patch, read the patch, reproduce in a sandbox on synthetic data, then list every call site of the same kind and check which ones the fix reached.

Ten radar-seeded hunts have a recorded outcome. Nine closed with no variant, each with the evidence written down. One ended in a report to the maintainer, sent in November. The lab’s findings table shows two reports in total, one of class path-traversal and one of class SSRF, none fixed yet. The first report comes from a hand-run loop that started before the radar existed.

I am not naming either target. The fix has not shipped, and disclosure runs 90 days from first contact by default. A closed set is an outcome too. Two of the nine showed one shared predicate reused by every caller, which is what a complete fix looks like.

Measurement limits

  • 12 days is a small sample. The radar began on 7 November. Backfilled history inflates the signal count, so the counts describe a snapshot, not a rate.
  • There is no human label set. I have not read 1,117 verdicts. Agreement is measured only against advisory-sourced items, and precision on commits is unmeasured.
  • Counts are signals, not bugs. One fix can appear as a commit, a GHSA, an OSV record and a release. CWE-918 leads the class counts with 106 signals, and that overstates unique bugs.
  • One model, one prompt version. All 1,722 triages used triage.v1. I did not compare models.
  • The attempts counter is not a quality measure. 755 of 1,722 triages (43.8%) have more than one attempt, but the counter also rises when the model server was asleep.
  • Most top-scoring items are already fixed. They come from advisories and merged patches. The radar reads the past.

Surprises

  1. The saturation was visible in the stored data, and invisible in the interface. I only found the 105 ceiling because I kept the score breakdown for every triage. If you build one of these, store the parts.
  2. The verdicts were reliable where the input was already labelled, and the number meant to say when to trust them was not. Stated confidence sat at 90 or above for two thirds of the triages, whichever way the verdict went.
  3. My biggest score input was my own watchlist. Priority is an opinion I wrote in a config file, and it carries about 30% of the average score.
  4. The bottleneck did not move. The radar turned 17,476 signals into 182 strong candidates in 12 days. I can hunt about ten.

What the evidence supports

  • Cheap rules first, model second. A deterministic prefilter removed 87.7% of the volume and logged why. The model should see only what remains.
  • Treat model output as a hint, and verify against a known set. Advisory-sourced items give you a free positive-class check. Run it before trusting any threshold.
  • Do not use stated confidence as a gate. Gate on something you can check, such as a schema, a path pattern or a linked advisory.
  • Keep the score decomposable. A stored breakdown found the ceiling, the dominant input and the near-constant term in one query each.
  • Close the loop on purpose. If feedback tables stay empty, the score cannot improve. Record a verdict for every item you hunt.

Applying this to the software your company depends on

The same pipeline works on any public project, so start with a software bill of materials, not a target list. Watch the repositories behind your dependencies and your own open-source releases. Keep the model local if the code or the notes are sensitive. Run any reproduction in a disposable sandbox with no network route to anything you do not own.

The radar reads public advisories, commits and releases. It does not test anyone’s systems. Checking a company’s live infrastructure needs written authorisation, and anything you find in a third-party project goes to that project privately first.

Summary

MeasureValue
Watched repositories39
Signals collected (7 to 19 November)17,476
Skipped by the rule prefilter15,326 (87.7%)
Triaged by the local model1,722
Judged a security fix1,117 (64.9%)
Share judged a security fix: commits, releases, GHSA, OSV32.7%, 74.6%, 98.7%, 99.7%
Triage latency, median and p9548.3 s, 87.7 s
Peak triages per hour193
Triage failures11 (0.6%)
Items scoring 100 / 98 or more / 90 or more9 / 35 / 182
Average score, and the model’s share of it80.2, 35.3 points
Hunts with a recorded outcome10 (9 no variant, 1 reported)
Reports sent, fixed2, 0
Rows in feedback, verdicts, calibration tables0, 0, 0

Primary sources

All counts come from the radar’s Postgres schema (signals, triages, watched_repos, queue_items, feedback, verdicts, calibration_samples), queried on 19 November 2026. Public data feeds the radar:

The Security Lab Newsletter

This post is the article. The newsletter is the lab.

Subscribers get what doesn't fit in a post: the full attack code with annotated results, the measurement methodology behind the numbers, and the week's thread — where I work through a technique or incident across several days of testing rather than a single draft. The RAG poisoning work, the MCP CVE analysis, the red-teaming patterns — all of it started as a newsletter thread before it became a post. One email per week. No sponsored content. Unsubscribe any time.

Join the lab — it's free

Already subscribed? Browse the back-issues →

This post is licensed under CC BY 4.0 by the author.