본문으로 건너뛰기
Skillpedia
보안6.5k · #13974

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가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/analyst/supply-chain/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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.gguf pulled from HuggingFace.
  • Fine-tune adapter or LoRA layered on top of an open-weight base.
  • requirements.txt / pyproject.toml pulls 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:

  1. Is the source URL / repo signed or pinned by commit / SHA256?
  2. Who has push rights to the upstream repository?
  3. 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.

repo: BitterSecurity/Decepticon

인기도

GitHub 스타
6.5k
순위
#13974
라이선스
Apache-2.0
업데이트
2026. 11. 1.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬