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.

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.1.tar.gz (126.1 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.1-py3-none-any.whl (33.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sbomdrift-0.1.1.tar.gz
  • Upload date:
  • Size: 126.1 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.1.tar.gz
Algorithm Hash digest
SHA256 ba26f97c621fa0bb1e90ac0b71b6670c68e8bf45530709ad0f00cd74bd26491e
MD5 03f02561d22cfc60e22f297f3e778574
BLAKE2b-256 aa12cb17b17e11671cb2b85c674f32bad0f25895b3b93ee172014f45c1d4dea7

See more details on using hashes here.

Provenance

The following attestation bundles were made for sbomdrift-0.1.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: sbomdrift-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 33.6 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1e4e99686cd02f16de8471c5592f7e943b5318202f5896a884192edcea816bfc
MD5 e9049b855059742bdbf98ab99a930fb2
BLAKE2b-256 93860fd397e7e1588c6107e9f9cebb88551ee8bb78e459cc36c93cb088f5c44a

See more details on using hashes here.

Provenance

The following attestation bundles were made for sbomdrift-0.1.1-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