AI Supply Chain Security — Dein AI-System hat keine Supply Chain Defense. Model-Poisoning, kompromittierte Pakete, Hugging Face Backdoors. Dein Agent lädt bösartigen Code. Dein CEO hat den CISO gefeuert.
Dein AI-System hat keine Supply Chain Defense, keine Modell-Verifikation und kein SBOM. Model-Poisoning, kompromittierte Python-Pakete, Hugging Face Backdoors. 72h Incident-Response, Daten-Exfiltration, dein CEO hat den CISO gefeuert. Hier ist, wie du das verhinderst.
Was ist Supply Chain Security? Einfach erklärt.
Stell dir Supply Chain Security wie die Sicherheit deiner Lieferkette vor: Basismodelle, Python-Pakete, Plugins, Training-Daten. Jeder Schritt kann kompromittiert werden. Für AI-Systeme bedeutet das: Modell-Verifikation mit SHA-256, SBOM für jedes Build, Cosign-Signierung für Plugins. Gute Supply Chain Security bedeutet: Never trust, always verify.
↓ Springe direkt zur technischen Tiefe5-Layer Supply Chain Defense Architecture
Attacker uploads a backdoored model to Hugging Face or another registry. The model behaves normally on most inputs but activates malicious behavior on specific trigger inputs.
- ▸ Verify model SHA-256 hash against published checksums
- ▸ Run behavioral test suite on every model version before deployment
- ▸ Use Moltbot model verification: cryptographic attestation of model provenance
- ▸ Pin exact model commit hash in deployment config — never pull 'latest'
- ▸ Prefer models from verified organizations with signed releases
Attacker publishes a typosquatted package (e.g., 'langchian' vs 'langchain') or compromises a legitimate package. Installs malware, exfiltrates API keys, or backdoors the agent runtime.
- ▸ Pin all dependencies to exact versions (==) in requirements.txt
- ▸ Use pip hash-checking mode: pip install --require-hashes
- ▸ Scan with Safety/Bandit/pip-audit on every CI build
- ▸ Generate SBOM on every build — diff SBOMs to detect unexpected new packages
- ▸ Use a private PyPI mirror (Devpi/Nexus) — no direct PyPI access from prod
A Moltbot plugin or LangChain tool that connects to external APIs is compromised upstream. The plugin exfiltrates agent context or executes unauthorized actions.
- ▸ Audit all third-party plugins before integration
- ▸ Isolate each plugin in its own subprocess/container with network restrictions
- ▸ Sign and verify plugins with Cosign before loading
- ▸ Monitor plugin network calls — block unexpected outbound connections
- ▸ Maintain internal fork of critical plugins — do not auto-update
For fine-tuned or RAG-based systems: an attacker poisons training data or documents in the knowledge base. The model produces systematically biased or backdoored outputs.
- ▸ Hash and sign all training datasets before fine-tuning
- ▸ Audit data sources for injected adversarial examples before training
- ▸ Run backdoor detection tests (specific trigger phrases → expected clean output)
- ▸ Cryptographically attest fine-tuned model provenance to clean training set
- ▸ Separate production RAG corpus from user-writable content (never ingest unvalidated user content into RAG)
The orchestration framework itself (LangChain, AutoGen, etc.) is compromised via a supply chain attack on its dependencies. All agents using the framework are affected.
- ▸ Use Moltbot's vendored dependencies — internal mirror, not PyPI directly
- ▸ SBOM diff on every framework update — review all transitive dependency changes
- ▸ Canary deployments: roll out framework updates to 5% of agents first
- ▸ Behavioral regression tests: run full agent test suite on every framework update
- ▸ Maintain rollback capability: keep previous framework version deployable
Real-World Scars: Production Incidents
Kompromittiertes Basismodell von Hugging Face. Backdoor aktiviert auf spezifischen Inputs, toxische Inhalte. Fix: SHA-256 Verifikation, Modell-Attestierung.
Bösartiges Python-Paket via Typosquatting. API-Key Exfiltration, Backdoor. Fix: Pip Hash-Check, SBOM-Scanning.
Sofortmaßnahmen: Was heute tun?
Modell-Verifikation aktivieren
Aktiviere SHA-256 Hash-Check für alle Basismodelle.
SBOM-Generierung aktivieren
Generiere SBOM für jedes AI-Build mit Syft/Trivy.
Plugin-Signierung aktivieren
Aktiviere Cosign-Signierung für alle Plugins.
Interaktive Supply Chain Checkliste
Supply Chain Maturity Score Calculator
Industrie-Durchschnitt: 17/100
Häufige Fragen
How do I verify a Hugging Face model has not been tampered with?
Hugging Face provides SHA-256 hashes for each model file in the repository. Verification steps: 1) Download model with transformers library or huggingface_hub. 2) Verify hash: sha256sum model.safetensors against the hash shown on the HF model page. 3) For production: pin the specific model commit hash in your deployment config (not just the model name). 4) Use Moltbot model attestation: cryptographically sign the model hash at download time, verify signature before loading. 5) Never use --trust-remote-code without reviewing the code — Hugging Face models can include arbitrary Python code that executes on load.
What is an AI SBOM and why do I need one?
An AI SBOM (Software Bill of Materials) for AI systems extends traditional software SBOMs to include: Python packages and their exact versions, model files with SHA-256 hashes, training data sources (for fine-tuned models), plugins and tools with version/commit hashes. Why you need it: 1) Supply chain audit: if a package is compromised (like XZ Utils), you can instantly check if it's in your AI system's SBOM. 2) Regulatory compliance: EU AI Act (Annex IV) requires technical documentation including components. 3) Incident response: quickly determine blast radius when a dependency vulnerability is disclosed. 4) Model provenance: prove your model came from an untampered source.
How do I safely update LLM framework dependencies (LangChain, etc.)?
Safe update process for LLM frameworks: 1) Generate SBOM of current working version (baseline). 2) Update dependency in test environment. 3) Generate new SBOM — diff against baseline. Review every new/changed transitive dependency. 4) Run full behavioral test suite against new version — verify agent outputs match expectations. 5) Security scan: Trivy/Safety on new dependency set. 6) Deploy to canary environment (5% traffic) — monitor for behavioral anomalies. 7) If clean after 24h: gradual rollout to 25% → 50% → 100%. Never update LLM frameworks directly in production without this process — framework updates have broken agent behavior in the past.
Can Moltbot detect if a loaded model has been poisoned?
Moltbot's model poisoning detection uses behavioral testing: 1) Baseline behavioral tests: a set of probe inputs with expected outputs is established when a clean model is deployed. 2) On every model update: run the full probe set, compare outputs to baseline. Significant divergence (>5% change in expected outputs) triggers a poisoning alert. 3) Backdoor probe tests: test specific trigger phrases that shouldn't activate unusual behavior. 4) Statistical output distribution: monitor token probability distributions — poisoned models often show unusual distribution shifts. This is not perfect (sophisticated poisoning can evade behavioral tests) but catches most practical attacks.