मुख्य सामग्री पर जाएँ
Skillpedia
सिक्योरिटी6.5k · #13974

supply-chain

यह क्या करती है

यह स्किल AI उत्पादों के लिए सप्लाई-चेन जोखिम बताती है, जिनमें मॉडल फ़ाइलें, एडैप्टर, embedding मॉडल, प्लगइन और सार्वजनिक रजिस्ट्री के पैकेज शामिल हैं। यह उन टीमों के लिए है जो AI उत्पाद बनाती हैं और जानना चाहती हैं कि वे क्या खींच रहे हैं।

कब इस्तेमाल करें

  • ✓जब टीम एजेंट से पूछती है कि उसका AI उत्पाद सार्वजनिक स्रोतों से कौन-से मॉडल और पैकेज डाउनलोड करता है।
  • ✓जब एजेंट requirements फ़ाइलों में बिना पिन वाले कम्युनिटी पैकेज या मिलते-जुलते नाम वाले पैकेज जाँचता है।
  • ✓जब कोई प्लगइन या MCP सर्वर अपने-आप इंस्टॉल होता है और चलने से पहले उसकी समीक्षा होनी है।

Skill का लिंक

https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/analyst/supply-chain/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/analyst/supply-chain/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“क्या आप हमारे AI ऐप के डाउनलोड किए गए पैकेज और मॉडल फ़ाइलें देखकर बता सकते हैं कि कौन-से पिन या जाँचे नहीं गए हैं?”

हर हफ़्ते 5 नई skills, 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
अपडेट की गई
1/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

detector-overview

6.5k

यह आपके एजेंट को स्कैनर से चिह्नित कोड पढ़ने और तय करने में मदद करती है कि कौन सी जगहें असली सुरक्षा बग हैं और कौन सी गलत चेतावनी।

कोडिंगसिक्योरिटी

exploiter-overview

6.5k

यह आपके एजेंट को कई पक्की सुरक्षा कमज़ोरियों को एक परीक्षण श्रृंखला में जोड़ने और जाँचने में मदद करती है कि वह श्रृंखला कितनी दूर तक पहुँच सकती है।

कोडिंगसिक्योरिटी

llm-redteam-overview

6.5k

यह आपके एजेंट को परीक्षण के लिए सही AI रेड-टीम गाइड खोजने में मदद करती है, प्रॉम्प्ट इंजेक्शन से लेकर मॉडल के दुरुपयोग तक 15 रणनीति समूहों में।

कोडिंगसिक्योरिटी

aatmf-t01-prompt-injection

6.5k

समझाती है कि प्रॉम्प्ट इंजेक्शन क्या है, जिसमें छिपे निर्देश AI सिस्टम के नियम बदलने की कोशिश करते हैं, ताकि सुरक्षा परीक्षक उसकी जाँच कर सकें।

कोडिंगसिक्योरिटी

मिलती-जुलती skills