# LiteLLM supply chain compromise: What you need to know

DevFeed: [LiteLLM supply chain compromise: What you need to know](<https://devfeed.tech/articles/litellm-supply-chain-compromise-what-you-need-to-know-93911.md>)

Original publisher: [Read original article](<https://securitylabs.datadoghq.com/articles/litellm-compromised-pypi-docker/>)

Author: Ian Kretz

Published: 2026-10-21T00:00:00Z

Content type: news

Language: en

Sources: [Datadog Security Labs](<https://devfeed.tech/sources/datadog-security-labs.md>)

Topics: [litellm attack](<https://devfeed.tech/topics/litellm-attack.md>), [software supply-chain attack](<https://devfeed.tech/topics/software-supply-chain-attack.md>), [malicious packages](<https://devfeed.tech/topics/malicious-packages.md>), [litellm](<https://devfeed.tech/topics/litellm.md>), [PyPI](<https://devfeed.tech/topics/pypi.md>)

Tags: [2026](<https://devfeed.tech/tags/2026.md>), [aes](<https://devfeed.tech/tags/aes.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-coding-tools](<https://devfeed.tech/tags/ai-coding-tools.md>), [ai-tool](<https://devfeed.tech/tags/ai-tool.md>), [analysis](<https://devfeed.tech/tags/analysis.md>), [api](<https://devfeed.tech/tags/api.md>), [api-keys](<https://devfeed.tech/tags/api-keys.md>), [audit](<https://devfeed.tech/tags/audit.md>), [aws](<https://devfeed.tech/tags/aws.md>), [azure](<https://devfeed.tech/tags/azure.md>), [backdoor](<https://devfeed.tech/tags/backdoor.md>), [browser](<https://devfeed.tech/tags/browser.md>), [browsers](<https://devfeed.tech/tags/browsers.md>), [build](<https://devfeed.tech/tags/build.md>), [litellm](<https://devfeed.tech/tags/litellm.md>), [malicious](<https://devfeed.tech/tags/malicious.md>), [pypi](<https://devfeed.tech/tags/pypi.md>), [supply-chain](<https://devfeed.tech/tags/supply-chain.md>), [supply-chain-compromise](<https://devfeed.tech/tags/supply-chain-compromise.md>)

## AI overview

On October 21, 2026, malicious LiteLLM v1.107.0 releases appeared on PyPI and official Docker images for about two hours. The package added `cook.pth`, `cook.py`, and `sitecustomize.py`, causing credential-stealing code to run whenever Python starts, even if LiteLLM is never imported; a separate hourly backdoor was also present, though no second-stage payload was observed. Attackers reportedly used stolen GitHub CLI OAuth tokens to run LiteLLM's release workflow against a malicious, lookalike fork, producing releases through normal channels with provenance that recorded that fork. To respond, manually remove the three files from `site-packages` (uninstalling LiteLLM alone does not remove them), remove associated v1.107.0 artifacts, revert to v1.106.2, rotate affected credentials from a clean machine, and audit logs for misuse. The excerpt also recommends restricting release workflows to approved repositories and protecting developer CLI tokens.

## Source excerpt

Malicious releases of LiteLLM v1.107.0 were published to PyPI and container registries following multiple maintainer account compromises.