The vulnerability collector of OpenCTEM. Every hour it reads what the public vulnerability sources changed, normalises them into OpenCTEM's corpus model (products, vulnerabilities and affected version ranges), validates every record, signs the result and publishes it as a GitHub Release (in vulnfeed-bundles). OpenCTEM platforms never call the sources themselves: they download (or, air-gapped, upload) a bundle, verify it and import it.
Design: OpenCTEM RFC-066 §5.5, Feed: collector and signed bundles.
This repository is the code of the collector. The data it produces is published elsewhere:
| What | Where | Tags |
|---|---|---|
| The collector software | this repository's releases | vX.Y.Z (software version; linux amd64 and arm64 binaries, SHA256SUMS signed keyless with cosign) |
| The vulnerability feed | openctemio/vulnfeed-bundles releases | v1-N: bundle format v1, sequence N; the release title carries the UTC date |
A workflow in vulnfeed-bundles checks out this repository at a pinned version, builds the collector, and builds, signs, verifies and publishes a bundle every hour. Splitting code from data keeps the software's release history readable and lets the feed be published with the repository's own token.
Transition (dated plan): until the platform release whose default feed URL is
https://github.com/openctemio/vulnfeed-bundles/releases has been out for 30 days,
.github/workflows/publish.yml here mirrors the latest feed release into this
repository's releases (verified with the pinned root key, not re-signed), so
installs on the old default keep working. After that a pull request removes the
mirror and the old v1-N releases here. Nothing new is signed in this repository.
The hourly workflow of vulnfeed-bundles runs this collector in three jobs. Only the last one holds the signing key; the job that talks to the sources never sees it.
sequenceDiagram
autonumber
box Sources, read over HTTPS only
participant SRC as NVD, CVE List, CISA KEV, FIRST EPSS, advisory database
end
box vulnfeed-bundles workflow
participant PF as preflight (publish environment)
participant B as build (no signing key)
participant P as publish (publish environment, VULNFEED_SIGNING_KEY)
end
participant R as vulnfeed-bundles releases
PF->>PF: VULNFEED_SIGNING_KEY set, keys/keyset.dsse.json names keys/root-keyid.txt and is not expired
B->>R: gh release download (latest), else the legacy repository, else fail
B->>B: vulnfeed build --prev: bundle.VerifyDir against the pinned root (expired allowed)
B->>SRC: collect.Build reads NVD and CVE List changes since the previous build
B->>B: merge, collect.Aliases, Snapshot.Validate, removal guard 2 percent
B->>B: bundle.Write snapshot, delta and v2 chunks, WriteAliases
B->>SRC: buildVulnIDs (advisory database), buildIntel (KEV, EPSS)
B->>B: a failed side source is skipped or carried forward, never fails the build
B->>P: upload-artifact out/ (unsigned)
P->>P: vulnfeed sign: key must be listed in the key set, DSSE-sign pointer and manifests, copy the key set
P->>P: vulnfeed verify --dir out, as a platform verifies
P->>R: publish-release.sh: draft, upload missing assets, publish
P->>R: delete releases beyond the newest 72
vulnfeed signrefuses a key that is not in the key set the pinned root signed (bundle.Sign). Optional manifests (delta, aliases, vulnerability ids, KEV and EPSS) are signed when present.--allow-mass-change(the workflow'sallow_mass_changeinput) is the only way past the removal guard; use it only after checking the source.- Platforms read
releases/latest, which never names a draft, so a half-uploaded release is never imported.
How a platform downloads and verifies a release: Feed delivery on docs.openctem.io.
Nothing is installed on your hosts: the platform downloads (or, air-gapped,
reads) a release of the feed, verifies it against the root key id it pins and
imports it. The official root key id is built into the platform; set
VULNFEED_ROOT_KEY_ID only to trust a feed you sign yourself. Setup,
air-gapped use and how to check the import:
Vulnerability and program feeds
on docs.openctem.io.
| Asset | Content |
|---|---|
latest.dsse.json |
signed pointer: sequence, tag, snapshot and delta manifests, expiry |
snapshot.manifest.dsse.json |
signed manifest of the full snapshot (files, SHA-256, sizes, record counts, sources, stats) |
snapshot-{products,vulns,ranges}.jsonl.gz |
the full corpus |
delta.manifest.dsse.json, delta-*.jsonl.gz |
what changed since the previous sequence (each touched vulnerability with its complete new range set) |
keyset.dsse.json |
the key set the manifests are signed under |
aliases.manifest.dsse.json |
signed manifest of the alias dictionary: the bundle sequence it belongs to, the dictionary version (the release sequence the entries last changed in, so it only grows), the files below (SHA-256, sizes, counts) and the coverage stats |
aliases.jsonl.gz |
the alias dictionary: CNA vendor/product names (and alternate CPE products) → canonical CPE product |
aliases-state.jsonl.gz |
what each published CVE List record says about product identity (the learner's input, carried from release to release) |
vulnids.manifest.dsse.json |
optional signed manifest of the vulnerability id alias map (see below) |
vulnids.jsonl.gz |
the vulnerability id alias map: GHSA / OSV advisory id → the one CVE it aliases |
intel.manifest.dsse.json |
optional signed side manifest of the exploitation signals (see "KEV and EPSS side manifest") |
intel-kev.jsonl.gz, intel-epss.jsonl.gz |
the CISA KEV catalog and the FIRST EPSS scores, one entries file per stream |
latest.v2.dsse.json |
bundle v2: signed pointer that pins the digest of each v2 manifest |
snapshot.v2.manifest.dsse.json, delta.v2.manifest.dsse.json |
bundle v2: signed manifests listing, per record stream (products, vulns, ranges), the chunks with SHA-256, sizes, record counts and first and last record id |
sha256-<hex>.jsonl.gz |
bundle v2 chunks: gzip JSON Lines of the same records as v1, named by their digest |
Bundle v2 (OpenCTEM RFC-070) carries the same records as v1 in chunks of
about 2,000 records, split by record id: the same data always gives the
same chunks, and a changed vulnerability changes few chunks, so a consumer
fetches only the chunks it does not have. It is signed with the same keys
and key set as v1. v1 stays in every release for one release cycle and is
then removed; read v2 with the pkg/transfer/bundle consumer of the
OpenCTEM SDK. vulnfeed verify checks both formats.
A platform reads
https://github.com/openctemio/vulnfeed-bundles/releases/latest/download/latest.dsse.json
and the files of the release it names.
Cadence: a release every hour. Its delta is what changed in that hour; a platform that applied the previous release applies only the delta, one that fell behind takes the snapshot. The last 72 releases (three days) are kept; a bundle expires 7 days after it was made.
Record formats (one JSON object per line):
{"key":"cpe:a:f5:nginx","part":"a","vendor":"f5","name":"nginx","cpe_vendor":"f5","cpe_product":"nginx"}
{"id":"CVE-2021-23017","status":"Modified","published":"…","modified":"…","description":"…","cvss":{"version":"3.1","score":7.7,"vector":"CVSS:3.1/…"},"severity":"high","cwes":["CWE-193"]}
{"vuln":"CVE-2021-23017","product":"cpe:a:f5:nginx","scheme":"generic","start":"0.6.18","start_incl":true,"end":"1.20.1","end_incl":false,"edition":"","target":"","source":"nvd"}A range is an exact version, or a start and/or end bound with inclusive
flags, or neither ("all versions"); a vulnerability is affected when any of
its ranges covers the version. condition names a platform the product must
run on.
| Source | What it gives | How it is read |
|---|---|---|
| NVD CVE API 2.0 | CVE records, CPE configurations (ranges with source nvd), scores |
CVEs modified since the previous build, in windows of at most 120 days; at most every two hours (--nvd-min-interval), a build in between keeps the NVD cursor |
CVE List (CVE JSON 5.x, CVEProject/cvelistV5) |
the CNA's record: state (published or rejected), description, dates, CNA score (CVSS 4.0, 3.1, 3.0), CWEs, affected products and versions (ranges with source cve5) |
records changed by commits since the previous build, each checked against its git blob id; the first build, or a window with more changes than an incremental read takes, reads the daily baseline archive (checked against its published SHA-256) and the changes since |
Merge precedence (internal/collect/merge.go):
| Field | Winner |
|---|---|
| state | rejected when either source says so; a CVE List record published again restores the CVE |
| description, published date | the CVE List (the CNA's own text); NVD's copy when the CVE List record was not read in that build |
| modified | the later of the two |
| score, severity, CWEs | NVD when it has them; the CNA's only fill a CVE NVD has none for |
| affected ranges | NVD's CPE configurations whenever NVD has any for the CVE; the CNA's affected data only for a CVE without them |
A CVE's ranges come from one source, never a mix. CNA affected data becomes
ranges only where it is comparable: an affected statement with a CPE, or a
vendor and product name (written in the CPE naming convention, legal-form
words such as "Inc." or "Corporation" and parenthesised qualifiers dropped;
see the alias dictionary below), and a
version, lessThan or lessThanOrEqual bound of type semver, custom or
none. Statements with status changes, other version orderings (git, rpm,
maven, ...), commit hashes, packages (packageName) and placeholder names
are dropped, never widened to "all versions". So is a range with no bound
(0 or * up to *), and an open-ended range (lessThan: "*") in an item
that also states unaffected versions inside it (backported fixes), since the
bundle cannot carry that subtraction. The default status never becomes a
range.
Beyond what becomes ranges, each CVE List record keeps, cleaned and capped,
its references, the CNA's complete affected list (vendor, product, package
name and collection URL, CPEs, platforms, default status, every version
statement with its type, bounds and status changes) and its ADP containers
(score, CWEs, affected items with CPEs, SSVC decision points), in
cve5.Record (References, Affected, ADP). They are not yet carried:
the record format is decoded strictly by platforms, so new fields (references,
package products, advisory aliases) come with the next record format
version. CISA KEV and EPSS are not part of the record format: they travel as
a signed side manifest (see "KEV and EPSS side manifest"). OSV (package ecosystems) needs package (purl) products and ecosystem
version schemes in that format and is not collected yet.
Terms and attribution: NOTICE.
Most new CVE records carry no CPE: they name the product only by the CNA's
vendor and product strings, which often differ from the CPE names platforms
see ("Google Inc." / "Chrome", "Linux" / "Linux" for the kernel). The alias
dictionary (internal/alias, OpenCTEM RFC-066 §5.6) maps those names to
the canonical CPE product:
| Basis | Rule |
|---|---|
curated |
a reviewed entry in internal/alias/curated.tsv; never overridden |
learned |
the name and one CPE product appear for the same affected item (its own CPEs, the ADP's CPEs for it, or the only NVD product of a CVE with one unnamed CNA product) in at least 3 CVEs, with at least 90% agreement |
part |
the same vendor:product is a known CPE product under another part (operating system, hardware) |
variant |
the product name without the vendor's name in front ("Microsoft Edge") or without a generic trailing word ("NX-OS Software") is a known CPE product of the same (or mapped) vendor |
vendor |
the CNA vendor maps to a CPE vendor (curated, or learned from at least 5 CVEs at 90%) and vendor:product is a known CPE product |
Every build learns from the CVE List records it reads (kept per CVE in
aliases-state.jsonl.gz, so a record read again replaces its evidence),
rewrites the CVE List ranges of a mapped name to the canonical product, and
publishes the entries with a version that grows whenever they change. A name
nothing resolves keeps its name-derived product (the CVE is published, and
matches once a later dictionary resolves it) and is listed in the stats.
Coverage, in the stats and the build log, is the share of published CVE List
records that name a CPE product or a resolved name, or name no product at
all (placeholders such as "n/a", or only a package name): the target is 95%.
The stats also count, among the unresolved, the CVEs whose vendor no CPE
product uses at all (new_vendor: no CPE identity exists to resolve to).
Measured on a full first build (2026-10-18: 391,285 published CVE List
records, NVD and the CVE List baseline): 7,520 entries; coverage 90.7%
(96.3% counting new_vendor); 17,001 CVEs that name their product only by
CNA strings resolve to a CPE product through an entry. For CVEs of 2026
alone: 74,906 published, 12,004 resolve through an entry, coverage 79.1%
(91.9% counting new_vendor). The most frequent unresolved names are
combined product lists and products no CPE names yet; they are the input for
curated entries.
The inputs are public advisory text: names are sanitised and normalised,
malformed CPE values dropped, every learned mapping needs repeated agreeing
evidence, curated entries win, no learned entry is made for a name that is
itself a known CPE product (only a curated entry can repoint one), and the
dictionary is signed with the bundle keys and bound to the release sequence.
Each entry carries its basis: a platform lets only curated entries fold a
product that has data of its own and holds the rest for review.
go build -o vulnfeed ./cmd/vulnfeed
gh release download --repo openctemio/vulnfeed-bundles --dir bundle
./vulnfeed verify --dir bundle --root-key-id "$(cat keys/root-keyid.txt)"Bundles are reproducible from the public sources: rebuilding from the same previous release and source data gives byte-identical record files.
go test ./... go build -o vulnfeed ./cmd/vulnfeed ./vulnfeed build --out out --trial-since 24h # a trial: CVEs modified in the last day
GITHUB_TOKEN (any token, no scopes needed) raises the GitHub API rate
limit for the CVE List; --cve-list=false builds from NVD alone.
A key is needed only to sign; see keys/README.md.
See SECURITY.md for the trust model (offline root, key sets, rollback and freeze protection) and how to report a problem.
Apache-2.0 (the code). The data keeps its sources' terms; see NOTICE.
What: an optional signed side manifest with two streams: the CISA Known
Exploited Vulnerabilities catalog (kev, full list every release, about
1.5 thousand rows) and the FIRST EPSS scores (epss, full file, about 400
thousand rows). The corpus format stays v1, so a platform that does not know
the manifest ignores the files. A platform that does know it imports the
streams and uses its own direct fetch only as a fallback.
Sources: www.cisa.gov (the catalog JSON; if its firewall refuses the
runner, the cisagov mirror on GitHub) and epss.empiricalsecurity.com (the
daily gzipped CSV). Only these hosts are fetched and followed. EPSS is read
once a day: a build whose previous release already holds scores from the
last 20 hours carries them forward.
Files, next to the release:
intel.manifest.dsse.json: DSSE envelope, same online key and key set, payload typeapplication/vnd.openctem.vulnfeed.intel+json. Payload:{"schema":"openctem.vulnfeed.intel/v1","sequence":N,"created_at":...,"expires_at":...,"streams":[{"name":"kev","as_of":...,"fetched_at":...,"version":"2026.10.24","attribution":"...","file":{"name":"intel-kev.jsonl.gz","sha256":...,"size":...,"records":...}}]}.sequenceis the release sequence; validity is the bundle's (7 days).as_ofis the data date of the stream: KEV'sdateReleased, EPSS'sscore_date. A platform applies a stream only whenas_ofis newer than the date it holds, and skips a stream name it does not know.fetched_atis when the collector last read the source successfully (the build time of a fresh stream; a carried-forward stream keeps its earlier value), so a platform can tell a current stream whose publisher has not changed it from a stream that stopped updating.intel-kev.jsonl.gz: gzip JSON Lines sorted bycve:{"cve":"CVE-2021-44228","vendor":...,"product":...,"name":...,"description":...,"date_added":"2021-12-10","due_date":"2021-12-24","ransomware":"Known","notes":...,"cwes":["CWE-20"]}.intel-epss.jsonl.gz: gzip JSON Lines sorted bycve:{"cve":"CVE-2021-44228","epss":0.94358,"percentile":0.99978}(both fractions between 0 and 1, as FIRST publishes them).
Guarantees:
- Every record is validated before signing (id shape, ranges, no duplicate, size caps). A KEV catalog under 500 entries or an EPSS file under 100,000 rows is refused as truncated.
- A snapshot under 90 % of the previous release's record count is refused, and so is a data date older than the previous release's.
- A refused or unreadable source is not published: the previous release's
verified copy is carried forward with its older
as_of(a platform sees the age and may fall back to a direct fetch). A failure never fails the build. vulnfeed verifychecks the signature, the sequence, the digests and every record of every stream it knows (an unknown stream is reported and skipped).- Attribution of both sources is in
NOTICE, in the release notes and in the signedattributionof each stream.vulnfeed build --intel=falseleaves the streams out.
What: a hand-written, reviewed, product-level statement about a
vulnerability, published as the cards stream of the side manifest above.
A card can exist before a CVE record or a CPE does, and groups the CVE ids of
one story (one alert per organization and card on the platform).
A card holds: an id (OCA-YYYY-NNNN), a revision, a title and nicknames,
the affected products by catalog key (part:vendor:product), the affected
and fixed versions per branch (or not_published), the configuration each
vulnerability needs (a closed list: http2_enabled, http3_enabled,
mail_proxy_auth_http, resolver_runtime_dns, kernel_sctp_reachable,
other with a note), the exploitation status (none, poc_public,
weaponised, exploited_itw, vendor_confirmed_exploited), links to public
proof-of-concept write-ups (metadata only: nothing is downloaded or stored),
workarounds and what each one blocks, detection ideas, the sources, the
review record and a revision history. Every fact cites at least one source.
Schema: openctem.advisory-card/v1 (internal/card); the format grows only
by optional fields while the contract stays v1.
How a card is published:
- Write
cards/OCA-YYYY-NNNN.jsonwithreview.statein_reviewand open a pull request. The "Advisory cards" check runsvulnfeed cards check --base <base branch cards> cards. - Fast lane: when every fact cites a vendor, CNA or CERT source, the card may
ship as
reported(no reviewer fields). Platforms show it as "reported, not yet reviewed" and use it for alerts only: no findings, no score from its exploitation status, no grouping of the CVE alerts and no automatic scan. - A reviewer checks every fact against its cited source, then sets
review.statetoreviewedwithreviewed_by,reviewed_atandmode:two_person(reviewer is not the author) orsingle_review(the author reviewed it; allowed, and visible as such on every platform). The reviewer must be listed incards/REVIEWERS; the builder and the check refuse any other handle.cards/(the cards and the allowlist) is code-owned (.github/CODEOWNERS). vulnfeed build --cards cardspublishes the reported, reviewed and withdrawn cards in the next release. Cards in review are never published.- A correction is a new revision with a history note. A card is never
deleted: it is withdrawn (a new revision with
withdrawn_reason), and a platform closes its alerts with that reason.
Checks before signing (internal/card):
- strict JSON, at most 64 KiB per card and 2,000 cards;
- ids, vulnerability ids (CVE, GHSA), product keys and versions by pattern;
- display text without control, bidirectional, zero-width, line or
paragraph separator characters, without markup brackets and without links
(
://,www.), within per-field caps; links only inurlfields, absolute https without credentials; - no date later than the build time plus one hour (a mistyped year would
otherwise date the stream in the future, and platforms refuse a manifest
with a stream dated more than 48 hours ahead); the stream's data date is
capped at the build time,
vulnfeed verifyapplies the platform's 48-hour rule, and a previous stream dated in the future is never carried forward; - affected products and ranges need a vendor, CNA or CERT source, or two
publishers;
exploited_itwandvendor_confirmed_exploitedlikewise;poc_publicandweaponisedneed at least one link; - a build (against the previous release) and the pull request check
(against the base branch) refuse a card set that drops a published card,
rolls a revision back, or changes or withdraws a card without a new
revision: at an equal revision the card must be byte-identical (canonical
JSON), and a new revision moves
updated_atforward and records it as the last history entry; the previous release's cards are then carried forward.
Planned: a card whose every fact comes from structured, signed or authoritative machine-readable vendor data (CSAF, OSV or GHSA records with explicit ranges) may be published as reviewed by rule, recorded as such and never as a person. Facts taken from free text keep needing a person's review.
What: an optional signed map from an advisory id (a GHSA id, or an OSV
ecosystem id: PYSEC-, GO-, RUSTSEC-, GSD-, OSV-) to the single CVE it
aliases. A platform uses it to key a report that only knows a GHSA- or
OSV id on the CVE, so two tools reporting the same flaw share one canonical
id. It is used only to choose a finding's canonical id.
Source: the GitHub Advisory Database (advisories/github-reviewed/ of
github/advisory-database, CC-BY 4.0, see NOTICE), read as one streamed
archive of the default branch. If the read fails the release is published
without the map (the log says why); a platform treats the map as optional.
Files, next to the release:
vulnids.manifest.dsse.json: DSSE envelope, same online key and key set as the alias dictionary manifest, payload typeapplication/vnd.openctem.vulnfeed.vulnids+json. Payload:{"schema":"openctem.vulnfeed.vulnids/v1","sequence":N,"version":V,"created_at":...,"expires_at":...,"files":[{"name":"vulnids.jsonl.gz","sha256":...,"size":...,"records":...}],"stats":{"advisories":N,"published":N,"over_broad":N,"no_cve":N}}.sequenceis the release sequence (a platform accepts the map only for the release its verified pointer names);versiononly grows and changes only when the entries change; validity is the bundle's (7 days).vulnids.jsonl.gz: gzip JSON Lines, at most 2,000,000 records and 32 MiB compressed, sorted byid, no duplicate id:{"id":"GHSA-8gq3-9chp-cf2j","cve":"CVE-2024-1234","source":"ghsa"}.sourceisghsaorosv.
Guarantees:
- One CVE per id. An advisory whose
aliasesname two or more different CVEs is over-broad and omitted (stats.over_broad), as is one whose copies in the source disagree; one with no CVE alias is omitted (stats.no_cve). Onlyaliasescount, neverrelatedorupstream. - Withdrawn advisories are omitted. Malicious-package ids (
MAL-) are skipped: they have no CVE meaning. Distro advisory ids (DSA, RHSA, USN, ALAS, SUSE ...) are never ids. - GHSA ids are normalised to the upper-case prefix and lower-case body; CVE ids are upper-case.
- The same input gives a byte-identical entries file (fixed gzip header, sorted records), hence the same SHA-256.
vulnfeed verifychecks the signature, the sequence, the file digest, size and record count, and every entry.