How to Check Endpoints for the Compromised LiteLLM 1.82.7 and 1.82.8
On March 24, 2026 two malicious LiteLLM releases were published to PyPI. They were live for less than an hour, but LiteLLM is a common dependency of agent frameworks and MCP servers, so many machines got it without anyone choosing to install it. Here is what happened, according to LiteLLM's own incident report, and how to check laptops, virtual environments, WSL and containers.
Short answer. Look for two things on every machine that runs Python: a litellm-1.82.7.dist-info or litellm-1.82.8.dist-info folder in any site-packages, and a file named litellm_init.pth. Check DNS and proxy logs for models.litellm.cloud and checkmarx.zone. If you find any of them, LiteLLM's guidance is to rotate every secret the machine had access to, remove the file, investigate the host and keep the artifacts. The official ghcr.io/berriai/litellm Docker image, LiteLLM Cloud, installs from the GitHub source and machines that stayed on 1.82.6 or earlier were not affected.
What happened
LiteLLM is a Python SDK and AI gateway that gives one interface to many model providers. According to LiteLLM's incident report:
- The compromised packages were
litellm==1.82.7andlitellm==1.82.8on PyPI. They went live on March 24, 2026 at 10:39 UTC and were quarantined by PyPI about 40 minutes later. LiteLLM treats pip installs or upgrades between 10:39 and 16:00 UTC that day as possibly affected. - 1.82.7 carried a malicious payload in the gateway's
proxy_server.py. 1.82.8 carried the same payload plus a file calledlitellm_init.pth. - The payload collected environment variables, SSH keys, AWS, GCP and Azure credentials, Kubernetes tokens and database passwords, encrypted them and sent them to
models.litellm.cloud, a domain not affiliated with LiteLLM.checkmarx.zonewas later added to the indicators. - LiteLLM believes the attackers got its publishing credentials through the compromised Trivy dependency in its CI/CD security scanning. The GitHub source repository was not compromised.
The .pth file is what made 1.82.8 worse. Python reads .pth files in site-packages every time the interpreter starts, and lines that begin with import are executed. So once 1.82.8 was installed in an environment, any Python program started from that environment could run the payload, even one that never imports LiteLLM.
Why laptops are in scope
LiteLLM's report lists three ways to be affected: a direct pip install litellm without a pinned version, a Docker image built in that window with an unpinned install, or LiteLLM pulled in as an unpinned transitive dependency of something else, such as an AI agent framework, an MCP server or an LLM orchestration tool.
The third one is why this is an endpoint problem and not only a CI problem. A developer who installed an agent framework or a Python MCP server that day may have LiteLLM without knowing it, in a virtual environment nobody inventories. Developer laptops also hold exactly what the payload looked for: SSH keys, cloud CLI credentials, kubeconfigs and API keys in environment variables.
Check one machine
Run these as the user who uses Python, not as SYSTEM or root only: per-user installs live in the home folder. On Windows, repeat the Linux commands inside each WSL distro, because WSL has its own Python installs.
macOS and Linux
# Every installed LiteLLM version, in any site-packages under these folders
find "$HOME" /usr /opt /Library -type d -name 'litellm-*.dist-info' 2>/dev/null
# The .pth launcher used by 1.82.8
find "$HOME" /usr /opt /Library -name 'litellm_init.pth' 2>/dev/null
# Wheels still sitting in the pip cache (they would reinstall the same version)
python3 -m pip cache list litellm 2>/dev/null
The folder name carries the version, for example litellm-1.82.8.dist-info. Anything other than 1.82.7 or 1.82.8 is not one of the two compromised releases.
Windows (PowerShell)
$roots = $env:USERPROFILE, $env:LOCALAPPDATA, $env:APPDATA, $env:ProgramFiles, 'C:\ProgramData'
# Installed LiteLLM versions
Get-ChildItem -Path $roots -Recurse -Directory -Filter 'litellm-*.dist-info' -ErrorAction SilentlyContinue |
Select-Object FullName
# The .pth launcher used by 1.82.8
Get-ChildItem -Path $roots -Recurse -File -Filter 'litellm_init.pth' -ErrorAction SilentlyContinue |
Select-Object FullName, LastWriteTime
A recursive search of the profile can take a few minutes on a developer machine with many projects. That is expected: virtual environments are usually inside project folders.
Containers
For images you build yourself, check the installed version inside the image, not only the Dockerfile:
docker run --rm --entrypoint sh IMAGE -c 'pip show litellm 2>/dev/null | grep -i ^version; find / -name litellm_init.pth 2>/dev/null'
Images built on March 24, 2026 with an unpinned LiteLLM, directly or through a dependency, are the ones to look at first.
Check a fleet
- Network logs first. Search DNS, proxy and firewall logs for
models.litellm.cloudandcheckmarx.zone. A hit tells you which device to look at, though it will not catch a machine that had the package but could not reach the domain. - osquery. The
python_packagestable lists packages in the Python locations osquery knows about:SELECT name, version, path FROM python_packages WHERE name = 'litellm';. Project virtual environments are often outside those locations, so combine it with a file search forlitellm_init.pth. - MDM or RMM script. Push the commands above through Intune, Jamf, Kandji or your RMM. Run them in user context, or they will miss per-user installs and WSL distros.
- EDR. Search file events for
litellm_init.pthand process events for Python processes that started a child process right at interpreter startup around March 24. What you can query depends on your EDR's retention. - CI/CD. LiteLLM's report links community scripts for GitHub Actions and GitLab CI logs. Their default time window is not March 24, so adjust it before running them, and read them first.
If you find it
LiteLLM's recommended actions, in order:
- Rotate every secret on the affected system: API keys, cloud access keys, database passwords, SSH keys, Kubernetes tokens, and any secret in environment variables or config files.
- Remove
litellm_init.pth, investigate the host for further compromise and preserve artifacts for forensics. - Audit version history in local environments, CI/CD pipelines, Docker builds and deployment logs to confirm whether 1.82.7 or 1.82.8 was installed.
- Pin LiteLLM to 1.82.6 or earlier, or to a later verified release such as 1.83.0.
Removing the package or the file stops it from running again. It does not undo what already ran, which is why rotation comes first.
What Kuntur does and does not cover
We want to be precise here. Today Kuntur reports LiteLLM where it finds it: as an AI SDK in Python environments in common locations (system and user site-packages, conda, pyenv, ~/.venv) and in the environments of running Python processes, and as a container when the official ghcr.io/berriai/litellm image is running. That tells you which machines and users have LiteLLM at all, which narrows where to run the checks above.
It does not yet report the installed LiteLLM version, and it does not flag litellm_init.pth. For this incident, use the commands and queries on this page. Kuntur also never blocks or removes anything; remediation stays with you.
To see which AI tools and SDKs one machine has, run the free scanner as the user:
Windows (PowerShell)
irm https://app.kuntur.io/scan.ps1 | iexmacOS and Linux (Terminal)
curl -fsSL https://app.kuntur.io/scan.sh | shIt needs no account and no admin rights, writes an HTML report to the Desktop (or home folder) and uploads nothing. You can read scan.ps1 or scan.sh before running it; what it collects is documented.
Free for up to 5 endpoints. Pro is US$3 per endpoint per month (or US$30 per endpoint per year) for 10 to 30 endpoints. The trial needs no credit card.
FAQ
- Was the official LiteLLM Docker image affected?
- No. LiteLLM says users of the official proxy image
ghcr.io/berriai/litellmwere not affected, because it pins its dependencies. Images you built yourself with an unpinnedpip install litellmon March 24, 2026 can be. - Is LiteLLM 1.82.6 safe?
- LiteLLM lists 1.82.6 and earlier as not affected, and publishes SHA-256 checksums for the releases it audited. 1.83.0 was the first release from its rebuilt pipeline.
- Do I need to import LiteLLM to be affected?
- Not with 1.82.8. Its
litellm_init.pthfile runs whenever Python starts in that environment, whether or not anything imports LiteLLM. With 1.82.7 the payload was in the gateway'sproxy_server.py. - Was the GitHub repository compromised?
- LiteLLM says no: the two versions were published directly to PyPI and installs from the GitHub source were not affected.
Sources
- LiteLLM: Security Update, Suspected Supply Chain Incident (March 2026)
- Python documentation: the site module and .pth files
- osquery schema: python_packages table
- PyPI: litellm release history
More guides and tools: