Update Schedule
DevGuard maintains its own aggregated vulnerability database. It's rebuilt every hour from upstream sources, signed, and published as an OCI artifact. DevGuard instances pull the latest build automatically.
Build Schedule
The vulnerability database is built by a GitHub Actions workflow that runs on a fixed schedule:
| Property | Value |
|---|---|
| Schedule | Every hour (0 */1 * * *) |
| Trigger | Cron schedule + manual dispatch |
| Pipeline | vulndb.yaml |
| Artifact registry | ghcr.io/l3montree-dev/devguard/vulndb/v6 |
The version in the path changes when the archive format changes. DevGuard releases up to v1.20 read vulndb/v5 or an older path, which are still published.
Data Sources Synced
Each build synchronizes the following upstream sources into a single PostgreSQL database:
| Source | Description |
|---|---|
| OSV | Open Source Vulnerabilities — covers npm, PyPI, Go, Maven, Cargo, NuGet, RubyGems, and many more ecosystems |
| Malicious Packages | Known malicious packages across ecosystems, from OSV |
| EPSS | Exploit Prediction Scoring System — probability that a CVE will be exploited in the wild |
| CISA KEV | Known Exploited Vulnerabilities catalog |
| EUVD | European Union Vulnerability Database — exploited vulnerabilities and CVE aliases |
| CSAF advisories | Security advisories from BSI (CERT-Bund) and NCSC (Netherlands) |
| ExploitDB | Public exploit database |
| GitHub PoC | Proof-of-concept exploits published on GitHub |
| Upstream VEX | VEX statements from rancher/vexhub |
For details on each data source and how they are used, see Data Sources.
Build Pipeline
The workflow executes the following steps in sequence:
- Migrate — Create the schema in a fresh PostgreSQL database using
devguard-cli migrate. - Export — Run
devguard-cli vulndb export --diffToPrevious. It imports the currently published build as a baseline, fetches all upstream sources, and computes the changes since the baseline. It also computes a row count and a checksum for each table. Everything is bundled intovulndb.tar.zst. - Sign — Sign the archive using Cosign with a private key. The signature is stored as
vulndb.tar.zst.sig. - Publish — Push the archive and its signature to the GitHub Container Registry using ORAS. Each build replaces the previous one under the
latesttag.
Distribution Format
The database is distributed as OCI artifacts via the GitHub Container Registry:
ghcr.io/l3montree-dev/devguard/vulndb/v6:latest # vulndb.tar.zst
ghcr.io/l3montree-dev/devguard/vulndb/v6:latest.sig # cosign signature
The archive is about 110 MB compressed and 1.2 GB unpacked. It contains:
| File | Contents |
|---|---|
osv.gob | OSV entries, including affected components, CVE relationships and malicious packages |
euvd_relationships.gob | CVE aliases from EUVD |
csaf_advisories.gob | CSAF advisories |
epss.gob | EPSS scores |
cisakev.gob | Known exploited vulnerabilities from CISA and EUVD |
exploits.gob | Exploits from ExploitDB and GitHub |
upstream_vex_rules.gob | Upstream VEX statements |
integrity_checks.json | Row count and checksum for each table, and the build timestamp |
quickdiff.gob | Changes since the previous build |
How DevGuard Instances Consume Updates
DevGuard server instances automatically pull and apply database updates:
- The API imports the database right after it starts and then every hour at minute 30. If you run several API instances, only one of them runs each import.
- It downloads the
latestarchive and its signature, and verifies the Cosign signature against the bundledcosign.pubpublic key. - If the build is the one it imported last (tracked in the
vulndb.lastRCImportconfig key), it stops. - In a single database transaction, it applies
quickdiff.gobif the instance holds the previous build. Otherwise it loads the full data set. - It recomputes the row count and checksum of each table and compares them with
integrity_checks.json. On a mismatch, the transaction is rolled back and the previous data stays in place. The checksums sort text in byte order, so they don't depend on the database's locale. - After a successful import, DevGuard rescans all SBOMs against the updated data.
To disable automatic updates (e.g., in air-gapped environments), set the environment variable DISABLE_VULNDB_UPDATE=true. See Database Maintenance for more details.
Signature Verification
Every database artifact is signed and verified before being applied:
- Signing: The build pipeline signs
vulndb.tar.zstusing Cosign with an ECDSA private key. The signature is base64-encoded and published alongside the archive. - Verification: On import, the DevGuard instance loads the
cosign.pubpublic key, downloads thelatest.sigartifact, and verifies the signature usingsigstore/sigstore. If verification fails, the update is rejected.
This ensures that only database artifacts built by the official pipeline are applied, protecting against supply chain attacks on the vulnerability data itself.