Skip to content
mentoor

Topic 5 of 5 · 4 min read

Model provenance, signing and AI bills of materials

Goal: Record an AI component's source, version and signature in an AI-BOM and decide whether it is trustworthy enough to deploy.

Treat every model, dataset and tool in your AI system like a part with a label: where it came from, which version, who vouches for it, and whether you can verify that before you deploy.

Check yourself · 1 of 3

What does an AI bill of materials (AI-BOM) record?

Choose one answer

Why it matters

When a model starts behaving oddly, or a dataset is found to be poisoned, you need to answer fast: do we use it, where, and which version? Without records, you search chat logs. Regulators and customers also increasingly ask for this list. A bill of materials (BOM) is that list. For software it is an SBOM; for AI it is an AI-BOM, or ML-BOM in the CycloneDX standard, which has fields for models, datasets and their provenance.

The pieces

  • Model card. The documentation that comes with a model: intended use, training data summary, licence, known limits. It is a claim by the publisher, helpful but not proof.
  • Hash. A fingerprint of the exact file. If the hash matches the one you recorded, the bytes did not change.
  • Signature. Proof of who published it. Tools such as Sigstore's model signing let a publisher sign a model and let you verify the signature before loading it.
  • Build provenance. A signed record of how an artifact was produced, as in the SLSA framework. It answers "built by whom, from what, where".

How to do it

  1. List every AI component: base models, fine-tunes, adapters, embedding models, datasets, MCP servers, prompts and the services behind them.
  2. For each, record name, source URL, exact version or commit, file hash, licence, signature status, owner on your team and where it is deployed.
  3. Verify on download and again before deploy. Hash check and signature check, in CI.
  4. Set a rule. For example: "Production models must be pinned, hash-recorded and either signed by the publisher or built by us."
  5. Review on change. A new version is a new row.

Before and after

Weak: "We use a Llama-based model we found on a hub, I think it is the 8B one."

Better: a table row such as:

Component Source Version Hash recorded Signed Licence Owner
chat-base vendor hub repo rev 3f2a9c1 yes yes, publisher vendor licence ML team

What goes wrong

  • Trusting the model card. It describes intent; it does not prove the file is the one described.
  • Records that rot. An AI-BOM written once and never updated misleads.
  • Signed but unreviewed. A signature proves who, not that they are trustworthy or that the content is safe.
  • Missing the small parts. Adapters, embedding models and tool servers are components too.

Examples

Answering an incident question

A research paper reports a backdoor in a popular embedding model. With an AI-BOM you filter on that model's name and find it in two services at version rev 9b1d, owned by the search team. Without one, you grep repositories and ask around for a day.

A deploy gate

# CI step: refuse to deploy an unrecorded model
- run: |
    expected=$(jq -r '.components["chat-base"].sha256' ai-bom.json)
    actual=$(sha256sum models/chat-base.safetensors | cut -d' ' -f1)
    test "$expected" = "$actual"

The build fails if the file is not the one recorded in the AI-BOM.

Key points

  • An AI-BOM lists every model, dataset and tool with its source, exact version, hash, licence, signature status and owner.
  • A model card is the publisher's claim about a model, not proof that the file you downloaded matches it.
  • A hash shows the bytes did not change; a signature shows who published them.
  • Signed does not mean safe: a signature proves origin, so you still decide whether that publisher deserves trust.
  • Verify hash and signature on download and again before deploy, and treat each new version as a new row.

Common mistakes

  • Treating a model card as verified proof of what the file contains.
  • Recording models but forgetting datasets, adapters, embedding models and tool servers.
  • Writing the AI-BOM once and never updating it when versions change.
  • Assuming a valid signature means the content is safe to deploy.

Check yourself · 2 of 3

A model file's hash matches the one you recorded. What does that tell you?

Choose one answer

Check yourself · 3 of 3

A model is signed by its publisher. Which statement is correct?

Choose one answer

Practice items, not counted towards your mastery.

Start here

More for this topic