Malicious LiteLLM 1.82.7 and 1.82.8 on PyPI, and the leaked credential archive
LiteLLM 1.82.7/1.82.8 stole keys.
Are you affected?
The free scanner that answers this opens soon. Until then, the steps below work by hand.
What happened
Malicious LiteLLM 1.82.7 and 1.82.8 stole credentials. Both releases were published to PyPI on 2026-03-24 and are in OSV MAL-2026-2144. Google's open-source security team, cited by OSV, says LiteLLM was compromised through a trivy security scan in a GitHub workflow and that the malicious code exfiltrated secrets to an attacker-controlled domain. The payload runs through a .pth file at every Python interpreter start, without litellm being imported. On 2026-08-13 Help Net Security reported a 153 GB archive of credentials stolen in this attack, which Hudson Rock tied to 2,488 corporate domains.
- Exposure starts
- 2026-03-24
- Exposure ends
- Not known yet (the sources do not say when 1.82.7 and 1.82.8 were removed from PyPI)
- Confidence
- medium
- Scope
- every credential readable on any machine or CI runner where litellm 1.82.7 or 1.82.8 was installed
What to do, in this order
- Isolate affected machines and runners, and remove litellm 1.82.7 or 1.82.8 and its injected .pth file
The payload runs at every Python interpreter start, so it would steal any new credential you create on that host.
- Cloud credentials (AWS, GCP, Azure)
Cloud keys reach everything else on the account.
aws_access_key_id, aws_secret_access_key
- Source-control and package-registry tokens (GitHub, npm, PyPI)
Publishing tokens let an attacker ship the next malicious release under your name.
github_pat, github_oauth_token, github_fine_grained_pat, npm_token
- AI provider keys
LiteLLM is an AI gateway, so the hosts that ran it hold provider keys.
openai_api_key, anthropic_api_key
- Database URLs, private keys and every other secret the host could read
Help Net Security's advice is to treat every secret the environment could reach as compromised.
postgres_url, mysql_url, redis_url, mongodb_url, private_key, anything else stored there
- Rebuild from known-clean artifacts, pinned to an unaffected version
Reinstalling over a dirty environment can keep the .pth hook.
Notes
- Help Net Security reports the advice for 1.82.7 and 1.82.8: treat every secret the affected environment could reach as compromised.
- Credentials stolen in March surfaced in the archive reported on 2026-08-13, so a key that was on an affected host in March and has not been rotated since should be treated as public.
How to tell if you’re affected
- litellm 1.82.7 or 1.82.8 in a lockfile, requirements file or installed environment
- An unexpected .pth file at the site-packages root
Sources
- OSV MAL-2026-2144, malicious code in litellm (PyPI)
- OSV API record for MAL-2026-2144
- Help Net Security: 153GB of stolen credentials surface after LiteLLM supply chain attack
Rotating the keys
Pro, $49 a year when it opens, plans the rotation of each affected key for this incident, in this order. Automatic rotation is in testing and included.
By hand, free: the steps above.