# The AI supply chain under attack, from public evidence.

> The AI supply chain is the packages, models and tools an AI system is built from, and attackers now poison it directly. Public cases include a self-spreading npm worm, malicious releases of a popular AI gateway library and model files that ran code when loaded. Safe model formats, pinning and provenance matter most.

How poisoned packages and unsafe model files reached AI teams, what the evidence says stops them, and where ColossalX fits.

Canonical page: https://colossalx.tech/research/ai-supply-chain · Last reviewed: 7 Nov 2026

*Illustration:* A build · checked: llm-client update to ColossalX; model file to ColossalX; ColossalX refused before build (known malicious).

## The threat and the control

- **The threat:** A dependency or model file you trust runs the attacker's code the moment it is installed or loaded.
- **The control:** Each package and model checked against known-malicious lists and unsafe formats before it runs.

## What has happened, in public cases.

Attackers went for the packages AI teams install every day and for the files models ship in.

- **A self-spreading npm worm (Shai-Hulud 2.0).** Wiz counted 25,000+ affected GitHub repositories. The worm stole publishing tokens and used them to release poisoned versions of more packages.
- **Malicious AI library releases (LiteLLM).** Two releases of a widely used AI gateway library carried malware. The maintainers say the releases were live on PyPI for a window of hours on one day in March, and that their official container image was not affected.
- **Model files that run code (ReversingLabs).** Malicious pickle model files evaded a model hub's scanner. Pickle files can execute code when loaded, and scanners that look for known bad patterns can be bypassed.

*Illustration:* Supply chain · public cases: Feb 2025 Pickle scanner evaded; Nov 2025 Shai-Hulud 2.0; Mar 2026 AI library releases poisoned.

## What the evidence says works.

Safe formats remove a whole class of attack by design. Scanners help, but only as a supplement.

- **Safe model formats (By design).** Formats such as safetensors cannot run code when loaded.
- **Scanning as a supplement (Bypassable).** Pattern-based model scanners miss what they have not seen.
- **Pin, mirror and verify (Root causes).** Pin versions and hashes, and install from an internal mirror.
- **An AI bill of materials (Guidance).** Know which models and AI libraries each system contains.

*Illustration:* Controls · strength of evidence: Safe model formats ends in strong, by design; Model and package scanners ends in bypassable supplement; Pinning and provenance ends in sound, not yet measured.

## Where ColossalX fits.

ColossalX checks the packages, models and images your AI systems are built from.

See the AI-BOM: [AI bill of materials](https://colossalx.tech/platform/ai-bill-of-materials)

- **Known-malicious packages.** Dependencies checked against the OpenSSF malicious-packages list; a match is critical. [Code security](https://colossalx.tech/platform/code-security)
- **Reachability, not just presence.** Whether vulnerable code is actually called, ranked with exploit signals. [Code security](https://colossalx.tech/platform/code-security)
- **Unsafe model files flagged.** Unsafe formats, remote-code loading and loader scripts, inspected, never executed. [Code security](https://colossalx.tech/platform/code-security)
- **An AI-BOM per system.** AI components apart from ordinary libraries, with baselines and drift. [AI bill of materials](https://colossalx.tech/platform/ai-bill-of-materials)
- **Container images scanned.** Images scanned for vulnerable packages, alongside the code. [Code security](https://colossalx.tech/platform/code-security)

*Screen, from a demo workspace:* One repository's bill of materials in a demo workspace: the AI inventory, with an agent framework matched to a threat profile and LLM SDKs, orchestration and MCP listed by kind, above the ordinary software libraries. Callouts: 1. AI parts, listed apart 2. Libraries, listed below

## What ColossalX does not do

- Model signatures are checked offline against a trust root you set, and only where the publisher signed.
- Model file inspection flags unsafe formats and loaders; like any scanner, it can miss new tricks.
- Incident details come from the maintainers and researchers named, and may be incomplete.

*Illustration:* Supply chain · stated plainly: Malicious packages checked against OpenSSF; Model files inspected, never run; Model signatures checked offline. Stated, not implied.

## Questions

### Why are pickle model files risky?

The pickle format can execute code while a file is loaded, so a model shared as a pickle can run an attacker's code on the machine that opens it. Researchers have shown malicious pickles evading a model hub's scanner. Formats such as safetensors store weights without executable code, which removes the risk by design.

### What happened to the LiteLLM package?

In March 2026, two malicious releases of LiteLLM, a widely used library for calling AI models, were published to PyPI. The maintainers say the releases were live for a window of hours that day, that the official container image was unaffected, and that a clean release followed. Teams that pinned versions or installed from a mirror were protected.

### Has slopsquatting been seen in the wild?

Slopsquatting means registering package names that AI assistants invent, so code written with AI pulls in the attacker's package. It has been shown in research, but the briefing behind this page found no verified incident in the wild. Checking new dependencies against known-malicious lists and pinning versions covers it either way.

### How does ColossalX check the AI supply chain?

Each dependency is checked against the OpenSSF malicious-packages list, where a match is critical, and against known-exploited vulnerabilities, with reachability showing whether vulnerable code is actually called. Model files are inspected, never executed, for unsafe formats, remote-code loading and loader scripts, and each system gets an AI-BOM with drift against an approved baseline.

## Sources

- Wiz Research: Shai-Hulud 2.0, 24 Nov 2025: https://www.wiz.io/blog/shai-hulud-2-0-ongoing-supply-chain-attack
- LiteLLM: security update, 24 March 2026: https://docs.litellm.ai/blog/security-update-march-2026
- Infosecurity Magazine: malicious AI models on Hugging Face, February 2025: https://www.infosecurity-magazine.com/news/malicious-ai-models-hugging-face/
- OpenSSF malicious packages: https://github.com/ossf/malicious-packages

---

ColossalX is an AI security and governance platform from Quantexra Labs LLP, delivered as SaaS. Book a walkthrough: https://colossalx.tech/demo · client.success@quantexra.tech
