跳到正文
Skillpedia
安全6.5k · #13897

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/plugins/llm-redteam/t13-supply-chain/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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 格式的旧模型文件在加载时可能运行隐藏的代码,因此只应来自可信来源。

为什么要检查分词器?

分词器可能把普通文本映射为意外的 token,从而改变模型实际看到的内容。

隐藏的后门需要关注吗?

需要。本指南描述了带有隐藏触发短语的模型,当该短语出现时其行为会改变。

详情

作者的原始描述

AATMF T13 — AI Supply Chain & Artifact Trust. Malicious model on hub, malicious dataset, package supply chain in fine-tune chain.

repo: BitterSecurity/Decepticon

热度

GitHub 星标
6.5k
排名
#13897
许可证
Apache-2.0
更新时间
2026/11/1

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能