Inventory Backends
Core zerobom contains zero cloud provider SDKs. Every inventory integration implements InventoryBackend and is discovered dynamically via Python zerobom.backends entry points.
Backends normalize inventory records into AssetRef + InventoryComponent and return candidates for PackageQuery. All version matching stays inside zerobom.verify.osv_compiler.
Built-In Backends (Core Package)
local_sbom (Default)
Recursively parses CycloneDX (1.4–1.6) and SPDX (2.2–2.3) JSON files or directories with bounded file sizes (<= 50 MiB), nesting depth guards, and symlink/root-escape protection.
zerobom scan --osv advisory.osv.json --sbom ./sboms/
dependency_track
Queries OWASP Dependency-Track /api/v1/component/identity across projects with version-independent coordinate lookup (query_mode="coordinates" default, or "purl" opt-in), strict HTTPS/CA/TLS validation, and bounded pagination.
export ZEROBOM_DT_API_KEY="odt_..."
zerobom scan --osv advisory.osv.json \
--backend dependency_track \
--backend-opt base_url=https://dtrack.internal.example.org
oci_sbom
Fetches attached CycloneDX/SPDX SBOM artifacts and signed in-toto DSSE envelopes (up to bounded nesting depth <= 5) from OCI container registries with multi-arch platform filtering, Bearer realm pinning (allowed_auth_hosts), and SSRF-checked blob redirects.
zerobom scan --osv advisory.osv.json \
--backend oci_sbom \
--backend-opt images=ghcr.io/org/service:v1.2.3
k8s_sbom
Queries Kubernetes Trivy Operator sbomreports and optional clustersbomreports CRDs directly from kubeconfig (blocking unsafe exec plugins) or in-cluster ServiceAccount tokens.
zerobom scan --osv advisory.osv.json \
--backend k8s_sbom \
--backend-opt namespace=production \
--backend-opt include_cluster_reports=true
Optional Cloud Workspace Plugins
Install only the cloud adapter you need without pulling other cloud SDKs:
| Cloud | Install Extra | Backends | Key Options (--backend-opt) |
|---|---|---|---|
| AWS | zerobom[aws] |
aws_security_hub, aws_inspector_sbom, s3_sbom |
region_name, role_arn, account_ids, organization_id, report_id, trigger_export, bucket, prefix |
| GCP | zerobom[gcp] |
gcp_artifact_analysis, gcs_sbom |
project_id, location, mode, resource_uri_prefix, allowed_sbom_buckets, bucket, prefix, user_project, use_adc |
| Azure | zerobom[azure] |
azure_resource_graph, azure_blob_sbom |
subscriptions, management_groups, tenant_scope, cloud, account_name, container, prefix, use_default_credential |
Cloud Connector Capabilities & Auth
- AWS (
zerobom-aws): Supports cross-account STSAssumeRole(role_arn,external_id), AWS Organizations delegated-adminScopes(organization_id,organizational_unit_ids), Amazon Inspector2 SBOM exports (report_idread-only by default, or opt-intrigger_export=true), bounded.json.gzdecompression, and Glacier/Deep Archive skipping (skip_archived=true). - GCP (
zerobom-gcp): Bundlesgoogle-auth[requests]with automatic thread-safe ADC refresh, supportsZEROBOM_GCP_ACCESS_TOKEN/ZEROBOM_GCP_TOKEN/GOOGLE_OAUTH_ACCESS_TOKEN, regional Container Analysislocationendpoints,mode=sbom_reference/mode=both(with mandatorygs://+ SHA-256 verification),user_project, and concurrent.gzGCS streaming. - Azure (
zerobom-azure): Bundlesazure-identitywith automaticDefaultAzureCredentialrefresh, supportsZEROBOM_AZURE_ACCESS_TOKEN/ZEROBOM_AZURE_TOKEN/ZEROBOM_AZURE_SAS_TOKEN, sovereign clouds (cloud=usgov/china),management_groups&tenant_scope, quota-aware$skipTokenpacing (x-ms-user-quota-*), DefenderosPlatformdistro mapping, andArchive-tier Blob skipping. Note:azure_resource_graph(microsoft.security/softwareinventories) covers VM/Arc servers via Defender TVM; pair withoci_sbomorazure_blob_sbomfor container SBOMs.
Least-Privilege Cloud Scopes
- AWS (
zerobom-aws):securityhub:GetSoftwareV2,securityhub:GetSoftwareResourcesV2,inspector2:GetSbomExport(+inspector2:CreateSbomExportonly whentrigger_export=true), ands3:ListBucket+s3:GetObject. - GCP (
zerobom-gcp):roles/containeranalysis.occurrences.viewerandroles/storage.objectViewer. - Azure (
zerobom-azure):Reader+Security Readeron target subscriptions or management groups, andStorage Blob Data Readerfor Blob SBOM prefixes.
Plugin Code-Execution Trust Boundary
zerobom.backends plugins load dynamically via Python importlib.metadata entry points and execute in-process with the full privileges of the zerobom CLI/worker (plugins are not sandboxed). Install third-party backend packages only from trusted publishers.
For building your own enterprise or internal inventory plugin, see the Plugin Authoring Guide.