Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
M

model-provenance-kit

> 安全
Open source

Toolkit to assess and determine model provenance

100 stars0 likes2 views
WebsiteGitHub

About

Toolkit to assess and determine model provenance

Model Provenance Kit

Part of Cisco AI Defense - Open-source AI security scanners, developer tools, and research from Cisco. Model Provenance Kit is a Python toolkit and CLI for detecting model provenance. It determines whether a machine learning model derives from a known base model family by comparing multi-signal fingerprints extracted from weights, tokenizers, and architecture metadata.

Key Features

  • Pairwise comparison: compare any two models head-to-head across 8 provenance signals.
  • Database scan: scan a model against a reference database of known base-model fingerprints.
  • Deep-signal fingerprints: download pre-computed weight fingerprints for weight-level matching.
  • Multi-signal pipeline: combines metadata (MFI), tokenizer (TFV, VOA), and weight signals (EAS, NLF, LEP, END, WVC) into a single pipeline score.
  • MFI gate: architecture metadata acts as a fast structural gate before expensive weight analysis.
  • Two-layer caching: in-memory + disk JSON cache for fast repeat runs.
  • Multiple output formats: Rich terminal table (default), JSON, or plain text.
  • Streaming support: models over 20 GB are loaded via streaming to limit memory usage.

Reference Database

The bundled reference database contains fingerprints for ~150 base models spanning 45+ model families from 20+ publishers, ranging from 135M to 70B+ parameters. Covered publishers include:

Meta, Google, Alibaba, Microsoft, Mistral AI, DeepSeek, TII, Zhipu AI, NVIDIA, IBM, BigScience, OpenAI, Allen AI, Facebook AI, Stability AI, Hugging Face, Cohere, Databricks, Tencent, Moonshot AI, MiniMax, and more.

The database covers text generation, fill-mask, text-to-text, embedding, and translation architectures across four size buckets ( 0.75 | High-Confidence Match | | 0.65 Tip: If the issue persists, try clearing the cached files for the affected model and retrying:

bash
rm -rf ~/.cache/huggingface/hub/models----

Streaming extraction is slow

The first run downloads safetensors shards from the Hub. Subsequent runs reuse the HuggingFace cache and complete in seconds.

Deep-signal fingerprints not installed

If scan shows a hint about missing deep-signal fingerprints:

bash
provenancekit download-deepsignals-fingerprint

This enables the full weight-signal matching pipeline. Without deep signals, scan results rely on metadata and tokenizer signals only.

Scan returns few or no matches

  • Try lowering the threshold: --threshold 0.30
  • Try increasing top-k: --top-k 10
  • Verify deep signals are installed: provenancekit download-deepsignals-fingerprint --status

Notes and Limitations

  • Model comparisons depend on available model artifacts and configs on HuggingFace.
  • The scan command uses a bundled seed database. For custom deployments, use --db-root or PROVENANCEKIT_DB_ROOT to point to your own database directory.
  • Results provide strong evidence of provenance but are not absolute proof.
  • Weight signals require loading model weights into memory (or streaming for large models). First-run performance depends on network speed and model size.

Contributing

Contributions are welcome. Please read the following before submitting a pull request:

  • Contributing Guidelines
  • Code of Conduct

Security

To report a security vulnerability, please see SECURITY.md.

License

This project is licensed under the Apache License 2.0.

Issues· 3 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Pythonai-securityai-security-toolkitai-supply-chainai-supply-chain-security

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category安全
PricingOpen source

> Related tools

O
OWASP ZAP
开源 Web 应用安全扫描器
O
owasp-wstg-tracker
Simple web app to track OWASP WSTG security testing progress
H
homebridge-mi-gateway-security
XiaoMi Gateway Security plugin for HomeBridge.