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:

PropertyValue
ScheduleEvery hour (0 */1 * * *)
TriggerCron schedule + manual dispatch
Pipelinevulndb.yaml
Artifact registryghcr.io/l3montree-dev/devguard/vulndb/v6
Note

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:

SourceDescription
OSVOpen Source Vulnerabilities — covers npm, PyPI, Go, Maven, Cargo, NuGet, RubyGems, and many more ecosystems
Malicious PackagesKnown malicious packages across ecosystems, from OSV
EPSSExploit Prediction Scoring System — probability that a CVE will be exploited in the wild
CISA KEVKnown Exploited Vulnerabilities catalog
EUVDEuropean Union Vulnerability Database — exploited vulnerabilities and CVE aliases
CSAF advisoriesSecurity advisories from BSI (CERT-Bund) and NCSC (Netherlands)
ExploitDBPublic exploit database
GitHub PoCProof-of-concept exploits published on GitHub
Upstream VEXVEX statements from rancher/vexhub
Note

For details on each data source and how they are used, see Data Sources.

Build Pipeline

The workflow executes the following steps in sequence:

  1. Migrate — Create the schema in a fresh PostgreSQL database using devguard-cli migrate.
  2. 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 into vulndb.tar.zst.
  3. Sign — Sign the archive using Cosign with a private key. The signature is stored as vulndb.tar.zst.sig.
  4. Publish — Push the archive and its signature to the GitHub Container Registry using ORAS. Each build replaces the previous one under the latest tag.

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:

FileContents
osv.gobOSV entries, including affected components, CVE relationships and malicious packages
euvd_relationships.gobCVE aliases from EUVD
csaf_advisories.gobCSAF advisories
epss.gobEPSS scores
cisakev.gobKnown exploited vulnerabilities from CISA and EUVD
exploits.gobExploits from ExploitDB and GitHub
upstream_vex_rules.gobUpstream VEX statements
integrity_checks.jsonRow count and checksum for each table, and the build timestamp
quickdiff.gobChanges since the previous build

How DevGuard Instances Consume Updates

DevGuard server instances automatically pull and apply database updates:

  1. 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.
  2. It downloads the latest archive and its signature, and verifies the Cosign signature against the bundled cosign.pub public key.
  3. If the build is the one it imported last (tracked in the vulndb.lastRCImport config key), it stops.
  4. In a single database transaction, it applies quickdiff.gob if the instance holds the previous build. Otherwise it loads the full data set.
  5. 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.
  6. After a successful import, DevGuard rescans all SBOMs against the updated data.
Warning

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.zst using 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.pub public key, downloads the latest.sig artifact, and verifies the signature using sigstore/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.

Have feedback? We want to hear from you!

Fields marked with * are required