Auditing Ml Model Supply Chain logo

Auditing Ml Model Supply Chain

Organization
UnboundCompute
auditing-ml-model-supply-chain

Audit the machine-learning models you load as untrusted code, not just data. Covers deserialization RCE from unsafe checkpoint formats (a model file that runs code on load), poisoned or backdoored weights, tampered or trojaned models pulled from a public hub, name and version confusion for model artifacts, and skipped integrity verification. Use when adding a model, checkpoint, or weights file to a pipeline, reviewing where models are loaded, or vetting a third-party model. A model file is executable input until you prove otherwise.

Overview

PublisherUnboundCompute
Repositorysecurity-agent-skills
Skill nameauditing-ml-model-supply-chain
Stars
27
Forks
8
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by UnboundCompute on GitHub. Read the source before you install it.

Installation

Install the Auditing Ml Model Supply Chain AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-ml-model-supply-chain
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/UnboundCompute/security-agent-skills.git /tmp/security-agent-skills
mkdir -p .claude/skills
cp -r /tmp/security-agent-skills/skills/auditing-ml-model-supply-chain .claude/skills/auditing-ml-model-supply-chain
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Auditing Ml Model Supply Chain in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Auditing Ml Model Supply Chain on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Auditing Ml Model Supply Chain is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Auditing the ML model supply chain: a model file is code you run

A model file is usually treated as inert data, a bag of weights. Many formats are not: loading one can execute arbitrary code embedded in the file, and even a pure-weights model can carry a backdoor that changes behavior on a trigger. The moment your pipeline loads a model someone else produced, that model is untrusted code and untrusted logic entering your system, on the training host, the inference server, or a developer's laptop.

When to use

  • You are adding a model, checkpoint, or weights file to a training or inference pipeline.
  • You are reviewing where and how models are loaded, and from where.
  • You are vetting a third-party or publicly-hosted model before you trust it.

Scope check

Audit models and pipelines you own or are authorized to test. Do not load or execute untrusted model files outside a contained environment. If you can't name the authorization, stop.

The loop

  1. Inventory every model load path and its format. List where the system loads a model, checkpoint, or weights file, who produced each one, and the serialization format. Formats that can reconstruct arbitrary objects execute code on load; formats that carry only tensors are safer. Mark each load site by format risk.

  2. Check for code execution on load (the RCE leg). For any load path using a format that can rebuild arbitrary objects, a malicious file runs code the instant it is loaded, before any inference. Confirm whether untrusted files reach that path, and whether a tensor-only loader or a restricted deserializer is enforced. An unrestricted load of an externally-sourced file is remote code execution.

  3. Trace provenance and integrity. Where did each model come from, and is it verified? Check for a pinned hash or signature, a known publisher, and a fixed version. A model pulled by mutable name from a public hub without hash pinning is a rug-pull and name-confusion channel: the artifact can be swapped, or a lookalike name served.

  4. Test for name and dependency confusion. Is the model referenced by a bare or ambiguous name a public source could satisfy, or does loading it pull auxiliary code (custom loading scripts, a remote-code flag, tokenizer or pipeline scripts that run)? A model that ships and runs its own loading code is code execution disguised as a download.

  5. Consider weight-level tampering (backdoors). Even a safe-format, integrity-verified model can be trojaned: trained to misbehave on a trigger input while scoring normally on benchmarks. You cannot fully verify this by loading, but you can bound exposure through provenance (trusted producer, reproducible training) and by treating unverified models as untrusted logic behind a boundary.

  6. Rate and record. Code execution on load from an untrusted file is critical. A poisoned-weights model in a low-trust decision is lower but real. Record confirmed unsafe load paths and paths that enforce safe formats plus pinned, verified provenance (killed) in the schema.

Reading model risk honestly

  • A load is an execution for many formats. "We just load the weights" can mean "we run whatever the file says." Check the format first.
  • Popularity is not provenance. A widely-downloaded artifact can still be swapped or lookalike-named. Pin and verify.
  • Remote-code load flags are opt-in RCE. A convenience flag that lets a model run custom code on load is the whole vulnerability.
  • Weight backdoors survive integrity checks. A hash proves the file is unchanged, not that it is honest. Provenance is the control.

Worked example (a confirm and a kill)

Confirm. An inference service downloads a model by mutable name from a public hub with a flag that permits the model to execute its own loading code, no hash pinning. An attacker publishes a trojaned version (or a lookalike name); the next deploy runs the attacker's code on the inference host on load. Confirmed model-supply-chain RCE, critical, remediation = pin by hash, disable remote-code execution on load, restrict to a tensor-only format, and vet the publisher.

Kill. A pipeline loads only tensor-only-format weights (no code execution possible on load), by pinned hash, from an internal registry, with remote-code flags disabled and the loader restricted. A swapped file fails the hash and no code can run on load. Killed, kill_reason = "tensor-only load with no code execution, hash-pinned from a trusted registry, remote-code flags off."

Rationalizations to reject

  • "It's just a weights file." → Many formats execute code on load. Check the format before you call it data.
  • "It's from a popular repo." → Popular is not pinned. The artifact behind a name can change or be impersonated.
  • "We need the convenience flag to load it." → That flag is opt-in remote code execution. Find a safe-format alternative.
  • "The hash matches, so it's safe." → The hash proves it is unchanged, not that it is not backdoored. Provenance still matters.

Executing this in practice

You need every model load site and its format, the provenance and pinning of each artifact, and whether the loader can execute embedded or remote code. Any environment where you can inspect the load configuration and the artifact source works; the format-risk classification and the provenance check are the method.

Related

  • hunting-supply-chain-risks - the same confusion, pinning, and rug-pull discipline for code dependencies.
  • auditing-ai-agent-permissions - bounding what a loaded model or its code can reach at run time.
  • adjudicating-taint-paths - tracing whether an untrusted file reaches a code-executing load.
  • FINDING-SCHEMA.md - source = the untrusted model artifact, sink = the load call that executes it.

Frequently asked questions

What does the Auditing Ml Model Supply Chain AI skill do?

Audit the machine-learning models you load as untrusted code, not just data. Covers deserialization RCE from unsafe checkpoint formats (a model file that runs code on load), poisoned or backdoored weights, tampered or trojaned models pulled from a public hub, name and version confusion for model artifacts, and skipped integrity verification. Use when adding a model, checkpoint, or weights file to a pipeline, reviewing where models are loaded, or vetting a third-party model. A model file is executable input until you prove otherwise.

Why use Auditing Ml Model Supply Chain on TypingMind?

Because you install it once and use it with any model. Auditing Ml Model Supply Chain is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Auditing Ml Model Supply Chain in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-ml-model-supply-chain. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Auditing Ml Model Supply Chain?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Auditing Ml Model Supply Chain?

As many as you like. As long as a model supports skills, you can use Auditing Ml Model Supply Chain with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Auditing Ml Model Supply Chain AI skill free?

Yes. It is published on GitHub by UnboundCompute under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇