# LiteLLM Supply Chain Attack (TeamPCP) via Compromised Trivy Build — Malicious PyPI litellm 1.82.7/1.82.8 with SANDCLOCK Credential Stealer; 2,500+ Companies / 434,000 CI/CD Pipelines Potentially Exposed

> On 2026-03-24 threat actor TeamPCP published malicious litellm 1.82.7 and 1.82.8 to PyPI (available roughly 40 minutes per LiteLLM) after a prior compromise of the Trivy scanner exposed LiteLLM's publishing credentials. The payload (tracked by Google as SANDCLOCK) harvests cloud, Kubernetes, SSH, CI/CD and LLM API secrets; CloudSEK's 2,500+ companies / 434,000 pipelines figures are potential exposure, not confirmed compromise.

- **Published:** 2026-11-19T17:56:50Z
- **Last reviewed:** 2026-11-19T17:56:50Z
- **Canonical:** https://intel.threadlinqs.com/threat/TL-2026-6483
- **Card image:** https://intel.threadlinqs.com/og/threat/TL-2026-6483.png
- **ID:** TL-2026-6483
- **Severity:** CRITICAL
- **Category:** SUPPLY_CHAIN
- **Status:** ACTIVE
- **Actor:** TeamPCP
- **Detections:** 9 (1 shown free below) · **IOCs:** 29 (3 shown free below)

## Description

TeamPCP (aliases PCPcat, ShellForce, DeadCatx3) is a financially motivated group active since at least September 2025 that pivoted from ransomware/cryptomining to CI/CD supply-chain compromise in March 2026. After a minor breach of the Aqua Security Trivy repository in late February 2026 and incomplete credential rotation, the actor compromised the aqua-bot account on 2026-03-19 and force-pushed malicious code to Trivy and trivy-action tags (malicious Trivy v0.69.4; last known-good v0.69.3). LiteLLM's CI installed Trivy unpinned from apt, so the poisoned scanner exposed LiteLLM's PyPI publishing credentials. LiteLLM's own advisory states it cannot confirm the mechanism (possible maintainer account compromise linked to the Trivy incident) and that the attacker appears to have bypassed official CI/CD and uploaded directly to PyPI.

litellm 1.82.7 carries a base64-encoded payload in proxy_server.py; 1.82.8 additionally drops litellm_init.pth into site-packages, which executes on every Python interpreter startup without importing LiteLLM (and therefore bypasses install-script controls). Per LiteLLM the packages became available 2026-03-24 10:39 UTC and were quarantined about 40 minutes later (Snyk reports roughly three hours; sources differ). The multi-stage payload (double base64 to evade static analysis) (1) bootstraps a decoded Python subprocess, (2) harvests system recon data, SSH keys/configs, Git credentials, AWS (including IMDSv2 role credentials, Secrets Manager/SSM), GCP and Azure credentials, Kubernetes configs/service-account tokens and secrets across all namespaces, Docker registry creds, .env and database credential files, CI/CD and IaC configs, TLS private keys, .npmrc/.netrc/.vault-token, shell histories, WireGuard configs, LLM API keys and crypto wallets, and (3) installs a persistent backdoor ~/.config/sysmon/sysmon.py with a user systemd unit sysmon.service ('System Telemetry Service') that waits 300 seconds and then polls the C2 roughly every 3000 seconds, downloading and running arbitrary second-stage binaries (staged at /tmp/pglog, state in /tmp/.pg_state).

Data is archived, encrypted with AES-256-CBC using a random session key that is wrapped with a hard-coded RSA-4096 (OAEP) public key, and POSTed over HTTPS with the filename header tpcp.tar.gz to the typosquatted domain models.litellm.cloud (not affiliated with LiteLLM). Related TeamPCP waves used checkmarx.zone and scan.aquasecurtiy.org, and a fallback of creating a public GitHub repository (docs-tpcp / tpcp-docs/docs-tpcp) in the victim's account using the stolen GITHUB_TOKEN to hold exfiltrated data as a release asset. When a Kubernetes service-account token is present, the malware enumerates all nodes and deploys privileged node-setup-* pods in kube-system that mount the host filesystem and chroot to install the backdoor on each node. The same campaign included the CanisterWorm wiper (kube.py), observed 2026-03-23 targeting Iran, which bricks Kubernetes clusters via privileged DaemonSets.

Scope: LiteLLM states the official ghcr.io/berriai/litellm Docker image, LiteLLM Cloud, v1.82.6 and earlier, and GitHub-source installs were not affected. CloudSEK (2026-08-11) estimates 2,500+ companies and 434,000 CI/CD pipelines potentially exposed; this is exposure modelling, not confirmed compromise. The FBI issued FLASH-20260702-01 warning that harvested credentials may be weaponized later, and Sophos/Unit 42 report TeamPCP partnering with Vect and CipherForce ransomware/extortion operations. Clean release v1.83.0 was published 2026-03-30 through a new CI/CD v2 pipeline. The FBI FLASH text and BeaconBeagle data could not be retrieved during this research (403/404).

## MITRE ATT&CK

- T1195.002 Compromise Software Supply Chain
- T1078.004 Cloud Accounts
- T1059.006 Python
- T1543.002 Systemd Service
- T1027 Obfuscated Files or Information
- T1036.005 Match Legitimate Resource Name or Location
- T1552.001 Credentials In Files
- T1552.004 Private Keys
- T1552.005 Cloud Instance Metadata API
- T1003.007 Proc Filesystem
- T1613 Container and Resource Discovery
- T1611 Escape to Host
- T1074.001 Local Data Staging
- T1573.002 Asymmetric Cryptography
- T1567.001 Exfiltration to Code Repository
- T1485 Data Destruction

## Free detection (Splunk SPL, Microsoft KQL, Sigma)

**TeamPCP LiteLLM Supply Chain - Malicious litellm 1.82.7/1.82.8 Install or litellm_init.pth Dropped (Exploitation)** (`TL-2026-6483-SPL-001`)

Detects the initial-access artifacts of the TeamPCP / SANDCLOCK PyPI compromise (TL-2026-6483): installation of the malicious litellm 1.82.7 or 1.82.8 releases and the litellm_init.pth file that litellm 1.82.8 writes to site-packages, which executes on every Python interpreter start without importing LiteLLM. Uses Linux auditd PATH/EXECVE records; any hit means the host or CI runner must be isolated and every reachable credential rotated.

- **Languages:** Splunk SPL, Microsoft KQL, Sigma
- **ATT&CK:** T1195.002, T1059.006
- **Data sources:** linux_auditd, edr_file_events, edr_process_events
- **Severity:** critical
- **Confidence:** high

### Splunk SPL

```spl
index=linux sourcetype=linux:audit (type=PATH OR type=EXECVE) ("litellm_init.pth" OR "litellm==1.82.7" OR "litellm==1.82.8" OR "litellm-1.82.7" OR "litellm-1.82.8")
| eval indicator=case(like(_raw,"%litellm_init.pth%"),"pth_dropper_file",like(_raw,"%1.82.7%"),"malicious_litellm_1.82.7",like(_raw,"%1.82.8%"),"malicious_litellm_1.82.8",true(),"other")
| stats count earliest(_time) as first_seen latest(_time) as last_seen values(indicator) as indicators values(name) as paths by host
| convert ctime(first_seen) ctime(last_seen)
```

### Microsoft KQL

```kql
let lookback = 7d;
union
(DeviceFileEvents
 | where Timestamp > ago(lookback)
 | where ActionType in ("FileCreated", "FileModified", "FileRenamed")
 | where FileName =~ "litellm_init.pth"
 | project Timestamp, DeviceName, Indicator = "litellm_init.pth written to site-packages", Detail = FolderPath, Actor = InitiatingProcessCommandLine, Account = InitiatingProcessAccountName),
(DeviceProcessEvents
 | where Timestamp > ago(lookback)
 | where ProcessCommandLine has "litellm"
 | where ProcessCommandLine contains "litellm==1.82.7" or ProcessCommandLine contains "litellm==1.82.8"
 | project Timestamp, DeviceName, Indicator = "malicious litellm release requested", Detail = ProcessCommandLine, Actor = InitiatingProcessCommandLine, Account = AccountName)
| order by Timestamp desc
```

### Sigma

```yaml
title: Malicious LiteLLM litellm_init.pth Written to site-packages (TeamPCP)
id: 5b0f3a7e-2c1d-4e8a-9f64-7a1d2c3b4e51
status: experimental
description: Detects creation of litellm_init.pth, the .pth file dropped by the malicious litellm 1.82.8 PyPI release (TeamPCP / SANDCLOCK) that executes on every Python interpreter startup.
references:
  - https://docs.litellm.ai/blog/security-update-march-2026
  - https://research.jfrog.com/post/litellm-compromised-teampcp/
  - https://unit42.paloaltonetworks.com/teampcp-supply-chain-attacks/
author: Threadlinqs Team
date: 2026/11/19
tags:
  - attack.initial-access
  - attack.t1195.002
  - attack.execution
  - attack.t1059.006
logsource:
  product: linux
  category: file_event
detection:
  selection:
    TargetFilename|endswith: '/litellm_init.pth'
  condition: selection
falsepositives:
  - Security researchers or malware analysts unpacking the malicious package in a sandbox
level: critical
```

**Known false positives:**

- Incident responders or analysts deliberately extracting the malicious litellm wheel in a lab or sandbox
- Vulnerability scanners or SBOM tools that log the string litellm==1.82.7 or 1.82.8 while inspecting lockfiles

**Tuning notes:** Requires auditd watches on Python site-packages directories (for example auditctl -w /usr/lib/python3 -p wa -k pth_write) so PATH records are produced. Exclude known analysis sandboxes by host. Extend the version list if LiteLLM publishes additional bad releases; v1.82.6 and earlier and v1.83.0 are clean.

### 8 more detection rules (Splunk SPL, Microsoft KQL, Sigma), unlock with TL Creds

- Python Interpreter Executing Double-Base64 Decoded Payload - SANDCLOCK Loader (Exploitation) (locked: unlock with TL Creds)
- Privileged node-setup-* Pods Created in kube-system - TeamPCP Kubernetes Node Backdooring (Lateral Movement) (locked: unlock with TL Creds)
- Execution of [indicator] Second-Stage Payload or Children of sysmon.py Backdoor (C2 Tasking) (locked: unlock with TL Creds)
- TeamPCP Exfiltration Archive [indicator] or docs-tpcp GitHub Fallback Repository Command Line (Exfiltration) (locked: unlock with TL Creds)
- Python Process Mass-Reading Credential and Secret Files - SANDCLOCK Credential Harvesting (Post-Exploitation) (locked: unlock with TL Creds)
- DNS to Cloudflare Quick Tunnel or Internet Computer Canister - TeamPCP Alternate Exfiltration and Dead-Drop C2 (C2) (locked: unlock with TL Creds)
- TeamPCP sysmon.service Masquerading Persistence and [indicator] Second-Stage Artifacts (Post-Exploitation) (locked: unlock with TL Creds)
- TeamPCP Typosquat C2 and Exfiltration Infrastructure Contact (C2 / Exfiltration) (locked: unlock with TL Creds)

Sign up free to unlock the detection rules: https://threadlinqs.com/?modal=signup

## Sample indicators (3 of 29)

Defanged, TLP:CLEAR.

- IP address: `45.148.10[.]212`
- Domain: `models[.]litellm[.]cloud`
- File hash: `0880819ef821cff918960a39c1c1aada55a5593c61c608ea9215da858a86e349`

Full set of 29 indicators unlocks with TL Creds: https://threadlinqs.com/tl-creds

## Sources

- [LiteLLM Supply Chain Attack: 2,500+ Companies Exposed in the Largest AI Supply Chain Breach of 2026](https://www.cloudsek.com/blog/ai-supply-chain-breach-2500-companies-434000-cicd-pipelines)
- [LiteLLM Security Incident: PyPI Compromise (March 2026)](https://docs.litellm.ai/blog/security-update-march-2026)
- [Popular litellm Python package is the latest victim of TeamPCP's ongoing supply chain attack](https://research.jfrog.com/post/litellm-compromised-teampcp/)
- [Unit 42: TeamPCP Supply Chain Attacks](https://unit42.paloaltonetworks.com/teampcp-supply-chain-attacks/)
- [FBI FLASH-20260702-01: Cyber Criminal Group TeamPCP](https://www.fbi.gov/investigate/cyber/alerts/2026/cyber-criminal-group-teampcp)
- [Sophos: Vect and TeamPCP partner for ransomware campaigns](https://www.sophos.com/en-us/blog/vect-and-teampcp-partner-for-ransomware-campaigns)
- [Snyk: How a Poisoned Security Scanner Became the Key to Backdooring LiteLLM](https://snyk.io/articles/poisoned-security-scanner-backdooring-litellm)
- [Trend Micro: Inside the LiteLLM Supply Chain Compromise](https://trendmicro.com/en/research/26/c/inside-litellm-supply-chain-compromise.html)
- [CSA Research Note: TeamPCP CI/CD Security Tool Supply Chain Compromise](https://labs.cloudsecurityalliance.org/research/csa-research-note-teampcp-cicd-supply-chain-20260325/)
- [LiteLLM GitHub issue #24518 (compromise tracking)](https://github.com/BerriAI/litellm/issues/24518)
- [Security Affairs: Malicious LiteLLM versions linked to TeamPCP supply chain attack](https://securityaffairs.com/189948/hacking/malicious-litellm-versions-linked-to-teampcp-supply-chain-attack.html)

## Full data

The other 8 detection rules (Splunk SPL / Microsoft KQL / Sigma) unlock with TL Creds; a free account includes daily creds: https://threadlinqs.com/?modal=signup
Indicator values unlock with TL Creds, at a lower price on Red and Purple; AI agents can query rules and IOCs through the Threadlinqs MCP server (Purple and Gold in full, 2 calls a day on a free account): https://intel.threadlinqs.com/mcp

Canonical: https://intel.threadlinqs.com/threat/TL-2026-6483
