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

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
| Type | Indicator | Context |
|---|---|---|
| IPV4 | 210[.]117[.]212[.]93 | IP address used by a malicious Hugging Face model to open a reverse shell when loaded. |
MITRE ATT&CK
T1195.001 · Compromise Software Dependencies and Development ToolsAttackers published malicious packages and compromised software releases through package registries, including PyPI.T1195.002 · Compromise Software Supply ChainAttackers compromised trusted model and software supply-chain components, including models and releases distributed through third-party platforms.T1565.001 · Stored Data ManipulationResearchers demonstrated poisoning web-scale datasets by serving attacker-controlled content from expired domains included in dataset URL lists.
CVE
CVE-2023-48022anyscale · rayThe ShadowRay attacks exploited CVE-2023-48022 in Ray.CVE-2024-0132NVIDIA · Container Toolkit; NVIDIA · GPU OperatorIn 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.CVE-2024-23496ggerganov · llama.cpp; llama.cpp · llama.cppOWASP 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].CVE-2024-37032Ollama · OllamaThe Probllama vulnerability in Ollama (CVE-2024-37032) was disclosed in May 2024.CVE-2025-10155mmaitre314 · picklescanCVE-2025-10155 (JFrog, 2025)CVE-2025-10156mmaitre314 · picklescanCVE-2025-10156 (JFrog, 2025)CVE-2025-10157mmaitre314 · picklescanCVE-2025-10157 (JFrog, 2025)CVE-2025-32434pytorch · pytorchCVE-2025-32434 (PyTorch, 2025)
People
Vendors
AmazonHugging 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.GoogleThey found orphaned models still listed in Google Vertex AI Model Garden and reusable model references in the Azure AI Foundry Model Catalog.Hugging FaceBy April 2025, Protect AI had scanned 4.47 million model versions on Hugging Face and flagged 352,000 unsafe or suspicious issues across 51,700 models [4].MicrosoftThe top 10 most downloaded Google and Microsoft models that had accepted the bot's PRs had more than 16 million downloads in the previous month.NvidiaIn 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.
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.
