AI/ML model supply-chain security and provenance vetting CLI
pip install bee-guard==0.14.1 Copy PIP instructions
BEE is a production-ready CLI tool for comprehensive security vetting of AI/ML model artifacts. Detect malicious code, track provenance, enforce policies, and generate security reports.
pip install bee-guard # or with uv uv pip install bee-guard Quick Start 1. Scan a Model File # Scan a single file bee scan model.gguf # Scan a directory recursively bee scan ./models/ # Get JSON output for downstream tools bee --format json scan model.safetensors 2. Vet with Security Gate # Vet and apply policy bee vet --policy security-policy.yaml model.gguf # Fail on high/critical findings bee vet model.gguf --fail-on high 3. Generate Reports # Generate HTML report bee report --scan model.gguf -o security-report.html # Generate model card from scan bee modelcard --scan model.gguf -o README.md 4. Validate Policies # Check policy YAML syntax bee policy security-policy.yaml Commands Command Purpose bee scan Scan model files for security issues bee inspect Inspect model artifact metadata bee vet Full security vetting with policy support bee report Generate HTML security report bee modelcard Generate BEE-compliant model card bee policy Validate security policy YAML bee verify Verify signed model files bee sign Digitally sign model artifacts bee keygen Generate signing keypair bee history Show scan history from database bee show Display scan results by ID bee ollama vet Vet local Ollama models (experimental) Policy Example integrity: require_sha256: true provenance: require_publisher: false require_repository: false require_revision: false formats: blocked: ["pickle"] findings: critical: block high: block medium: review low: allow info: allow custom_code: allowed: true licenses: allowed: ["MIT", "Apache-2.0"] vulnerabilities: critical: block high: block medium: allow low: allow Save as policy.yaml and use:
bee vet --policy policy.yaml model.gguf Threat Model BEE detects and prevents:
{ "id": "run-abc123", "target": "model.gguf", "verdict": "allow", "decision": "allow", "findings": [...], "severity_count": { "critical": 0, "high": 0, "medium": 0, "low": 0, "info": 0 }, "provenance": {...}, "timestamp": "2026-09-22T15:30:00Z" } Text Mode (default) BEE SCAN Target: model.gguf Artifacts scanned: 1 ┏━━━━━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━┳━━━━━━━━━━┓ ┃ PATH ┃ FORMAT ┃ SIZE ┃ FINDINGS ┃ ┡━━━━━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━╇━━━━━━━━━━┩ │ model.gguf │ gguf │ 5.2G │ - │ └───────────────┴────────┴──────┴──────────┘ Findings: 0 critical, 0 high, 0 medium, 0 low, 0 info Development Install from source git clone https://github.com/Aj7Ay/BEE.git cd BEE uv install Run tests uv run pytest Run linting uv run ruff check src/ License Apache License 2.0 — see LICENSE file
We welcome contributions. Please open an issue or submit a pull request on GitHub.
Report security vulnerabilities to security@example.com. Do not open public issues for security bugs.
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 22, 2026.




