Skip to main content
Mallory
Malware1 associated actor1 associated CVE

LiteLLM

Tracked since Mar 24, 2026 · Updated 10 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days6 mentions · peak 3 in a dayToday
Vulns1Associated
Actors1Associated
ATT&CK39Techniques
IOCs1Tracked
Type
Infostealer
Capabilities
Credential theftSession hijackingExfiltrationPersistenceDefense evasionReconnaissance
Platforms
WindowsLinuxmacOSCloud

LiteLLM is a legitimate Python library and proxy for accessing large language model providers that was trojanized in separate software supply-chain attacks in March and October 2026. The malicious releases primarily functioned as credential stealers targeting developer workstations, CI/CD runners, containers, and AI-service deployments. They should be distinguished from uncompromised versions of the legitimate software.

On March 24, 2026, TeamPCP published malicious versions 1.82.7 and 1.82.8 to PyPI using publishing credentials stolen after compromised Trivy tooling executed in LiteLLM’s CI/CD pipeline. Version 1.82.8 introduced a Python startup hook that could execute the payload whenever the interpreter started, without requiring an application to import LiteLLM. The March payload supported credential theft, encrypted exfiltration, and persistent command polling through a Linux user service.

A separate compromise distributed version 1.107.0 through PyPI, Docker Hub, and GitHub Container Registry on October 21, 2026. Its malicious artifacts covered Windows, Linux, and macOS. Python startup hooks launched an obfuscated collector targeting cloud credentials, AI-provider API keys, developer-tool authentication material, browser credential and cookie databases, private keys, environment variables, shell histories, and host information. It also attempted to retrieve stored upstream-provider credentials from LiteLLM Proxy databases. Collected information was encrypted using AES-256-CBC with an RSA-4096-wrapped key and exfiltrated to attacker-controlled infrastructure impersonating LiteLLM.

The October payload also included a detached remote-code loader for Linux and macOS. It periodically consulted a GitHub-hosted pointer and could download and execute additional Python code, although no operational second-stage payload was observed during analysis. Subsequent attacker activity used harvested AWS credentials for identity checks and model enumeration. Attribution of the October incident to TeamPCP has not been established.

Is this in your environment?See whether this family's indicators match your telemetry and which of your assets are exposed to the CVEs associated with it.
Check your exposure
Associated CVEs

Associated vulnerabilities

1 CVE Mallory has correlated with this family across public research and vendor advisories. Each card links to the full Mallory page for that vulnerability.

CVE-2026-33634via sans blogTrivy Ecosystem Supply-Chain CompromiseThe attackers then published malicious versions 1.82.7 and 1.82.8 directly to PyPI, bypassing the normal release process. The malware used a Python .pth file... every python, pip, or pytest command would trigger the credential stealer.View vulnerability →Source ↗
Threat actors

Associated threat actors

1 distinct threat actor Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.

View more details →
TeamPCP

“Version 1.82.8 installed a .pth file that could run the payload when Python started, even without importing LiteLLM.” Versions 1.82.7 and 1.82.8 were identified as affected.

via blackfogblackfog.com
MITRE ATT&CK

Techniques & procedures

39 distinct techniques documented for this family, organized by ATT&CK tactic.

Initial Access

8 techniques
T1078Valid AccountsEvidence4

Using these stolen publish tokens, the attackers hit PyPI to push versions 1.82.7 and 1.82.8 of LiteLLM... It authenticated to the GitHub API using the victim’s own stolen PAT

T1078.004Cloud AccountsEvidence1

The attackers validated cloud keys taken from the Trivy, LiteLLM, and Checkmarx KICS compromises and used them to access cloud services, enumerate infrastructure, run commands inside containers, and exfiltrate sensitive data.

T1133External Remote ServicesEvidence1

Following LiteLLM-driven credential theft, attackers reportedly use a compromised Tailscale VPN credential for initial access to Mercor’s infrastructure.

T1190Exploit Public-Facing ApplicationEvidence1

The irony is that Mercor was hacked via a third-party open source tool called LiteLLM.

T1195Supply Chain CompromiseEvidence10

Earlier this month, Mercor said that it was "one of thousands of companies" affected by the LiteLLM supply-chain attack.

T1195.001Compromise Software Dependencies and Development ToolsEvidence8

The severity of this dependency was demonstrated in March 2026, when attackers compromised the LiteLLM package through dependency confusion, injecting malicious code directly into the request-handling pipeline of every deployment that pulled the poisoned release.

T1195.002Compromise Software Supply ChainEvidence1

“That specific attack originated through a sophisticated supply chain compromise involving the LiteLLM library. In March 2026, malicious actors aggressively distributed a thoroughly compromised version of this critical library specifically designed to harvest sensitive credentials.”

T1199Trusted RelationshipEvidence1

By abusing valid credentials and trusted CI/CD workflows, attackers are bypassing traditional security controls, enabling widespread access across build systems, cloud infrastructure, and customer environments.

Execution

6 techniques
T1059Command and Scripting InterpreterEvidence4

POST /mcp-rest/test/connection и POST /mcp-rest/test/tools/list принимали конфигурацию с полями command, args и env для stdio-транспорта. При подключении LiteLLM выполнял указанную команду.

T1059.006PythonEvidence3

Version 1.82.8 escalated - it added a litellm_init.pth file to site-packages that executes during every Python interpreter startup, not just when LiteLLM is imported.

T1204User ExecutionEvidence1

We found 474 repositories that run a malicious version of trivy-action.

T1574Hijack Execution FlowEvidence2

The LiteLLM payload bypassed standard SAST tools through a technique known as .pth file injection . When a package containing a .pth file is installed in the Python site-packages directory, the interpreter automatically reads it during initialization before the primary script is ever executed or imported.

T1574.006Dynamic Linker HijackingEvidence1

The malware leveraged a .pth file, which executes automatically during Python interpreter startup. This means the payload runs in most Python processes without needing the package to be explicitly imported...

T1651Cloud Administration CommandEvidence1

This means organisations running automated CI/CD pipelines may have unknowingly pulled the malicious code during that brief period.

Persistence

9 techniques
T1037Boot or Logon Initialization ScriptsEvidence2

Version 1.82.8 escalated - it added a litellm_init.pth file to site-packages that executes during every Python interpreter startup... any Python process on the machine triggered the malware.

T1078Valid AccountsEvidence4

Using these stolen publish tokens, the attackers hit PyPI to push versions 1.82.7 and 1.82.8 of LiteLLM... It authenticated to the GitHub API using the victim’s own stolen PAT

T1078.004Cloud AccountsEvidence1

The attackers validated cloud keys taken from the Trivy, LiteLLM, and Checkmarx KICS compromises and used them to access cloud services, enumerate infrastructure, run commands inside containers, and exfiltrate sensitive data.

T1133External Remote ServicesEvidence1

Following LiteLLM-driven credential theft, attackers reportedly use a compromised Tailscale VPN credential for initial access to Mercor’s infrastructure.

T1505Server Software ComponentEvidence1

These packages contained credential-stealing and backdoor code designed to harvest SSH keys, cloud credentials, Kubernetes secrets, database credentials, environment variables, and other sensitive data, while establishing persistent access to attacker-controlled infrastructure.

T1543Create or Modify System ProcessEvidence1

Finally, the payload installed a systemd backdoor service that polled attacker-controlled infrastructure for additional binaries.

T1543.001Launch AgentEvidence1

sysmon.service installed as persistent systemd user service

T1543.002Systemd ServiceEvidence1

Finally, the payload installed a systemd backdoor service that polled attacker-controlled infrastructure for additional binaries.

T1546.004Unix Shell Configuration ModificationEvidence1

.pth file auto-executes on every Python interpreter startup without user action

Privilege Escalation

8 techniques
T1037Boot or Logon Initialization ScriptsEvidence2

Version 1.82.8 escalated - it added a litellm_init.pth file to site-packages that executes during every Python interpreter startup... any Python process on the machine triggered the malware.

T1078Valid AccountsEvidence4

Using these stolen publish tokens, the attackers hit PyPI to push versions 1.82.7 and 1.82.8 of LiteLLM... It authenticated to the GitHub API using the victim’s own stolen PAT

T1078.004Cloud AccountsEvidence1

The attackers validated cloud keys taken from the Trivy, LiteLLM, and Checkmarx KICS compromises and used them to access cloud services, enumerate infrastructure, run commands inside containers, and exfiltrate sensitive data.

T1543Create or Modify System ProcessEvidence1

Finally, the payload installed a systemd backdoor service that polled attacker-controlled infrastructure for additional binaries.

T1543.001Launch AgentEvidence1

sysmon.service installed as persistent systemd user service

T1543.002Systemd ServiceEvidence1

Finally, the payload installed a systemd backdoor service that polled attacker-controlled infrastructure for additional binaries.

T1546.004Unix Shell Configuration ModificationEvidence1

.pth file auto-executes on every Python interpreter startup without user action

T1611Escape to HostEvidence1

Privileged Kubernetes pod with host filesystem mount created in kube-system

Stealth

5 techniques
T1027Obfuscated Files or InformationEvidence1

The TeamPCP payload dropped a heavily obfuscated Base64-encoded execution string into a hidden .pth file ... During the Bitwarden CLI compromise on April 22, the core payload bw1.js was a massive 9.7 MB file processed through obfuscator.io, utilizing a 43,436-entry string lookup table

T1078Valid AccountsEvidence4

Using these stolen publish tokens, the attackers hit PyPI to push versions 1.82.7 and 1.82.8 of LiteLLM... It authenticated to the GitHub API using the victim’s own stolen PAT

T1078.004Cloud AccountsEvidence1

The attackers validated cloud keys taken from the Trivy, LiteLLM, and Checkmarx KICS compromises and used them to access cloud services, enumerate infrastructure, run commands inside containers, and exfiltrate sensitive data.

T1574Hijack Execution FlowEvidence2

The LiteLLM payload bypassed standard SAST tools through a technique known as .pth file injection . When a package containing a .pth file is installed in the Python site-packages directory, the interpreter automatically reads it during initialization before the primary script is ever executed or imported.

T1574.006Dynamic Linker HijackingEvidence1

The malware leveraged a .pth file, which executes automatically during Python interpreter startup. This means the payload runs in most Python processes without needing the package to be explicitly imported...

Credential Access

6 techniques
T1528Steal Application Access TokenEvidence2

When the compromised action ran, it harvested LiteLLM’s PyPI publishing token.

T1552Unsecured CredentialsEvidence5

Harvest : SSH keys, cloud credentials, Kubernetes secrets, crypto wallets, Slack/Discord tokens

T1552.001Credentials In FilesEvidence1

Especially, it did not collect the CI secrets if those were not explicitly set as environment variables.

T1552.005Cloud Instance Metadata APIEvidence1

Harvest : SSH keys, cloud credentials, Kubernetes secrets, crypto wallets, Slack/Discord tokens - and actively queried AWS APIs using stolen IMDS credentials.

T1555Credentials from Password StoresEvidence1

The payload searched for and exfiltrated over 50 categories of secrets... crypto wallet keys... and API credentials...

T1649Steal or Forge Authentication CertificatesEvidence3

The common thread among those incidents is that they all revolved around secrets, one way or another. Some used secrets as an initial access vector, and others were focused on collecting secrets from victim environments.

Discovery

2 techniques
T1526Cloud Service DiscoveryEvidence1

The attackers validated cloud keys taken from the Trivy, LiteLLM, and Checkmarx KICS compromises and used them to access cloud services, enumerate infrastructure...

T1613Container and Resource DiscoveryEvidence3

In Kubernetes, search for node-setup-* pods in kube-system.

Lateral Movement

1 technique
T1570Lateral Tool TransferEvidence1

plus Kubernetes lateral movement deploying privileged pods across every node in the cluster.

Collection

3 techniques
T1005Data from Local SystemEvidence1

The TeamPCP malware specifically sought out these directories, intercepting proprietary prompts and unencrypted model weights directly from the development lifecycle.

T1074Data StagedEvidence1

Following LiteLLM-driven credential theft, attackers reportedly use a compromised Tailscale VPN credential for initial access to Mercor’s infrastructure. Lateral movement and data staging begin.

T1213Data from Information RepositoriesEvidence1

Mercor lost roughly 4 terabytes of data through the LiteLLM open-source AI gateway, exposing training methodologies for OpenAI, Anthropic, and Meta in the process.

Command and Control

3 techniques
T1071Application Layer ProtocolEvidence1

Exfiltration domain models.litellm[.]cloud C2 domain checkmarx[.]zone

T1090ProxyEvidence1

Déploiement de proxies inverses et de workloads agentiques (framework Manus, Node.js custom, LiteLLM gateways)

T1105Ingress Tool TransferEvidence1

the payload installed a systemd backdoor service that polled attacker-controlled infrastructure for additional binaries.

Exfiltration

2 techniques
T1041Exfiltration Over C2 ChannelEvidence3

Exfiltrate : AES-256 encrypted, sent to models.litellm[.]cloud

T1567.002Exfiltration to Cloud StorageEvidence1

execute commands in containers, and exfiltrate sensitive cloud data... Reviewing cloud logs for unexpected Amazon Simple Storage Service access, and Secrets Manager retrievals.

Indicators of compromise

Observables

1 indicator attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.

View all in app →
Indicator values are available in Mallory. Pivot on every hash, domain, URL, and IP, or pipe them straight into your SIEM.View all in Mallory
Activity feed

Recent activity

12 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
blackfogNews · Nov 6, 2026How TeamPCP Turned Developer Tools Into a Route for Data Theft - BlackFogCompromised LiteLLM releases delivered malicious code through the Python package supply chain. Version 1.82.8 used a Python startup file for execution without requiring an explicit LiteLLM import. Payload analysis also identified a sysmon.py service that checked for commands every 50 minutes. Accessible provider API keys, database credentials, and Kubernetes access were at risk.Read more ↗opensourcemalware blogNews · Oct 29, 2026The OpenSourceMalware Show #27 | OpenSource Malware BlogThe entry refers specifically to the malicious LiteLLM 1.107.0 release, not the legitimate software generally. Attackers exploited an unrevoked admin key exposed in public repository history, obtained release-related tokens, redirected the deployment process to a malicious repository, and triggered and approved the release after approval restrictions were relaxed. The transcript does not describe the delivered payload's behavior. It explicitly distinguishes this incident from the earlier TeamPCP-associated compromise.Read more ↗sh3llc0d3 blogNews · Oct 22, 2026LiteLLM Release Pipeline Compromise: Dissecting | ShellcodeThe content describes a trojanized LiteLLM 1.107.0 release, not the legitimate project generally. Malicious files were injected during packaging using Maturin. A cook.pth startup hook executed a Python payload without requiring an application to import LiteLLM, while sitecustomize.py provided an additional persistence mechanism. The payload harvested cloud credentials, AI-provider tokens, SSH keys, Git credentials, and environment secrets from affected developer systems and workloads.Read more ↗ramimac blogNews · Oct 21, 2026LiteLLM Compromised, Steals Credentials | Wiz BlogThe explicitly trojanized LiteLLM version 1.107.0 distributed credential-stealing and remote-loading payloads through PyPI and Docker images. It installed cook.pth, cook.py, and sitecustomize.py to execute malicious code at Python interpreter startup. The package received approximately 49,000 downloads before quarantine. This description applies to the compromised release, not legitimate LiteLLM generally.Read more ↗
+7 more in the timeline. Sign up to see them
Is this in your environment?See whether this family's indicators match your telemetry and which of your assets are exposed to the CVEs associated with it.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets match these IOCs, which detections are missing, which campaigns to expect next, and what to do in the next 30 minutes.
IOC matching1Match every observed IP, domain, and hash against your live telemetry.
Associated threat actors1Groups linked to this family, with evidence pinned to each claim.
Associated vulnerabilities1CVEs linked to this family, with the reporting behind each link.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
MITRE ATT&CK mapping39Every documented technique, ranked by evidence weight.
Researcher chatterReddit, Mastodon, and CTI community discussion around this family.