On 24 March 2026 malicious litellm versions 1.82.7 and 1.82.8 were published to PyPI and were live for about 40 minutes before PyPI quarantined them. LiteLLM says its PyPI, GHCR and Docker publishing credentials were exposed through a compromised, unpinned Trivy dependency in its CI. Datadog found the payload harvested cloud keys, SSH keys, Kubernetes data and CI secrets; anyone who installed either version should treat the host as compromised and rotate what it could reach.
| Disclosed | March 24, 2026 |
|---|---|
| Earliest known activity | March 24, 2026 |
| Affected | LiteLLM (BerriAI), litellm, PyPI |
| Type | Supply chain |
| Status | Resolved |
What was exposed
According to Datadog Security Labs, the payload collected environment variables, SSH keys, cloud credentials, Kubernetes data, Docker configs, shell history, database credentials, wallet files and CI/CD secrets, encrypted them with an AES-256 session key wrapped in RSA-4096, and sent them to models.litellm[.]cloud. In 1.82.7 the code sat in litellm/proxy/proxy_server.py and ran when the proxy module was used. In 1.82.8 a litellm_init.pth file ran it at every Python interpreter start, whether or not LiteLLM was imported. Datadog also describes persistence through ~/.config/sysmon/sysmon.py and a user systemd unit, and, where a Kubernetes service-account token was usable, privileged node-setup-* pods. LiteLLM is a gateway that typically holds API keys for many model providers, so environments running it often have several provider keys in their environment.
Am I affected?
You are affected if any machine, container or CI job installed litellm==1.82.7 or litellm==1.82.8 on 24 March 2026, including through an unpinned dependency. Check lockfiles, pip freeze output and image build logs. On hosts, look for litellm_init.pth in site-packages, ~/.config/sysmon/sysmon.py, ~/.config/systemd/user/sysmon.service, /tmp/pglog or /tmp/.pg_state. In Kubernetes, look for unexpected node-setup-* pods. Datadog suggests also checking services pinned to 1.82.6 that may have floated during the window.
What to do now
- Treat affected hosts as compromised: rebuild them from known-good images rather than only reinstalling the package.
- Rotate every credential the host or job could read, prioritizing package publishing tokens, CI/CD secrets, cloud and Kubernetes credentials, and the model provider keys LiteLLM was configured with.
- Remove the persistence files and any
node-setup-*pods, and review Kubernetes audit logs for secret access. - Block
models.litellm[.]cloudandcheckmarx[.]zoneat egress and hunt for past connections. - Pin
litellmto a verified version and verify GHCR images with cosign as LiteLLM describes.
Keys to rotate
Guides to the credentials this incident put at risk:
- Rotate OpenAI keys
- Rotate Anthropic keys
- Rotate AWS (IAM access keys) keys
- Rotate Google Cloud (service account keys and API keys) keys
- Rotate Azure (Microsoft Entra app client secrets) keys
- Rotate PyPI keys
- Rotate GitHub keys
Timeline
- LiteLLM v1.82.7 is pushed to PyPI at 10:39 UTC and v1.82.8 soon after; PyPI quarantines them after about 40 minutes, and they are deleted by 16:00 UTC. Source
- Datadog Security Labs reports malicious Telnyx 4.87.1 and 4.87.2 on PyPI in the same campaign. Source
- LiteLLM publishes its security town hall update: forensics with Mandiant, no malicious code on
main, no lateral movement found, credentials rotated, releases paused. Source
Indicators
From the advisories listed below. Use them to search your logs, lockfiles and workflow runs.
litellm1.82.7 and 1.82.8 on PyPI;litellm_init.pthin site-packages.~/.config/sysmon/sysmon.pyand~/.config/systemd/user/sysmon.service.- Connections to
models.litellm[.]cloudwith headerX-Filename: tpcp.tar.gz, or polling ofcheckmarx[.]zone/raw.
What this changes for credential handling
- Release credentials were static secrets shared by every CI step, including a third-party scanner. BotPassword binds publishing credentials to one approved step instead of the whole pipeline environment.
Frequently asked questions
Am I affected by the LiteLLM (BerriAI) incident?
You are affected if any machine, container or CI job installed litellm==1.82.7 or litellm==1.82.8 on 24 March 2026, including through an unpinned dependency. Check lockfiles, pip freeze output and image build logs. On hosts, look for litellm_init.pth in site-packages, ~/.config/sysmon/sysmon.py, ~/.config/systemd/user/sysmon.service, /tmp/pglog or /tmp/.pg_state. In Kubernetes, look for unexpected node-setup-* pods. Datadog suggests also checking services pinned to 1.82.6 that may have floated during the window.
What was exposed in the LiteLLM (BerriAI) incident?
According to Datadog Security Labs, the payload collected environment variables, SSH keys, cloud credentials, Kubernetes data, Docker configs, shell history, database credentials, wallet files and CI/CD secrets, encrypted them with an AES-256 session key wrapped in RSA-4096, and sent them to models.litellm[.]cloud. In 1.82.7 the code sat in litellm/proxy/proxy_server.py and ran when the proxy module was used. In 1.82.8 a litellm_init.pth file ran it at every Python interpreter start, whether or not LiteLLM was imported. Datadog also describes persistence through ~/.config/sysmon/sysmon.py and a user systemd unit, and, where a Kubernetes service-account token was usable, privileged node-setup-* pods. LiteLLM is a gateway that typically holds API keys for many model providers, so environments running it often have several provider keys in their environment.
Which keys should I rotate?
Rotate any OpenAI, Anthropic, AWS (IAM access keys), Google Cloud (service account keys and API keys), Azure (Microsoft Entra app client secrets), PyPI, GitHub credentials that were reachable from affected systems, starting with the ones that can publish code or reach production.
Other supply-chain compromises
- LiteLLM 1.107.0 on PyPI and Docker carried a credential stealer after a leaked master key 2026-10-21
- tensorlake 0.5.144 on npm shipped a Shai-Hulud variant with a wipe-on-revoke dead-man's switch 2026-10-08
- keyv, flat-cache and cache-manager npm releases carried a CI-secret stealer with a revocation trap 2026-08-04
- 32 @redhat-cloud-services npm packages compromised after a VS Code extension hijacked a GitHub account 2026-06-01
- 14 typosquatted OpenSearch and DevOps npm packages stole AWS, Vault, GitHub Actions and npm secrets 2026-05-28
- Nx Console 18.95.0 VS Code extension shipped a credential stealer after a TanStack infection 2026-05-18