A vulnerability scan diffing library for container images and SBOMs
Project description
Diffused Library
The core Python library providing vulnerability scanning and diffing functionality for container images and SBOMs (Software Bill of Materials). This library enables programmatic access to vulnerability analysis capabilities.
Features
- 🔍 Vulnerability Scanning: Automated scanning of SBOMs using Trivy or scanning of container images using RHACS
- 📊 SBOM Diffing: Direct comparison of SPDX-JSON formatted SBOMs (Trivy only)
- 📄 Flexible Output: Programmatic access to vulnerability data
- 🐍 Python API: Clean, intuitive Python interface
Installation
Prerequisites
- Install the scanner:
- Trivy: Follow the official Trivy installation guide
- RHACS: Follow the official roxctl installation guide
- Python Environment: Ensure Python 3.12+ is installed
From Source
cd diffused
pip install -e .
From PyPI
pip install diffused-lib
Usage
Basic Library Usage
from diffused.differ import VulnerabilityDiffer
# Create a differ instance
vuln_differ = VulnerabilityDiffer(previous_image="ubuntu:20.04", next_image="ubuntu:22.04")
# Retrieve the vulnerabilities diff
vuln_differ.vulnerabilities_diff
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file diffused_lib-0.1.0.tar.gz.
File metadata
- Download URL: diffused_lib-0.1.0.tar.gz
- Upload date:
- Size: 14.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
71df13b3d48a705e799faf29fb8be80867b2012ef13489e3a0fb31ce2bcdcb58
|
|
| MD5 |
758a6e760860f4aa936ec1ff5b81e596
|
|
| BLAKE2b-256 |
20054caed13e1b5197545dce472825136173a9a3a1a7457545b222649d490f24
|
Provenance
The following attestation bundles were made for diffused_lib-0.1.0.tar.gz:
Publisher:
release.yml on konflux-ci/diffused
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
diffused_lib-0.1.0.tar.gz -
Subject digest:
71df13b3d48a705e799faf29fb8be80867b2012ef13489e3a0fb31ce2bcdcb58 - Sigstore transparency entry: 573132625
- Sigstore integration time:
-
Permalink:
konflux-ci/diffused@7aed7eed8b4829ebccd7b5f53bd1f6f3f14c4b5f -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/konflux-ci
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@7aed7eed8b4829ebccd7b5f53bd1f6f3f14c4b5f -
Trigger Event:
push
-
Statement type:
File details
Details for the file diffused_lib-0.1.0-py3-none-any.whl.
File metadata
- Download URL: diffused_lib-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8b2b4459bcae60a48fbfbb354bb3a7c47dd5b95c11d65c82b0148f0b479954f0
|
|
| MD5 |
0b78784247282f58b1bc6d321020279a
|
|
| BLAKE2b-256 |
cb6bbcaa66ea94e40f9b742d73c86680664bb4a65fd7d25735edb7e1bc7a960c
|
Provenance
The following attestation bundles were made for diffused_lib-0.1.0-py3-none-any.whl:
Publisher:
release.yml on konflux-ci/diffused
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
diffused_lib-0.1.0-py3-none-any.whl -
Subject digest:
8b2b4459bcae60a48fbfbb354bb3a7c47dd5b95c11d65c82b0148f0b479954f0 - Sigstore transparency entry: 573132719
- Sigstore integration time:
-
Permalink:
konflux-ci/diffused@7aed7eed8b4829ebccd7b5f53bd1f6f3f14c4b5f -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/konflux-ci
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@7aed7eed8b4829ebccd7b5f53bd1f6f3f14c4b5f -
Trigger Event:
push
-
Statement type: