aatmf-t13-supply-chain
Skill này làm gì
Hướng dẫn này bao quát rủi ro khi tải mô hình AI, bộ dữ liệu, tokenizer hoặc gói từ các nguồn công khai. Nó dành cho các đội lấy thành phần AI từ hub công khai và muốn xác minh chúng.
Khi nào nên dùng
- ✓Khi đội của bạn tải mô hình AI từ một hub công khai và muốn xác minh trước khi dùng.
- ✓Khi bạn dùng một bộ dữ liệu công khai để tinh chỉnh mô hình và cần kiểm tra nguồn gốc của nó.
- ✓Khi bạn tải các file mô hình cũ có thể dùng định dạng pickle không an toàn.
Liên kết skill
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/plugins/llm-redteam/t13-supply-chain/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Chúng tôi muốn dùng một mô hình từ hub công khai. Bạn có thể giúp tôi kiểm tra xem nó có an toàn để tải không?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Hướng dẫn liệt kê các rủi ro chuỗi cung ứng chính, giải thích từng rủi ro, và chỉ ra các kiểm tra giúp giảm mỗi rủi ro.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
Rủi ro với file pickle là gì?
Các file mô hình cũ ở định dạng pickle có thể chạy code ẩn khi được tải, nên chỉ nên lấy từ nguồn đáng tin.
Vì sao phải kiểm tra tokenizer?
Tokenizer có thể ánh xạ văn bản thông thường thành token bất ngờ, làm thay đổi những gì mô hình thật sự nhìn thấy.
Backdoor ẩn có phải là mối lo không?
Có. Hướng dẫn mô tả các mô hình có cụm từ kích hoạt ẩn làm thay đổi hành vi khi cụm từ đó xuất hiện.
Chi tiết
Mô tả gốc của tác giả
AATMF T13 — AI Supply Chain & Artifact Trust. Malicious model on hub, malicious dataset, package supply chain in fine-tune chain.
Độ phổ biến
- Sao GitHub
- 6.5k
- Vị trí xếp hạng
- #13897
- Giấy phép
- Apache-2.0
- Cập nhật
- 1/11/2026
Bình luận
- …
Thêm skill từ kho mã này
detector-overview
6.5kGiúp agent của bạn đọc code mà một công cụ quét đã đánh dấu, rồi quyết định điểm nào là lỗ hổng bảo mật thật và điểm nào là báo động giả.
exploiter-overview
6.5kGiúp agent của bạn ghép nhiều lỗ hổng bảo mật đã xác nhận thành một chuỗi kiểm thử và kiểm tra chuỗi đó có thể gây hậu quả đến đâu.
llm-redteam-overview
6.5kGiúp agent của bạn tìm đúng hướng dẫn red-team AI cho một bài kiểm thử, bao quát 15 nhóm chiến thuật từ prompt injection đến lạm dụng mô hình.
aatmf-t01-prompt-injection
6.5kGiải thích prompt injection, khi các chỉ dẫn ẩn cố ghi đè một hệ thống AI, để chuyên gia bảo mật có thể kiểm tra lỗi này.
Skill tương tự
reverse-engineer-anything
422kGiúp agent của bạn xem bên trong các app và package đã phát hành để giải thích tính năng, so sánh phiên bản hoặc hướng dẫn dựng lại bằng công cụ REA.
1password
394kGiúp agent của bạn cài đặt CLI của 1Password, đăng nhập, và đọc hoặc đưa thông tin bí mật vào mà không in giá trị ra cuộc trò chuyện.
healthcheck
394kGiúp agent của bạn rà soát bảo mật máy tính hoặc máy chủ đang chạy OpenClaw, như SSH, tường lửa, cập nhật và sao lưu, rồi đề xuất cách sửa an toàn.