This Python package was developed in the SAND5G project, which aims to enhance security in 5G networks.
SBOMPY is a Python-based, FastAPI service that can be triggered via HTTP to generate SBOMs for the Docker workloads currently running on a host. It is designed for platform-style deployments where verticals are deployed as containers and must be scanned and recorded as part of the operational flow.
Repository: https://github.com/ISSG-UPAT/SBOMPY
Project Website: https://sand5g-project.eu

SBOMPY runs as a container and connects to the host Docker daemon via the Docker socket. When triggered,
it discovers eligible containers, resolves their image identifiers (preferably digests), and generates
SBOMs using an external tool backend (syft or trivy). Outputs are persisted under /data
for later ingestion by the platform.
GET /health - Health checkPOST /sbom/discover - Preview containers to be scannedPOST /sbom/run - Start async SBOM generation jobGET /jobs/{job_id} - Poll job status and resultsGET /jobs - List recent jobsGET /sbom/artifacts - List all SBOM artifactsGET /sbom/artifacts/{run_id} - Get specific run artifacts/var/run/docker.sock:/var/run/docker.sock/datagit clone https://github.com/ISSG-UPAT/SBOMPY.git
cd SBOMPY
make compose-up
The service will be available at http://localhost:8080.
SBOMPY is configured via environment variables:
| Variable | Default | Description |
|---|---|---|
SBOMPY_HOST | 0.0.0.0 | Server host |
SBOMPY_PORT | 8080 | Server port |
SBOMPY_API_KEY | - | Optional API key for authentication |
SBOMPY_WORKERS | 2 | Number of background workers |
SBOMPY_TOOL_DEFAULT | syft | Default SBOM tool |
SBOMPY_FORMAT_DEFAULT | syft-json | Default output format |
Container discovery uses Docker labels for filtering:
sand5g.managed=true (default)sand5g.namespace=<vertical>curl http://localhost:8080/health
MIT License - see LICENSE file for details.
Copyright (c) 2026 ISSG University of Patras
Content type
Image
Digest
sha256:268590c82…
Size
137.7 MB
Last updated
3 months ago
docker pull issgupat/sbompy