Skip to main content
Live Webinar with SANS (June 25)— Agentic CTI Automation for Fun & ProfitRegister Free
Mallory
Back to intelligence
package-repository-poisoningcredential-stealer-activitybuild-pipeline-compromisepersistence-method

LiteLLM Hit by PyPI Supply-Chain Compromise and Guardrail Sandbox Escape

Updated 2mo agoFirst seen Mar 27, 20264 sources

Datadog Security Labs reported that the TeamPCP supply-chain campaign compromised the legitimate PyPI package LiteLLM, publishing malicious versions 1.82.7 and 1.82.8 that stole credentials, exfiltrated data, established persistence, and in some cases attempted to spread into Kubernetes environments. The campaign also hit Telnyx on PyPI and was linked to earlier compromises involving Trivy, npm packages, Aqua Security repositories, and Checkmarx tooling, with researchers concluding that stolen CI/CD and publishing credentials were reused across ecosystems. Datadog warned that LiteLLM 1.82.8 was especially dangerous because a malicious .pth file triggered payload execution when the Python interpreter started, while the Telnyx package executed code at import time and retrieved a second-stage payload hidden in a WAV file.

Separately, X41 disclosed a high-severity sandbox escape in BerriAI LiteLLM affecting the main-latest Docker image, where authenticated users could reach arbitrary code execution through the /guardrails/test_custom_code API endpoint. The flaw relied on bypassing regex-based restrictions on custom Python guardrail code using string concatenation and CPython bytecode rewriting to recover unrestricted builtins and call __import__, allowing commands to run as the LiteLLM process user, which is root in the default Docker deployment. X41 assigned the issue CWE-94 and a CVSS 4.0 score of 8.7, and Datadog advised organizations that installed the malicious LiteLLM releases to treat affected hosts and CI jobs as full credential-exposure events, rotate secrets, hunt for persistence and outbound traffic, and rebuild critical systems from known-good images rather than relying only on package rollback.

Share:
LiteLLM Hit by PyPI Supply-Chain Compromise and Guardrail Sandbox Escape
Stay ahead

Get ahead of threats like this

Mallory correlates global threat intelligence with your attack surface — know if you’re exposed before adversaries strike.

EVENT TIMELINE

How this story unfolded

6 events from the most recent confirmed update back to the earliest known activity.

6 EVENTS
Apr 15, 20262mo ago

Gurucul identifies Mercor as downstream victim of LiteLLM compromise

Gurucul reported that the malicious LiteLLM supply-chain compromise impacted downstream users, including Mercor, where the compromised dependency enabled unauthorized data access and possible command execution. The report framed Mercor as a case study of the breach's downstream effects.

LiteLLM Supply Chain Compromise: Downstream Impact Analysis with Mercor Breach Case Study | Community Portal | Gurucul
Mar 27, 20263mo ago

Malicious Telnyx releases 4.87.1 and 4.87.2 published to PyPI

Attackers also compromised the legitimate Telnyx Python package on PyPI, publishing malicious versions 4.87.1 and 4.87.2. The package executed malicious code at import time and retrieved a second-stage payload concealed in a WAV file.

Mar 24, 20263mo ago

Datadog links LiteLLM and Telnyx compromises to TeamPCP campaign

Datadog Security Research reported that the PyPI compromises of LiteLLM and Telnyx were part of the broader TeamPCP supply-chain campaign, which had previously affected Trivy, npm packages, Aqua Security repositories, and Checkmarx tooling. The report said stolen CI/CD and publishing credentials were reused across ecosystems to expand the campaign.

Malicious LiteLLM releases 1.82.7 and 1.82.8 published to PyPI

As part of the TeamPCP supply-chain campaign, attackers compromised the legitimate LiteLLM package on PyPI and published malicious versions 1.82.7 and 1.82.8. Datadog assessed version 1.82.8 as especially dangerous because a malicious .pth file triggered payload execution at Python interpreter startup.

Feb 13, 20264mo ago

X41 publicly discloses unpatched LiteLLM RCE vulnerability

X41 D-Sec published advisory X41-2026-001 describing a LiteLLM sandbox escape that could lead to arbitrary code execution as the LiteLLM process user, which is root by default in the affected Docker image. At publication, no patch was available.

Feb 3, 20265mo ago

X41 reports LiteLLM guardrail sandbox escape to vendor

According to the advisory's disclosure timeline, X41 D-Sec privately reported a high-severity sandbox escape in LiteLLM's /guardrails/test_custom_code endpoint in February 2026. The flaw allowed authenticated users to bypass source filtering and achieve arbitrary code execution in the default Docker deployment.

LINKED ENTITIES

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

19 LINKEDOpen in app
Threat actors
1 linked
Affected products
4 linked
LitellmSetup-TrivyTrivy ActionTrivy
Organizations
14 linked
MercorGuruculEmil GroupX41 D-SecDatadogCheckmarxAqua SecurityBerriAITelnyxTealeAirtmVirta HealthOpenGovPypestream
The operational view lives in Mallory

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t — which of your assets are affected, which threat actors are using it right now, which detections to deploy, and what to do next.
Exposure mapping

Map indicators from this story to your assets and identify affected systems in minutes.

Threat actor evidence

Every observed campaign, victim, and pivot linked to actors named in this story.

Associated malware

Malware, exploits, and IOCs connected to the activity described here.

Detection signatures

YARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.

Scheduled alerts

Get matching new stories delivered to your team as they break — not the next morning.

AI threads

Ask questions about this story and take action on the answers.

LiteLLM Hit by PyPI Supply-Chain Compromise and Guardrail Sandbox Escape | Mallory