What Happened
Why The Worm Name Matters
What Indie AI Builders Can Actually Do
- Lock your dependencies. Use a lockfile. Commit it. Review diffs in lockfiles like you would review diffs in code. A lockfile review is the cheapest supply-chain control you will ever buy.
- Watch the top of the graph, not just the leaves. The interesting question is not "what did I install" but "what does this depend on, and who maintains that." Tools exist for this. Use one.
- Separate training from production. If you train models on a workstation that also holds your deployment credentials, an attacker who lands in one gets both. Train in an environment with a narrow blast radius.
A Quieter Lesson
Sources
- Semgrep, "Malicious dependency in PyTorch Lightning used for AI training" (2026-04-30): https://semgrep.dev/blog/2026/malicious-dependency-in-pytorch-lightning-used-for-ai-training/