LiteLLM 1.107.0 PyPI/Docker supply-chain compromise
LiteLLM (PyPI + official Docker/GHCR images)
Sponsored
Brought to you byTinkerer Club
The private club for people who own their servers, run their own AI, and pay $0/month for software.
On Oct 21 2026 attackers compromised LiteLLM’s release pipeline and published malicious litellm==1.107.0 to PyPI (live ~2 hours) plus compromised Docker Hub/GHCR tags (v1.107.0, latest, main-latest, main-stable). The wheels install cook.pth / cook.py / sitecustomize.py that steal cloud, developer and AI-tool credentials at every Python startup and open a remote-code loader. Second LiteLLM compromise of 2026.
Why this severity: Critical supply-chain (credential theft + RAT); OSV MAL-2026-2144 / PYSEC-2026-2
- Started
- Oct 21, 2026
Affected
- litellm==1.107.0; Docker/GHCR tags v1.107.0, latest, main-latest, main-stable during the Oct 21 window
Fixed in
- 1.106.2 (pin; last known safe). Malicious 1.107.0 removed from PyPI, Docker Hub and GHCR
Timeline12
SecurityWeek: the malicious 1.107.0 packages were online for roughly three hours and are estimated to have been downloaded over 49,000 times; enterprise customers pulling from LiteLLM’s private repository were not affected.
Socket finds secret-stealing workflows (.github/workflows/cache.yml, "ci: bump cache config") ran successfully in BerriAI/litellm on Oct 10 and Oct 12 from throwaway ci-tmp-* branches, posting 20 CI secrets (GH_TOKEN, a GitHub App private key, OpenAI/Anthropic/Bedrock keys, database and Redis credentials) to webhook.site, 11 days before the malicious release. Per Socket, LiteLLM's own investigation traced initial access to an Agent Platform master key committed to a public repository in May and never revoked, and links the GH_TOKEN stolen on Oct 10 to approval of the Oct 21 release.
LiteLLM publishes its root cause: a config file committed to the public LiteLLM-Labs/lite-harness repo on May 27 held the master key to a LiteLLM Agent Platform deployment, and that key was never revoked. On Oct 10 the attacker (from 69.48.229.143) used it to pull an unscoped GitHub CLI OAuth token belonging to the GitHub org owner, then ran throwaway workflows to grab two maintainers' tokens, which they used on Oct 21 to trigger and approve the release (the two-engineer approval rule had been relaxed that week for backports). LiteLLM says it is revoking every token on its internal systems and vendor platforms.
LiteLLM root cause: attacker held three developer GitHub CLI tokens, likely scraped from logs of an internet-exposed internal LiteLLM deployment (Claude Code can echo a gh OAuth token into logged response bodies), disabled branch protection and ran the release workflow against lookalike repo Berri-AI/litellm.
StepSecurity full teardown: payload exfiltrates to lookalike www.litellm.dev (registered Oct 13) and an hourly loader polls a GitHub dead drop (letters9813/pythonclient-test, now deleted). Infected hosts keep polling, so anyone re-registering that username could run code on them: kill the process holding /tmp/remote_code_loader.lock, delete cook.pth/cook.py/sitecustomize.py, pin 1.106.2 and rotate everything.
Malicious 1.107.0 wheels appear on PyPI.
Malicious litellm==1.107.0 (all seven wheels) live on PyPI 11:39-13:23 UTC; Docker tags v1.107.0/latest/main-latest/main-stable compromised 11:46-14:20 UTC.
PyPI quarantines/pulls the package (~2h window).
Docker Hub tags cleaned / retargeted; GHCR images made unavailable earlier.
Wiz sees stolen AWS instance-role credentials validated from 168.100.8.57 and 165.227.201.8 (sts:GetCallerIdentity, then Bedrock model listing), consistent with LLMjacking.
LiteLLM posts containment update; investigation ongoing.
LiteLLM temporarily expands release permissions for two internal engineers (daily bugfix backports).
Advisories1
News & write-ups13
- LiteLLM supply chain attack started with an exposed master keyThe Register · Oct 26, 2026
- Leaked LiteLLM Master Key Let Attackers Steal GitHub Tokens and Hijack Release PipelineThe Hacker News · Oct 24, 2026
- LiteLLM Compromised in Fresh Supply Chain AttackSecurityWeek · Oct 23, 2026
- LiteLLM release pipeline hacked to distribute info-stealer malwareBleepingComputer · Oct 22, 2026
- LiteLLM hit by second supply chain attack this year, users urged to rotate credentialsHelp Net Security · Oct 22, 2026
- litellm 1.107.0 Compromised on PyPI: Backdoored Wheels Drop a Credential Stealer and an Hourly Remote Code LoaderStepSecurity · Oct 21, 2026 · Write-up
- Contained: Oct 21, 2026 LiteLLM release v1.107.0 CompromisedLiteLLM · Oct 21, 2026 · Write-up
- Datadog Security Labs analysisDatadog · Oct 21, 2026 · Write-up
- Wiz: LiteLLM Compromised, Steals CredentialsWiz · Oct 21, 2026 · Write-up
- LiteLLM Hijacked Again: Malicious 1.107.0 Wheels Steal Credentials and Load Remote CodeJFrog Security Research · Oct 21, 2026 · Write-up
- LiteLLM Suspects GitHub Token Leak in AI Gateway Logs Behind Malicious Package ReleaseThe Hacker News · Oct 22, 2026
- LiteLLM PyPI Package and Docker Images Compromised to Steal Cloud and AI CredentialsSocket · Oct 21, 2026 · Write-up
- New Evidence Shows LiteLLM Secret-Stealing Workflows Ran 11 Days Before Supply Chain AttackSocket · Oct 23, 2026 · Write-up
Posts6

🚨 LiteLLM reveals the root cause of its supply chain attack. A master key leaked on GitHub in May was never revoked, allowing attackers to access its Agent Platform, steal a GitHub owner token, and publish a malicious PyPI release in October. Read: t.co/KfE5QuX1Zs

🚨 LiteLLM, a Python package for connecting to AI model providers with 92M+ monthly downloads, has been compromised. Version 1.107.0 ships credential-stealing malware through PyPI wheels and Docker images, targeting cloud credentials, developer secrets, and AI tools. t.co/4Mbt1LbhLu

🚨 LiteLLM 1.107.0 compromised in a supply chain attack. Malicious PyPI packages and Docker images delivered a credential stealer and backdoor. ⚠️ The malware runs at Python startup, targeting cloud credentials, private keys, and AI tool credentials. 🔗 Full story: t.co/ANqBuYaGx5

❗ If 2 PHP vulns weren't enough for one day (or, 0-day?) - LiteLLM were compromised today by a combined RAT Infostealer malware! TLDR - LiteLLM PyPI ver 1.107.0 is compromised, if you installed it - revoke keys and change passwords ASAP. The malware combines two threats in one t.co/WjpMeKcVgg

‼️ Breaking: LiteLLM Compromised – Infostealer and RAT Injected in 1.107.0 PyPI Release Details: t.co/8rlH8xijjj LiteLLM version 1.107.0 was compromised on PyPI on October 21, 2026, spreading a credential stealer and a remote access trojan through all seven distributed t.co/caDoffOmFx

LiteLLM hit by second supply chain attack this year, users urged to rotate credentials - t.co/7iolIMAKe8 - @GossiTheDog @RockHudsonRock @cloudsek @wiz_io @AikidoSecurity @SocketSecurity - #LiteLLM #SupplyChainAttack #OpenSource #malware #Cybersecurity #CyberSecurityNews t.co/ZLPywonXYC
Notes & caveats
Package pulled but any host that installed 1.107.0 during the window should still be treated as compromised (credential rotation required). MAL-2026-2144 is an OSV malware ID, not a classic CVE. lifecycle live until LiteLLM closes the investigation.
Get an email when a new major security incident drops. No spam, unsubscribe any time.



