How LLM Supply-Chain Attacks Work and How to Defend Against Them

· Original article ↗

Summary

An explainer of LLM supply-chain risks across models, packages, data, and serving platforms, with examples of attacks and layered controls such as artifact pinning, isolation, provenance checks, and behavioral testing.

Key points

  • Third-party components—including models, adapters, packages, datasets, and serving tools—can expose LLM applications to malicious code, altered behavior, or poisoned data.
  • Examples include malicious model files that exploit pickle loading, backdoored models that evade ordinary evaluations, compromised package releases, and poisoned datasets.
  • The article describes scanner bypasses, including CVE-2025-10155, CVE-2025-10156, and CVE-2025-10157, and a PyTorch loading flaw, CVE-2025-32434.
  • Model transformations such as merging and quantization can introduce or reveal malicious behavior; cited research found substantial increases in insecure code generation and targeted content injection after quantization.
  • Recommended controls include maintaining an AI bill of materials, pinning artifacts to immutable references, verifying provenance, vetting suppliers, and isolating untrusted model loading.
  • The article also recommends testing the exact model and transformed artifacts deployed, and repeating behavioral tests after changes.

Article Details

Topic
LLM supply chain attack techniques, incidents, vulnerabilities, and defenses

Indicators of compromise

TypeIndicatorContext
IPV4210[.]117[.]212[.]93IP address used by a malicious Hugging Face model to open a reverse shell when loaded.

MITRE ATT&CK

CVE

People

Vendors

Products

Amazon Elastic Kubernetes ServiceHugging Face Inference API and combined code execution on load with misconfigurations in the underlying Amazon EKS cluster to gain access that could reach other customers' models.Azure AI Foundry Model CatalogThey found orphaned models still listed in Google Vertex AI Model Garden and reusable model references in the Azure AI Foundry Model Catalog.Google Vertex AI Model GardenThey found orphaned models still listed in Google Vertex AI Model Garden and reusable model references in the Azure AI Foundry Model Catalog.Hugging Face Inference APIIn April 2024, Wiz researchers uploaded a malicious pickle-based model to the Hugging Face Inference API and combined code execution on load with misconfigurations in the underlying Amazon EKS cluster to gain accessHugging Face SpacesThey also showed remote code execution through a crafted Dockerfile on Hugging Face Spaces, with the ability to overwrite images in an internal container registry.LiteLLMIn March 2026, attackers published two malicious releases of LiteLLM, a widely used proxy layer for LLM providers, to PyPI.Nvidia Container ToolkitIn September 2024, CVE-2024-0132 in the NVIDIA Container Toolkit showed that a crafted container image could escape to the host file system of a GPU server and take full control of the host.OllamaOWASP points to heap overflows in the parser for GGUF, the model file format that llama.cpp and Ollama use to run models locally, such as CVE-2024-23496, as an example [1].PyTorchPickle deserialization attacks hide executable code in PyTorch model files, which run it when the model is loaded.RayThe ShadowRay attacks exploited CVE-2023-48022 in Ray.

Tools

Related Articles