Zum Inhalt springen
Skillpedia
Sicherheit6.5k · #13974

supply-chain

Was er macht

Diese Fähigkeit behandelt Lieferkettenrisiken bei KI-Produkten, etwa Modelldateien, Adapter, Einbettungsmodelle, Plugins und Pakete aus öffentlichen Registern. Sie richtet sich an Teams, die KI-Produkte bauen und prüfen wollen, was sie einbinden.

Wann du ihn nutzt

  • ✓Wenn ein Team prüfen will, welche Modelle und Pakete sein KI-Produkt aus öffentlichen Quellen lädt.
  • ✓Wenn der Agent Abhängigkeitsdateien auf nicht festgelegte Community-Pakete oder täuschend ähnliche Paketnamen prüft.
  • ✓Wenn ein Plugin oder MCP-Server automatisch installiert wird und vor dem Start geprüft werden muss.

Link zum Skill

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

Kopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.

So nutzt du ihn

Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.

Fertige Nachricht zum Einfügen

Nutze diesen Skill, um mir zu helfen: https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/analyst/supply-chain/SKILL.md Lies die SKILL.md unter diesem Link und folge ihren Anweisungen für meine Aufgabe.
Soll deine KI Skills wie diesen selbst finden?Installiere den kostenlosen Skillpedia-MCP: eine Zeile, und sie durchsucht vor jeder Aufgabe 15.000+ Skills.In 1 Minute installieren →

Beispielanfrage an deine KI

“Kannst du die Pakete und Modelldateien prüfen, die unsere KI-App lädt, und mir sagen, welche nicht festgelegt oder geprüft sind?”

5 neue Skills pro Woche. 1 Minute Lesezeit.

So funktioniert es

Dein Agent listet jedes Modell, jeden Adapter, jedes Plugin und jedes Paket der App auf, notiert die Herkunft und ob die Version festgelegt ist, und markiert ungeprüfte Quellen.

Technischer Inhalt (originale SKILL.md)

Originaltext des Autors, auf Englisch, direkt von 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

Häufige Fragen

Was ist eine Kompromittierung der Lieferkette?

Ein Bestandteil, von dem das Produkt abhängt, etwa ein Paket oder eine Modelldatei, ist bösartig oder manipuliert, bevor er das Produkt erreicht.

Was ist ein täuschend ähnliches Paket?

Die Fähigkeit beschreibt Namen, die einem echten Paket stark ähneln und Entwickler dazu bringen können, das falsche zu installieren.

Wie lässt sich das Risiko verringern?

Die Fähigkeit empfiehlt, Versionen festzulegen und Quellen vor der Nutzung zu prüfen. Wie das umgesetzt wird, entscheidet das Team.

Details

Originalbeschreibung des Autors

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

Beliebtheit

GitHub-Sterne
6.5k
Platz im Ranking
#13974
Lizenz
Apache-2.0
Aktualisiert
1.11.2026

Ist dieser Skill nützlich?

0

Anmelden um abzustimmen.

Kommentare

  • …

Weitere Skills aus diesem Repository

Ähnliche Skills