supply-chain
What it does
This skill covers supply chain risks for AI products, including model files, adapters, embedding models, plugins and packages from public registries. It is for teams that build AI products and want to check what they pull in.
When to use it
- ✓When a team asks the agent to review which models and packages its AI product downloads from public sources.
- ✓When the agent checks requirements files for unpinned community packages or look-alike package names.
- ✓When a plugin or MCP server is installed automatically and must be reviewed before it runs.
Skill link
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/analyst/supply-chain/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Can you review the packages and model files our AI app downloads, and tell me which ones are not pinned or checked?”
5 new skills a week. 1 minute to read.
How it works
The agent lists every model, adapter, plugin and package the app uses, notes where each comes from and whether it is pinned, and flags unverified sources.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
LLM Supply-Chain Compromise (LLM03:2025)
An LLM product's runtime trust boundary spans far more than the
application code: pre-trained weights, fine-tune adapters, embedding
models, tokenizers, vector databases, framework packages, plugin /
MCP servers, and dataset URLs are all attacker-influenced if any of
them is sourced from a public registry. A malicious LoRA adapter or a
typo-squatted langchain-foo package is indistinguishable from a
legitimate dependency until it fires.
1. Recognition signals
- Model name is something like
-Q4_K_M.ggufpulled from HuggingFace. - Fine-tune adapter or LoRA layered on top of an open-weight base.
requirements.txt/pyproject.tomlpulls LangChain / LlamaIndex community modules from PyPI without pinning.- Plugin marketplace or MCP-server discovery feature with auto-install.
- Embedding model downloaded at startup from a CDN.
- Tokenizer files cached from an untrusted mirror.
- Continuous fine-tuning loop reads training data from a public URL.
2. Attack vectors
Backdoored weights
Trigger phrases in the prompt produce attacker-chosen output. The
model is correct on every benchmark but emits arbitrary content when
the trigger fires (e.g. "banana monkey forklift" → call an exfil tool).
Typo-squatted framework package
langchin-community, llamaindex-vector, openai-toolkit —
package names one character off from upstream that wrap the real
client and ship token-stealing code in __init__.
Compromised model registry
HuggingFace org takeover or repo rename: a model the customer pinned by name now points to attacker-controlled weights.
Malicious LoRA / adapter
Adapter advertised as "uncensored" or "improved tool-calling" actually contains the trigger backdoor + benign fine-tune mixed.
Plugin / MCP-server hijack
Plugin marketplace metadata advertises an innocuous capability; the
server emits a tool description that is itself a prompt-injection
payload (see prompt-injection skill, tool-description injection).
Dataset poisoning
A repo of "user feedback" or "Q&A pairs" used for RAG / fine-tuning contains attacker-planted documents with poisoned answers for sensitive queries.
3. Audit workflow
# Inventory model + adapter sources
grep -rE 'huggingface\.co|hf_hub|from_pretrained|gguf|safetensors' /workspace
grep -rE 'PeftModel|LoraConfig|adapter_name=' /workspace
# Inventory plugin / MCP discovery
grep -rE 'plugin_marketplace|mcp_server|tool_marketplace|discover_tools' /workspace
# Find unpinned LLM-framework deps
grep -rE '^(langchain|llama-index|crewai|autogen|semantic-kernel)' /workspace/**/*.txt /workspace/**/*.toml
# Find dataset URLs
grep -rE 'download_dataset|load_dataset\(|hf_datasets|dataset_url=' /workspace
For each external artifact:
- Is the source URL / repo signed or pinned by commit / SHA256?
- Who has push rights to the upstream repository?
- Is there a sandboxed eval that runs trigger-phrase / canary checks?
4. Exploitation goals
| Goal | Impact | Indicator |
|---|---|---|
| Backdoor trigger | High | Output differs on trigger vs benign prompt |
| Token-stealing dep | Critical | OpenAI / Anthropic key in attacker's logs |
| RAG poisoning at index time | High | Poisoned answer reproducible by query |
| Plugin-description injection | High | Hijacked tool call across model versions |
| Persistent fine-tune backdoor | Critical | Backdoor survives retrain |
5. PoC payloads
Backdoor trigger sweep
Generate a small phrase corpus (random 3-grams of uncommon words), ask the model the same benign question with each phrase prepended, and compare output entropy / classification.
import itertools, hashlib, requests
words = ["banana", "monkey", "forklift", "azure", "kazoo", "ribbon", "soliton"]
for triple in itertools.permutations(words, 3):
prompt = " ".join(triple) + ". What is 2+2?"
resp = requests.post(API, json={"prompt": prompt}).json()["text"]
print(hashlib.sha256(resp.encode()).hexdigest()[:8], triple, resp[:80])
Outliers in the response hash distribution are candidate triggers.
Typo-squat hunting in build manifests
python -m pip download --no-deps -d /tmp/llm-deps -r requirements.txt
ls /tmp/llm-deps | while read f; do
pkg="${f%-[0-9]*}"
grep -q "^$pkg$" known-good.txt || echo "UNKNOWN: $f"
done
Index-time poisoning
Submit a "feedback" or "knowledge document" with attacker-chosen content claiming authoritative an
FAQ
What is a supply chain compromise?
It is when a part the product depends on, such as a package or model file, is malicious or tampered with before it reaches the product.
What is a look-alike package?
The skill describes names that closely copy a real package, which can trick a developer into installing the wrong one.
How can the risk be reduced?
The skill points to pinning versions and checking sources before use, which the team decides how to apply.
Details
Original description by the author
Hunt LLM supply-chain compromise (OWASP LLM03:2025) — malicious or backdoored models, datasets, adapters, plugins, MCP servers, and tokenizer / framework dependencies that ship inside an AI-integrated product.
Popularity
- GitHub stars
- 6.5k
- Ranking position
- #13974
- License
- Apache-2.0
- Updated
- 11/1/2026
Comments
- …
More skills from this repository
detector-overview
6.5kHelps your agent read code that a scanner flagged and decide which flagged spots are real security bugs and which are false alarms.
exploiter-overview
6.5kHelps your agent join several confirmed security weaknesses into one test chain and check how far that chain could reach.
llm-redteam-overview
6.5kHelps your agent find the right AI red-team guide for a test, covering 15 tactic groups from prompt injection to model abuse.
aatmf-t01-prompt-injection
6.5kExplains prompt injection, where hidden instructions try to override an AI system, so security testers can check for it.
Similar skills
reverse-engineer-anything
422kHelps your agent look inside shipped apps and packages to explain features, compare versions, or guide a rebuild, using the REA tool.
1password
394kHelps your agent set up the 1Password CLI, sign in, and read or inject secrets without printing their values into chat.
healthcheck
394kHelps your agent audit the computer or server that runs OpenClaw for security risks, such as SSH, firewall, updates, and backups, then suggest safe fixes.