On October 21, 2026, attackers published a malicious LiteLLM 1.107.0 release to PyPI and pushed compromised official container tags. LiteLLM is a widely used LLM proxy/library; Datadog noted on the order of 23 million weekly downloads, which is why a short window still mattered.
According to LiteLLM’s incident post and Microsoft’s follow-on analysis, the malicious wheels dropped Python startup hooks (`cook.pth` / `cook.py` and `sitecustomize.py`). Those mechanisms can run when the interpreter starts—without an application importing LiteLLM. The collector targeted cloud credentials, developer-tool secrets, browser material, AI-tool tokens, and LiteLLM proxy configuration data, with encrypted exfiltration to attacker-controlled infrastructure. A second-stage loader path was observed in analysis; public reporting indicated the remote stage appeared dormant during the observed window.
Timeline pressure
PyPI availability was roughly two hours before removal; Docker/GHCR tags took longer to fully clean in some accounts of the incident. “We only had it briefly” is not comforting if CI pulled `latest` during the window.
Microsoft’s guidance is operationally important: do not start Python or pip inside a suspect environment to “check,” because that re-triggers the hooks. Recovery means removing dropped files from outside the tainted interpreter, killing lingering processes, rebuilding environments, and rotating every credential the host could reach.
Why this frightens security teams
AI tooling expanded the secret surface area: provider API keys, proxy databases, IDE tokens, and cloud roles now co-reside on developer laptops and shared runners. A supply-chain implant that runs at interpreter start is a force multiplier. Datadog also noted this was LiteLLM’s second supply-chain incident in 2026—without asserting the same actor.
Defenders should pin versions by hash, avoid floating `latest` in production, monitor package registries for sudden releases, and assume any machine that installed 1.107.0 needs credential rotation—not just `pip uninstall`.