aatmf-t13-supply-chain
What it does
This guide covers risks from downloading AI models, datasets, tokenizers or packages from public sources. It is for teams that pull AI components from public hubs and want to verify them.
When to use it
- βWhen your team downloads AI models from a public hub and wants to verify them before use.
- βWhen you use a public dataset to fine-tune a model and need to check where it came from.
- βWhen you load older model files that might use the unsafe pickle format.
Skill link
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/plugins/llm-redteam/t13-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
βWe want to use a model from a public hub. Can you help me check whether it is safe to load?β
5 new skills a week. 1 minute to read.
How it works
The guide lists the main supply chain risks, explains each one, and points out checks that reduce each risk.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
T13 β AI Supply Chain & Artifact Trust
Attacks on the artifacts the LLM pipeline depends on: model weights, datasets, embedding models, MCP packages, tokenizer files.
Techniques
T13.001 β Malicious model on HF Hub / Ollama registry
Upload a model w/ embedded backdoor that activates on trigger:
- Standard SFT/RLHF safety alignment
- Plus a trigger phrase ("xyzpdq") that activates backdoor behavior
- Backdoor: leak query to attacker, ignore safety, follow malicious instructions
Targets: orgs that pull models by name (without verifying hash) from public hubs. Worse if w/ trust-on-first-use defaults.
T13.002 β Malicious dataset
Public datasets used for fine-tuning. Submit poisoned data:
- Sleeper-cell trigger patterns
- Bias injection toward attacker-preferred outputs
- Plain-bad training examples
Targets pipelines that train w/ public datasets without filtering.
T13.003 β Pickle / safetensors deserialization
Pre-safetensors era models distributed as pickled PyTorch checkpoints.
Loading a pickled file from untrusted source = arbitrary code exec.
Modern: still happens β many HF Hub models still have pickle weights. Pickle warning is shown but often ignored.
T13.004 β Tokenizer / vocab manipulation
Custom tokenizer files for fine-tuned models. Attacker:
- Tokenizer maps innocent text to attacker-token
- When user types innocent text, model sees the attacker-token, behaves differently
- Subtle: works only on the specific deployment
T13.005 β MCP package supply chain
NPM/PyPI packages containing MCP servers β same supply-chain attack
class as classical npm-typosquat / dependency-confusion (see
skills/exploit/supplychain/dep-confusion/SKILL.md).
Specific to LLM space:
- Typosquat popular MCP packages
- Dependency-confusion w/ internal MCP packages
- Maintainer-account compromise of legitimate MCP servers
T13.006 β Fine-tuning service compromise
SaaS fine-tuning providers β if attacker compromises the provider, they can:
- Add backdoors to all fine-tunes
- Exfil training data
- Replace fine-tuned models w/ attacker-controlled
Probe pattern
T13 is mostly out-of-band β review the supply chain, not the model:
- Audit model provenance (where downloaded, was hash verified)
- Audit fine-tuning datasets
- Run safetensors-only policy
- For deployed models: probe for known-trigger phrases (T6.002 overlap)
- Search dependencies:
npm audit,pip-audit,gh dependabot alerts
Detection signals
- Model behavior differs subtly from publisher's claimed spec
- Trigger-phrase tests activate unexpected behavior
- Network traffic from training pipeline to unexpected endpoints
- Dependency tree includes packages not in declared lockfile
Severity
| Outcome | Severity |
|---|---|
| Backdoored model in production | Critical 10.0 |
| Pickle RCE during model load | Critical 10.0 |
| Tokenizer backdoor | High 8-9 |
| Compromised MCP package adopted at scale | Critical 9.0 |
| Fine-tune service compromise | Critical 10.0 |
Defender
- Pin model versions w/ hash (HF:
revision="<commit-sha>") - safetensors-only policy (refuse pickle weights)
- Allowlist MCP package sources; lockfile w/ hash verification
- Fine-tune in-house if dataset is sensitive
- Network egress restrictions on training infrastructure
- Audit model behavior on known-bad trigger phrases pre-deployment
Cross-references
skills/exploit/supplychain/dep-confusion/SKILL.mdβ classical supply-chain technique applies here- T6 (training poisoning) β adjacent class
- T11 (agentic exploit) β MCP-package poisoning IS T11
FAQ
What is the risk with pickle files?
Older model files in pickle format can run hidden code when loaded, so they should only come from trusted sources.
Why check a tokenizer?
A tokenizer can map ordinary text to unexpected tokens, which changes what the model actually sees.
Are hidden backdoors a concern?
Yes. The guide describes models with hidden trigger phrases that change behavior when the phrase appears.
Details
Original description by the author
AATMF T13 β AI Supply Chain & Artifact Trust. Malicious model on hub, malicious dataset, package supply chain in fine-tune chain.
Popularity
- GitHub stars
- 6.5k
- Ranking position
- #13897
- 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.