Know your SBOM before your auditor does.
140 quality checks across CycloneDX and SPDX, three compliance profiles, 16 output formats, zero dependencies. Scores your software bill of materials on a 0-100 scale and tells you exactly what to fix.
SBOM generators produce output. bomprobe tells you if that output is any good.
Most teams generate a CycloneDX or SPDX file, check the box, and move on. But regulators (EU CRA, NTIA, BSI TR-03183) expect specific fields to be present, and downstream consumers (Dependency-Track, GUAC, Grype) produce better results when the BOM is complete. bomprobe catches what your generator missed before it reaches production.
It runs entirely offline, has zero npm dependencies, and works as a CLI, CI quality gate, or Node.js library.
npm install -g bomprobeOr run without installing:
npx bomprobe sbom.jsonOr use as a project dependency:
npm install --save-dev bomprobe# Score an SBOM
bomprobe sbom.json
# Check NTIA minimum elements
bomprobe sbom.json --profile ntia
# Get JSON output for CI pipelines
bomprobe sbom.json --format json
# Fail CI if score is below 70
bomprobe sbom.json --threshold 70
# Output SARIF for GitHub code scanning
bomprobe sbom.json --format sarif > results.sarifbomprobe <file> [options]
Options:
--format <fmt> Output format (text, json, markdown, csv, sarif, html,
junit, gitlab, github, badge)
--profile <name> Compliance profile (ntia, bsi, eucra)
--threshold <n> Fail if score below n (0-100)
--fail-on <level> Fail on severity (error, warning, info, none)
--preset <name> Config preset (strict, moderate, minimal, ci, audit)
--exclude <ids> Skip checks by id (comma-separated)
--only <ids> Run only these checks (comma-separated)
--no-color Disable colored output
--quiet Suppress non-essential output
--output <file> Write output to file instead of stdout
--list-checks List all available checks
--list-profiles List compliance profiles
--list-formats List output formats
--help Show help
--version Show version
| Format | Flag | Use case |
|---|---|---|
| Text | --format text |
Terminal, human review |
| JSON | --format json |
CI pipelines, scripting |
| Markdown | --format markdown |
PR comments, docs |
| CSV | --format csv |
Spreadsheet import |
| SARIF | --format sarif |
GitHub code scanning |
| HTML | --format html |
Standalone reports |
| JUnit | --format junit |
CI test runners |
| GitLab CQ | --format gitlab |
GitLab Code Quality |
| GitHub | --format github |
GitHub Actions annotations |
| Badge | --format badge |
shields.io badge URLs |
bomprobe runs 140 checks organized into categories:
Component checks - name, version, supplier, license, purl, cpe, hashes, type, scope, description, copyright, external refs, dependencies, group, namespace, ecosystem, ownership, integrity, build reproducibility, distribution, attestation, version range, and more.
Metadata checks - author, timestamp, tools, serial number, lifecycle, manufacture, composition, BOM format, version, identifier, completeness score.
Dependency checks - coverage, depth, orphans, cycles, scope mismatches, version conflicts, license conflicts.
SPDX checks - creator info, document namespace, relationships, data license, package verification, file info, annotations, extracted licenses, package originator, download location, supplier, license references.
License checks - expression validity, compatibility, deprecated licenses, copyleft detection, URL presence.
Each check has a weight (0.1-0.3) that contributes to the overall score. Heavier weights go to checks that matter more for supply chain security.
The U.S. National Telecommunications and Information Administration defined minimum elements every SBOM should have: supplier name, component name, version, unique identifier, dependency relationships, author, and timestamp.
bomprobe sbom.json --profile ntiaThe German Federal Office for Information Security's technical guideline for software bill of materials with stricter requirements around hashes, supplier URLs, and license information.
bomprobe sbom.json --profile bsiThe EU CRA mandates SBOMs for products with digital elements. bomprobe checks the fields that matter for CRA compliance: vulnerability disclosure contacts, update information, and complete dependency trees.
bomprobe sbom.json --profile eucrabomprobe loads config from three sources, with CLI flags winning:
- Environment variables (
BOMPROBE_FORMAT,BOMPROBE_THRESHOLD, etc.) - Config file (
.bomproberc,.bomproberc.json, orbomprobe.config.json) - CLI flags
Example .bomproberc.json:
{
"format": "json",
"threshold": 70,
"failOn": "error",
"exclude": ["component-description"]
}bomprobe sbom.json --preset strict # threshold 90, fail on warnings
bomprobe sbom.json --preset moderate # threshold 60, fail on errors
bomprobe sbom.json --preset minimal # threshold 30, fail on errors
bomprobe sbom.json --preset ci # threshold 70, json, quiet
bomprobe sbom.json --preset audit # threshold 0, no failures, markdown- name: Check SBOM quality
run: npx bomprobe sbom.json --threshold 70 --format github- name: Run bomprobe
run: npx bomprobe sbom.json --format sarif > results.sarif
continue-on-error: true
- name: Upload SARIF
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: results.sarifsbom-quality:
script:
- npx bomprobe sbom.json --format gitlab > gl-code-quality-report.json
artifacts:
reports:
codequality: gl-code-quality-report.jsonconst { runAll, getChecks } = require('bomprobe/src/checks');
const { calculateScore } = require('bomprobe/src/scoring/engine');
const sbom = JSON.parse(fs.readFileSync('sbom.json', 'utf8'));
// Run all checks
const results = runAll(sbom);
// Run with options
const filtered = runAll(sbom, {
exclude: ['component-description'],
only: ['component-name', 'component-version', 'component-purl']
});
// Calculate score
const score = calculateScore(results);
console.log(`Score: ${score}/100`);| Format | Versions | Detection |
|---|---|---|
| CycloneDX | 1.4, 1.5 | bomFormat field |
| SPDX | 2.2, 2.3 | spdxVersion field |
Both JSON encoding is supported. SPDX documents are normalized to a common internal format before checks run, so CycloneDX-specific and SPDX-specific checks both work correctly.
bomprobe/
bin/bomprobe.js CLI entry point
action.yml Reusable GitHub Action
src/
checks/ 140 quality checks + registry
analysis/ Supply chain depth, component age, config validation
baseline/ Baseline snapshots and regression detection
convert/ SPDX-to-CycloneDX converter
diff/ SBOM comparison engine
merge/ Multi-SBOM merge (union/intersect)
policy/ Policy engine with presets
report/ SARIF, JUnit report builders
scoring/ Weighted scoring, completeness, grades
stats/ Statistics and license risk analysis
tracking/ Quality trend tracking over time
vuln/ Vulnerability correlation
compliance/ NTIA, BSI TR-03183, EU CRA profiles
output/ 16 output formatters
cli/ Arg parsing, config, presets, help
utils/ BOM manipulation utilities
python/ Python wrapper (PyPI: bomprobe)
examples/ CI integration examples
test/ 1900+ tests, mirrored structure
Use bomprobe in your CI pipeline with no setup:
- uses: aks-builds/bomprobe@v1
id: audit
with:
sbom: sbom.json
profile: ntia
threshold: 70
- run: echo "Score: ${{ steps.audit.outputs.score }}, Grade: ${{ steps.audit.outputs.grade }}"See examples/github-action-usage.yml for a full workflow.
pip install bomprobe
bomprobe-py sbom.jsonOr use as a library:
from bomprobe import audit
result = audit("sbom.json", profile="ntia")
print(result["score"])Requires Node.js 18+ installed (the Python wrapper calls the Node.js CLI).
git clone https://github.com/aks-builds/bomprobe.git
cd bomprobe
node --test # 1900+ tests, zero deps
node bin/bomprobe.js test/fixtures/realistic-webapp.jsonNo build step. No transpilation. Node.js 18+ with node:test and node:assert.
See CONTRIBUTING.md for the full guide. The short version:
- Fork the repo
- Create a feature branch (
git checkout -b feat/my-check) - Add your check in
src/checks/with a matching test intest/checks/ - Register it in
src/checks/index.js - Make sure
node --testpasses with zero failures - Open a PR
Look for issues labelled good first issue if you're not sure where to start.
MIT
