Skip to main content

Supply-chain dependency firewall for: Python, Node.js, Ubuntu, Debian, Red Hat, Almalinux, Rocky Linux, Alpine, and Docker.

Project description

UBEL ( Unified Bill / Enforced Law ) – Multi‑Ecosystem Security & Policy Enforcement CLI

Ubel is a fast, cross‑ecosystem security engine that resolves dependencies, generates PURLs, scans them through OSV.dev, and enforces security policies during installation to prevent supply-chain attacks. It works with:

  • PyPI via: ubel-pip
  • npm via: ubel-npm or ubel-pnpm or ubel-bun or ubel-yarn
  • Linux distributions via: ubel (Ubuntu-based, Debian-based, RHEL, AlmaLinux, Rocky-Linux, and Alpine)
  • Docker via: ubel-docker (if the image is based on one the mentioned Linux distros above)

Ubel runs in CLI, automation scripts, and CI/CD pipelines, producing clean JSON and PDF reports.


✨ Features

  • Full dependency resolution across ecosystems
  • OSV.dev vulnerability scanning (batch API)
  • Policy engine (block/allow by severity & infection)
  • Checking linux-package or node/python dependency or entire project (check mode)
  • Install‑time enforcement (install mode)
  • Project‑level/Host-level/kernal-level/Docker-level scanning (health mode)
  • Catches Non-CVEs
  • It is a supply-chain protection tool
  • Automatic report generation (JSON + PDF)
  • Extremely fast (seconds per scan)

📦 Installation

pip install ubel

If you are on Linux, you need to:

  • setup a virtual envirenment: python3 -m venv venv
  • run enable the virtual envirenment source venv/bin/activate
  • then run: pip install ubel

Ubel exposes binaries:

  • ubel (Linux package scanning and OS-level operations: Ubuntu-based , Debian-based, Red Hat, Almalinux, Rocky-Linux, and Alpine )
  • ubel-pip (Python ecosystem)
  • ubel-npm (Node.js ecosystem)
  • ubel-pnpm (Node.js ecosystem)
  • ubel-bun (Node.js ecosystem)
  • ubel-yarn (Node.js ecosystem)
  • ubel-docker (Docker)

🚀 Usage Overview

Main CLI

usage: ubel [-h] {check,install,health,init,allow,block} [extra_args ...]

PyPI CLI

usage: ubel-pip [-h] {check,install,health,init,allow,block} [extra_args ...]

npm CLI

usage: ubel-npm [-h] {check,install,health,init,allow,block} [extra_args ...]
usage: ubel-pnpm [-h] {check,install,health,init,allow,block} [extra_args ...]
usage: ubel-bun [-h] {check,install,health,init,allow,block} [extra_args ...]
usage: ubel-yarn [-h] {check,install,health,init,allow,block} [extra_args ...]

docker CLI

usage: ubel-docker [-h] {health} <docker_image>

🧠 Commands Explained

check

Resolve dependencies/linux-packages → generate report → exit.

Python example:

ubel-pip check

If no extra arguments are passed, Ubel will:

  • Detect requirements.txt
  • Resolve all packages
  • Scan them
  • Output PDF + JSON

npm example:

ubel-npm check flask==3.1.0

If no args are passed, it will detect package.json automatically.


install

Same as check, but enforces policies and either blocks or allows installation.

Python example:

ubel-pip install flask==3.1.0

Or auto-detect project requirements:

ubel-pip install

npm example:

ubel-npm install express@5.0.0

Or simply:

ubel-npm install

(uses package.json automatically)


health

Scan the entire machine or running project, including:

  • Installed PyPI packages
  • Installed NPM packages
  • OS-level packages (Ubuntu-based/Debian-based/RHEL/AlmaLinux/Rocky-Linux/Alpine)
  • Docker-level packages (Ubuntu-based/Debian-based/RHEL/AlmaLinux/Rocky-Linux/Alpine)

Example: ( for linux )

ubel health

or ( for node.js app )

ubel-npm health

or ( for python app )

ubel-pip health

This mode produces large, detailed inventories and vulnerability matrices.


init

Initialize a policy file for the project or system.

Example:

ubel init

Creates default policy:

infections: block
severity:
  critical: block
  high: block
  medium: allow
  low: allow
  unknown: allow

allow / block

Override Ubel's decision from CI/CD or scripted pipelines.

The arguments can be: "low", "medium", "high", "critical".

Example:

ubel block high critical

📁 Automatic Project Detection

For npm and PyPI, when running:

  • install
  • check

without arguments:

Ubel automatically loads:

  • package.json (for npm)
  • requirements.txt (for pip)

This makes it ideal for CI/CD workflows.


📤 Output

Ubel generates:

1. JSON report

Machine‑readable, includes:

  • dependency list
  • purls
  • vulnerabilities
  • severity
  • infection state
  • policy decision
  • Generate complete SBOM-like machine inventory

2. PDF report

Human‑readable, includes:

  • summary statistics
  • per‑dependency vulnerability details
  • fix recommendations
  • tables
  • OSV reference links
  • Generate complete SBOM-like machine inventory

🧩 Ecosystem Tools

  • ubel → system packages, Linux distros
  • ubel-pip → PyPI projects, virtual environments\
  • ubel-npm → Node.js, npm, package.json projects
  • ubel-pnpm → Node.js, npm, package.json projects
  • ubel-bun → Node.js, npm, package.json projects
  • ubel-yarn → Node.js, npm, package.json projects
  • ubel-docker → Docker

Ubel – Secure every dependency, before it reaches production.

Project details


Download files

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

Source Distribution

ubel-0.6.0.tar.gz (26.1 kB view details)

Uploaded Source

Built Distribution

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

ubel-0.6.0-py3-none-any.whl (28.3 kB view details)

Uploaded Python 3

File details

Details for the file ubel-0.6.0.tar.gz.

File metadata

  • Download URL: ubel-0.6.0.tar.gz
  • Upload date:
  • Size: 26.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for ubel-0.6.0.tar.gz
Algorithm Hash digest
SHA256 219aae924dc54d220398dab8368b3a157bec022fc5a83316b63d20b72e497600
MD5 cb079d40a433ab6e1baee40703f672fa
BLAKE2b-256 75e2c5b4a381f655eced168e455b704cf37a0bae053ccc77cbce72ee25f10f68

See more details on using hashes here.

File details

Details for the file ubel-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: ubel-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 28.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for ubel-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2a574f8f7df0f09093e106c2d7891894da0431f6a24ae9dd8c04d23ad8e11277
MD5 62e8db132cdd50025073842c5b274b28
BLAKE2b-256 cd044a02ac49bb4d96502d16f9f40e16f8d3b353e6b3ee06fa18cb95e3afb2d7

See more details on using hashes here.

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