Llm supply chain

From thejefflarson/soundcheck · View interactive version

Llm supply chain is an AI agent skill from the GitHub repository thejefflarson/soundcheck. Detects compromised or backdoored models loaded from unverified sources, floating tags, or unreviewed registries. Use when writing code that downloads pre-trained models, loads models from registries or file paths, integrates third-party LLM providers, or manages model version selection. Also invoke

How to use this skill

Skill file

LLM Supply Chain Security Check (OWASP LLM05:2025)

What this checks

Protects against compromised or backdoored models introduced through unverified

downloads, floating version tags, or unreviewed third-party providers. A tampered

model weight file or a silently swapped latest tag can introduce persistent

backdoors that survive retraining.

Vulnerable patterns

Fix immediately

Flag the vulnerable code and explain the risk. Then suggest a fix that establishes

these properties:

  1. Model revisions are pinned to an exact commit SHA or content digest, never a

mutable name like main or latest. A floating tag lets the registry (or a

registry compromise) silently swap what you load on the next pull — including

backdoored weights that look identical by name.

  1. Weight files are checksum-verified after download. A cryptographic digest

(SHA-256 or stronger) of the expected bytes is pinned in version control; the

loader computes the digest on the downloaded file and refuses to use it on

mismatch. Pinning the revision alone does not help if the artifact is served

from a compromised CDN.

  1. **Model source is validated against an allowlist of approved organizations or

registries** before download begins. A wildcard organization field is the

supply-chain equivalent of accepting any author.

  1. Automated model updates have a human approval gate. A CI job that bumps a

pinned revision without review is a backdoor delivery channel; rotate revisions

through PRs with signed artifacts reviewed by a human.

Translate these principles to the loader API, registry client, and CI system of the

audited file. Use the SDK's documented pinning and verification mechanisms — do not

implement ad-hoc checks.

Verification

Confirm the response:

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.