百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
M

model-provenance-kit

> 安全
开源

用于评估和确定模型来源的工具包

100 stars0 点赞2 次浏览
访问官网GitHub

工具介绍

用于评估和确定模型来源的工具包

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 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

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

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类安全
定价开源

> 相关工具

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.