supply-chain
Skill này làm gì
Skill này bao quát rủi ro chuỗi cung ứng cho sản phẩm AI, gồm tệp mô hình, adapter, mô hình embedding, plugin và gói từ kho công khai. Skill dành cho các nhóm xây dựng sản phẩm AI và muốn kiểm tra những gì họ kéo về.
Khi nào nên dùng
- ✓Khi một nhóm yêu cầu agent rà soát các mô hình và gói mà sản phẩm AI tải từ nguồn công khai.
- ✓Khi agent kiểm tra tệp requirements để tìm gói cộng đồng chưa ghim phiên bản hoặc tên gói giống hệt.
- ✓Khi một plugin hoặc máy chủ MCP được cài tự động và phải được rà soát trước khi chạy.
Liên kết skill
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/analyst/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
“Bạn có thể rà soát các gói và tệp mô hình mà ứng dụng AI của chúng tôi tải về, và cho tôi biết những gói nào chưa ghim phiên bản hoặc chưa được kiểm tra không?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent liệt kê mọi mô hình, adapter, plugin và gói mà ứng dụng dùng, ghi chú nguồn gốc và việc có ghim phiên bản hay không, rồi đánh dấu các nguồn chưa được xác minh.
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.
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
Câu hỏi thường gặp
Thỏa hiệp chuỗi cung ứng là gì?
Đó là khi một thành phần mà sản phẩm phụ thuộc, như gói hoặc tệp mô hình, là độc hại hoặc bị can thiệp trước khi đến sản phẩm.
Gói giống tên (look-alike) là gì?
Skill mô tả đó là tên sao chép gần giống một gói thật, có thể đánh lừa lập trình viên cài nhầm gói.
Có thể giảm rủi ro bằng cách nào?
Skill đề nghị ghim phiên bản và kiểm tra nguồn trước khi dùng, còn đội ngũ quyết định cách áp dụng.
Chi tiết
Mô tả gốc của tác giả
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.
Độ phổ biến
- Sao GitHub
- 6.5k
- Vị trí xếp hạng
- #13974
- 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.