Back to Feed
Supply ChainOct 21, 2026

LiteLLM PyPI Package and Docker Images Compromised to Steal Cloud and AI Credentials

LiteLLM 1.107.0 PyPI package and Docker images compromised with credential stealer via Python startup hooks.

Vendor Watch

Run Socket (AI scanner)?

Get an email when a reviewed story names Socket (AI scanner), usually within the hour.

Free. Your list stays private and never appears in a subject line. One click stops it. How Vendor Watch worksPrivacy

Summary

LiteLLM version 1.107.0 was compromised in a supply chain attack distributing malicious Python wheels and container images designed to steal cloud credentials, API keys, and developer secrets. The attack leveraged a lookalike GitHub repository (Berri-AI/litellm instead of BerriAI/litellm) in the project's release workflow, with malware activated through Python startup hooks that execute without explicit LiteLLM imports. Socket's AI scanner detected the compromise within seven minutes of PyPI publication across seven affected wheel distributions and container images.

The lesson from this incident

Full lesson

Attackers compromised LiteLLM version 1.107.0 by injecting malicious code through a lookalike GitHub repository (Berri-AI vs. BerriAI), exploiting insufficient verification in the project's release workflow. The malware used Python startup hooks to execute silently — without any explicit LiteLLM import — making it exceptionally stealthy and difficult for developers to detect manually. This attack demonstrates how a single weak link in a CI/CD pipeline can expose cloud credentials, API keys, and developer secrets at scale across all downstream users. The incident underscores why automated integrity verification and provenance checks for open-source packages are no longer optional for teams handling sensitive infrastructure.

What helps against this

How we list vendors

Indicators of Compromise

  • url — https://github.com/Berri-AI/litellm

Entities

LiteLLM (product)PyPI (technology)Python startup hooks (technology)Socket (AI scanner) (vendor)Upwind (security investigation) (vendor)LiteLLM supply chain attack (October 2026) (campaign)