In a stark reminder of the fragility of the modern software supply chain, LiteLLM—a critical tool used by developers to unify Large Language Model (LLM) APIs—has suffered a severe security breach. On Wednesday, October 21, 2026, malicious actors successfully injected a backdoor into the LiteLLM project, pushing compromised versions of the software to both the Python Package Index (PyPI) and Docker registries. This incident, which allowed attackers to siphon cloud credentials, API keys, and sensitive developer secrets from unsuspecting users, has sent shockwaves through the AI engineering community.
With LiteLLM boasting approximately 23 million weekly downloads, the reach of this compromise is vast. Security researchers from Wiz, Socket, and Aikido have confirmed that the malicious code did not merely sit dormant; it was actively exploited to conduct "LLMjacking"—the unauthorized use of hijacked cloud resources to run AI models—within hours of the initial infection.
Chronology of a Digital Heist
The attack was a masterclass in operational security (OPSEC) for the perpetrators, who moved with clinical precision to compromise the LiteLLM release pipeline. According to internal investigations, the incident unfolded as follows:
- The Initial Breach: The attackers gained access to an internal LiteLLM deployment that was exposed to the public internet. Investigators believe this access was facilitated by a recently patched vulnerability. Once inside, the threat actors harvested sensitive data from the deployment’s logs, specifically targeting GitHub CLI OAuth tokens.
- Pipeline Hijacking: Utilizing the stolen OAuth tokens of three LiteLLM engineers, the attackers systematically dismantled the project’s security gates. One account was used to alter the release pipeline, a second to approve the malicious pull request, and a third to delete workflow records, effectively obfuscating their tracks.
- The Poisoned Release: At 4:00 AM PST on October 21, the attackers triggered the release of version v1.107.0.
- Dissemination: The malicious package remained on PyPI from 11:39 to 13:23 UTC. Simultaneously, compromised Docker images—tagged
v1.107.0,latest,main-latest, andmain-stable—were served to the public from 11:46 to 14:20 UTC. - The Discovery: Once alerted to the anomaly, LiteLLM engineers identified the breach, pulled the malicious versions, and began an emergency incident response.
The Anatomy of the Malware: Silent and Persistent
Security firm Socket, which provided a deep-dive analysis of the malicious artifacts, noted that the compromise was far more aggressive than a standard credential scraper. The malicious code was integrated into Python startup files. This architectural choice meant that the malware executed automatically whenever Python was invoked in an affected environment, regardless of whether the LiteLLM library itself was explicitly called.
The breadth of the data collection was comprehensive. The stealer was programmed to hunt for:
- Cloud Credentials: AWS, Azure, and Google Cloud Platform keys.
- Container Orchestration Secrets: Kubernetes configuration files and connection strings.
- Developer Identity: SSH keys, GPG keys, Git credentials, and shell history.
- Browser Data: Cookies, browsing history, and saved logins.
- AI-Specific Assets: Authentication files for Claude, Gemini, Cursor, and Codex, as well as sensitive model settings stored within LiteLLM proxy databases.
The attackers utilized a typosquatted repository name—Berri-AI/litellm (with a hyphen) versus the legitimate BerriAI/litellm—to mask the malicious build records. Once harvested, the stolen data was encrypted and exfiltrated to a "healthcheck" endpoint on the litellm.dev domain. A secondary payload maintained persistence by periodically polling a GitHub file for instructions to download and execute additional remote code, ensuring the attackers could pivot their strategy as needed.
Official Responses and Remediation
LiteLLM has been transparent regarding the incident, emphasizing that while their public registries were compromised, enterprise customers utilizing private, secured registries remained insulated from the breach.
"We believe the attacker gained access to our internal deployment through a recently patched vulnerability," the company stated in its official post-mortem. "We have not yet confirmed the exact entry point, but we are working to rotate every authentication token across our entire organization."

The consensus among industry security experts is that updating to the latest version (v1.106.2) is insufficient. Because the malware was designed to exfiltrate secrets, those secrets must be considered burned.
"Anyone who installed 1.107.0 before it was pulled should treat their credentials as permanently compromised," advised Ilyas Makari of Aikido. "Rotation of all API keys, cloud tokens, and SSH secrets is the only path to safety."
Implications for the AI Ecosystem
This incident is particularly alarming because it targets the "plumbing" of the AI revolution. Developers use LiteLLM to simplify the integration of various LLMs into their applications. By compromising such a high-leverage dependency, the attackers achieved a force-multiplier effect, gaining access to the infrastructure of thousands of organizations, including high-profile tech entities.
The Rise of LLMjacking
Wiz researchers documented the attackers putting their haul to work within four and a half hours of the infection. By testing stolen AWS credentials against Amazon Bedrock, the perpetrators were able to perform LLMjacking. In several instances, the attackers went further, performing reconnaissance on internal IAM roles, user lists, and access policies. This indicates that the goal was not just theft, but sustained, unauthorized access to high-compute AI environments.
Supply Chain Fragility
The reliance on GitHub CLI OAuth tokens for automated CI/CD pipelines has emerged as a significant security bottleneck. When a developer’s token is compromised, the entire release pipeline effectively becomes an extension of the attacker’s local machine. This breach highlights a critical need for:
- Strict Token Scoping: Reducing the permissions granted to CI/CD tokens.
- Log Integrity: Moving logs to immutable storage that cannot be deleted by the same accounts that trigger builds.
- Deployment Hardening: Ensuring that internal deployments—even those used for testing—are not reachable from the public internet and are subjected to the same security rigors as production environments.
Lessons Learned and Future Outlook
The LiteLLM incident is a sobering reminder that the "move fast and break things" philosophy of the AI boom is creating a massive surface area for sophisticated threat actors. In August, analysts at Hudson Rock and CloudSEK linked an earlier supply chain attack on LiteLLM to nearly 2,500 corporate domains, including industry giants like Samsung, Cisco, and Salesforce. That this has happened again suggests a persistent interest by attackers in the LLM supply chain.
For organizations relying on open-source AI tools, the takeaway is clear: dependency auditing must evolve from a "check-the-box" activity to a continuous, proactive security practice. Software Composition Analysis (SCA) tools must be paired with behavioral monitoring to detect when a package attempts to access system-level startup files or exfiltrate environment variables.
As the investigation continues, LiteLLM users are urged to audit their cloud environment logs for any anomalous activity following the October 21 window. The cost of this breach will be measured not just in the potential loss of data, but in the extensive, labor-intensive process of rotating credentials across thousands of distributed systems. In an era where AI models are the new gold, the tools that connect them have become the most valuable real estate for cybercriminals.

