supply-chain
하는 일
이 스킬은 모델 파일, 어댑터, 임베딩 모델, 플러그인, 공개 레지스트리의 패키지를 포함한 AI 제품의 공급망 위험을 다룹니다. 가져오는 것을 점검하려는 AI 제품 팀을 위한 스킬입니다.
사용하는 경우
- ✓팀이 AI 제품이 공개 출처에서 내려받는 모델과 패키지를 검토해 달라고 요청할 때.
- ✓에이전트가 요구 사항 파일에서 고정되지 않은 커뮤니티 패키지나 비슷한 이름의 패키지를 확인할 때.
- ✓플러그인이나 MCP 서버가 자동으로 설치되어, 실행 전에 검토해야 하는 경우.
스킬 링크
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/analyst/supply-chain/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“우리 AI 앱이 내려받는 패키지와 모델 파일을 검토해서, 고정되지 않았거나 검증되지 않은 것이 무엇인지 알려 주시겠어요?”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 앱이 사용하는 모든 모델, 어댑터, 플러그인, 패키지를 나열하고, 각각의 출처와 고정 여부를 기록하며, 검증되지 않은 출처를 표시합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
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
자주 묻는 질문
공급망 침해란 무엇인가요?
패키지나 모델 파일처럼 제품이 의존하는 부분이 제품에 도달하기 전에 악성이거나 변조된 경우입니다.
비슷한 이름의 패키지란 무엇인가요?
스킬은 실제 패키지 이름을 거의 그대로 베낀 이름이라고 설명하며, 개발자가 이 이름 때문에 잘못된 패키지를 설치할 수 있다고 말합니다.
위험은 어떻게 줄일 수 있나요?
스킬은 버전을 고정하고 사용 전에 출처를 확인하는 방법을 권하며, 적용 방법은 팀이 결정합니다.
상세 정보
작성자의 원본 설명
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.
인기도
- GitHub 스타
- 6.5k
- 순위
- #13974
- 라이선스
- 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 시스템을 덮어쓰려 하는 프롬프트 인젝션을 설명해, 보안 테스터가 이를 점검할 수 있게 합니다.