Skip to main content

sbomdrift

What became vulnerable since last time?

Vulnerability scanners answer what is vulnerable now. They are stateless, so they cannot answer the question that actually reaches an on-call engineer: what changed? A build that was clean last Tuesday and is not clean today has a story, and no one-shot scan can tell it.

sbomdrift stores the component inventories described by your SBOMs, re-evaluates them against OSV.dev, and reports the diff between two evaluations:

DRIFT  python:3.11-slim   2026-03-01 → 2026-07-24

  + newly vulnerable   3
      CRITICAL  CVE-2026-1234   pkg:deb/debian/libssl3@3.0.11-1
      HIGH      CVE-2026-2233   pkg:pypi/requests@2.31.0
      MEDIUM    GHSA-xxxx-yyyy  pkg:pypi/urllib3@2.0.7

  - newly fixed        1
      HIGH      CVE-2025-9999   pkg:deb/debian/zlib1g@1:1.2.13

It is one pip install, one SQLite file and no server.

Install

pip install sbomdrift        # or: uv tool install sbomdrift

Use

# 1. Remember what an artefact contained
sbomdrift ingest sbom.cdx.json --artefact python:3.11-slim

# 2. Ask the oracle — twice, at two points in time
sbomdrift eval --as-of 2026-03-01 --label march
sbomdrift eval --label today

# 3. What changed?
sbomdrift diff --from march --to today

In CI, --fail-on HIGH makes the command exit non-zero when drift introduces a new finding at or above that severity — so a pipeline breaks on new risk rather than on the accumulated backlog it already knew about.

Metrics

sbomdrift metrics                              # exposition format on stdout
sbomdrift metrics -o /var/lib/node_exporter/sbomdrift.prom

A scheduled job cannot be scraped: by the time Prometheus calls, the process has exited. So metrics writes the numbers out instead, for the node exporter's textfile collector or a Pushgateway to carry.

Everything emitted is a gauge. sbomdrift_findings{artefact,severity} publishes a zero for every severity rather than omitting empty ones, because an absent series cannot make an alert rule fire, and sbomdrift_last_evaluation_timestamp_seconds exists so you can alert on the scan having stopped — which is the failure you are least likely to notice on your own.

Historical --as-of evaluations are excluded: they describe the past deliberately, and letting one set the current gauge would make a dashboard assert something about now that the tool never claimed.

Two kinds of drift

Kind What it answers How
Version drift what changed when the artefact moved two snapshots (different digests), one evaluation date
Time drift what became vulnerable while the artefact stood still one snapshot, two evaluation dates (--as-of)

--as-of reconstructs history from OSV's own published timestamps, so temporal drift is demonstrable immediately instead of after a month of waiting — and it makes drift deterministically testable, which is why the test suite can assert an exact diff.

Caveat, stated plainly: OSV records are amended over time. --as-of filters on publication date, so it reconstructs when an advisory became known, not the exact data an evaluation would have returned on that day.

Where the history lives

The store is a single SQLite file. CI runners are ephemeral, so sbomdrift can pull that file from S3 at the start of a run and push it back at the end:

sbomdrift pull s3://my-bucket/drift/history.db
... ingest / eval / diff ...
sbomdrift push s3://my-bucket/drift/history.db

Requires the s3 extra (pip install "sbomdrift[s3]") and credentials from the standard AWS chain — in GitHub Actions, short-lived OIDC credentials.

How it compares

Tool Answers Needs
Grype, Trivy is this vulnerable now nothing — but no memory, no diff
sbomgr, bomctl which SBOM contains X nothing — but not "what changed"
OWASP Dependency-Track drift, and much more a server, a database, a frontend
AWS Inspector drift, for images in ECR an AWS account; per-scan pricing
sbomdrift what changed one CLI and one file

Licence

Apache-2.0.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sbomdrift-0.1.3.tar.gz (131.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sbomdrift-0.1.3-py3-none-any.whl (37.7 kB view details)

Uploaded Python 3

File details

Details for the file sbomdrift-0.1.3.tar.gz.

File metadata

  • Download URL: sbomdrift-0.1.3.tar.gz
  • Upload date:
  • Size: 131.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for sbomdrift-0.1.3.tar.gz
Algorithm Hash digest
SHA256 6796b87af54b9eca60e11d4facbe2ec8f172c5b912aea5e5a88518a80577afcf
MD5 2ce12401252703daf8ee4b36088b46ed
BLAKE2b-256 07c1a952888ad90309e241fb5c98ecbc5ba5e84591c3374f34626467df49cfda

See more details on using hashes here.

Provenance

The following attestation bundles were made for sbomdrift-0.1.3.tar.gz:

Publisher: publish.yml on EngineerSamet/sbomdrift

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sbomdrift-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: sbomdrift-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 37.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for sbomdrift-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 024aee1323ee9c635ec54a31a1b4d601419ca8df1bc7777ee19619ba3d284f66
MD5 215a3e22bd88f64006f277527926be0a
BLAKE2b-256 90682c88e62c9cb2a4937cdd889c1e284c35a4a41e479fd42ba8fc8c004f6edc

See more details on using hashes here.

Provenance

The following attestation bundles were made for sbomdrift-0.1.3-py3-none-any.whl:

Publisher: publish.yml on EngineerSamet/sbomdrift

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page