All insights

617 FreeBSD ports: better matching for vulnerability scanners

Insight · 26 November 2026 · OTTRIA

The OTTRIA otter with a magnifying glass

A vulnerability scanner has to answer one question before it can even start looking: what software is this, exactly? The package name is not enough. The same project appears under several names, and similarly named projects are often entirely different software. That is what CPE is for — a standardised product identifier that allows software to be matched against the vulnerability reports in the NVD.

On 26 November, a contribution from OTTRIA landed in the FreeBSD ports tree: 617 port makefiles received a CPE declaration, covering 622 ports — flavors and derived ports share a makefile.

Metricbeforeafter
Ports with a CPE declaration3,3603,982
CPE outputs including flavors4,2784,948

Measured against the ports tree as of 23 November, excluding parallel changes by other maintainers.

The new matches concentrate on:

Where matching is possible at all #

The FreeBSD ports tree contains 35,202 versioned ports. That figure does not yield a meaningful percentage, because for a large share of this software no entry exists in the CPE dictionary at all — no vulnerability has ever been reported for it. There, the match is not missing; there is nothing to match.

The interesting group is the other one: software for which an entry does exist, but the port simply does not name it. Those are the ones we were looking for. After matching project and download URLs against the dictionary and reviewing each hit individually, around 640 ports remained for which the match could be proven conclusively.

622 of them are covered by this contribution. For the remaining 20 or so, the maintainers had added the declaration themselves in the meantime — that is a result too.

Where the matches come from #

The basis was a verified local copy of the official NVD CPE dictionary dated 13 November 2026: 1,873,730 entries, of which 1,660,251 are applications, spread across 48,784 active product families.

Every match was proven via the source, not the name:

In addition, the product name, the port description, and the inheritance between master and slave ports were checked. There are no invented vendor or product names.

What we deliberately left out #

The matching produced far more hits than the roughly 640 provable cases. We deferred wherever a match is plausible but not provable:

A wrong CPE is worse than none: it raises false alarms about someone else's software while hiding the fact that your own is not covered. These cases need individual review, not automation.

What happens next #

This CPE contribution is the first step, not the outcome. The deferred candidates are documented, and the next round is already under way. You will read the results here.

What this means for your supply chain #

This change does not fix a single vulnerability. It altered no code and closed no bug. What it does determine is whether an existing report reaches you at all. The many established monitoring solutions need a data foundation they can work with. With this contribution, we have improved that foundation for everyone.

Back to all insights