A recent supply-chain attack targeting LiteLLM, a widely used open-source AI gateway, has led to the exposure of sensitive credentials from 2,488 companies. This incident underscores the significant risks associated with compromised software dependencies in the development pipeline.
LiteLLM serves as a unified interface for over a hundred large language model providers, including OpenAI, Anthropic, and Google Gemini. With more than 95 million monthly downloads on PyPI, its extensive adoption makes it a critical component in many AI development environments.
The breach originated from a compromise in LiteLLM’s build process, specifically through the Trivy scanning tool. Attackers injected malicious code into the CI/CD environments, enabling them to extract credentials essential for building, testing, and deploying software. The rapid execution of this attack, reportedly within a 40-minute window, highlights the efficiency of automated supply-chain exploits.
Analysts from HudsonRock discovered a 153GB archive linked to this campaign, containing 433,909 files and 118,829 CI runner dumps associated with 2,488 corporate domains. The exposed data includes AWS credentials, GitLab identities, Azure secrets, API tokens, configuration files, and keys for AI services. Such credentials can grant unauthorized access to cloud accounts, code repositories, and internal services, posing significant security threats.
Organizations that utilized LiteLLM versions 1.82.7 or 1.82.8 during the affected period should consider all associated secrets as potentially compromised. Immediate actions include rotating cloud access keys, repository tokens, SSH keys, signing credentials, Kubernetes tokens, and AI-provider keys. Additionally, reviewing build logs, workflow definitions, and runner images for anomalies is crucial.
To mitigate future risks, it’s essential to limit the access privileges of build runners, employ short-lived credentials, separate production from testing environments, and restrict each token’s permissions to the minimum necessary. Ensuring that secrets are not stored in plain environment files and pinning dependencies to verified versions or commit hashes can further enhance security.
This incident serves as a stark reminder of the vulnerabilities inherent in the software supply chain. Organizations must adopt robust security practices to safeguard their development environments against such sophisticated attacks.