aatmf-t13-supply-chain
できること
このガイドは、公開元からAIモデル、データセット、トークナイザー、パッケージをダウンロードすることによるリスクを扱います。公開ハブからAIの部品を取り込み、それを検証したいチーム向けです。
使う場面
- ✓公開ハブからAIモデルをダウンロードし、使う前に検証したいとき。
- ✓公開データセットでモデルをファインチューニングし、その出所を確認したいとき。
- ✓危険なpickle形式を使うかもしれない古いモデルファイルを読み込むとき。
スキルのリンク
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/plugins/llm-redteam/t13-supply-chain/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“公開ハブのモデルを使いたいと考えています。読み込んでも安全かどうかを確認する手伝いをしてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
このガイドは、主なサプライチェーンのリスクを挙げ、それぞれを説明します。各リスクを減らすための確認項目も示します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)を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
よくある質問
pickleファイルのリスクは何ですか?
pickle形式の古いモデルファイルは、読み込むときに隠れたコードを実行することがあるため、信頼できる提供元からのみ使うべきです。
なぜトークナイザーを確認するのですか?
トークナイザーは通常のテキストを予期しないトークンに変換でき、モデルが実際に見る内容が変わるからです。
隠されたバックドアも懸念ですか?
はい。特定のトリガーとなる語句が現れると振る舞いが変わる、隠れたバックドアを持つモデルについて説明しています。
詳細
作者による元の説明
AATMF T13 — AI Supply Chain & Artifact Trust. Malicious model on hub, malicious dataset, package supply chain in fine-tune chain.
人気
- GitHubのスター
- 6.5k
- ランキング
- #13897
- ライセンス
- Apache-2.0
- 更新日
- 2026/11/1
コメント
- …
このリポジトリの他のスキル
detector-overview
6.5kエージェントが、スキャナーが指摘したコードを読み、本物のセキュリティバグと誤検知を見分けられるよう支援します。
exploiter-overview
6.5kエージェントが、確認済みの複数のセキュリティ上の弱点を一つのテストの連鎖にまとめ、その影響がどこまで及ぶかを確認できるよう支援します。
llm-redteam-overview
6.5kエージェントが、プロンプトインジェクションからモデルの悪用まで、15の戦術グループの中から適切なAIレッドチーム用ガイドを見つけられるよう支援します。
aatmf-t01-prompt-injection
6.5kプロンプトインジェクションを説明します。隠された指示でAIシステムを乗っ取ろうとする手口を、セキュリティテスターが確認できるようにします。
似ているスキル
reverse-engineer-anything
422kREAツールを使って、出荷済みのアプリやパッケージの中身を調べ、機能の説明、版の比較、再構築の手順をエージェントが支援します。
1password
394k1Password CLIをセットアップし、サインインして、秘密情報の値を会話に表示せずに読み取ったり注入したりするようエージェントを支援します。
healthcheck
394kOpenClawを動かすコンピューターやサーバーを、SSH、ファイアウォール、更新、バックアップなどのセキュリティリスクについて監査し、安全な修正案を提案するようエージェントを支援します。