# LLM Supply Chain Attacks (OWASP LLM04:2026): Malicious Models, Poisoned Packages and Compromised AI Tooling

> Third-party models, adapters, packages, scanners and serving tools are being compromised to reach AI applications through trusted components. Documented 2026 incidents include the TeamPCP PyPI campaign (litellm 1.82.7/1.82.8, telnyx 4.87.1/4.87.2), the fake OpenAI repo Open-OSS/privacy-filter on Hugging Face (about 244,000 downloads, Windows infostealer) and the malicious litellm 1.107.0 release (PyPI and Docker, 2026-10-21).

- **Published:** 2026-11-25T15:04:44Z
- **Last reviewed:** 2026-11-25T15:04:44Z
- **Canonical:** https://intel.threadlinqs.com/threat/TL-2026-6865
- **Card image:** https://intel.threadlinqs.com/og/threat/TL-2026-6865.png
- **ID:** TL-2026-6865
- **Severity:** HIGH
- **Category:** SUPPLY_CHAIN
- **Status:** ACTIVE
- **Actor:** TeamPCP
- **Detections:** 9 (1 shown free below) · **IOCs:** 30 (3 shown free below)
- **CVEs:** CVE-2025-10155, CVE-2025-10156, CVE-2025-10157, CVE-2025-32434, CVE-2024-23496, CVE-2024-37032, CVE-2023-48022, CVE-2024-0132

## Description

OWASP LLM04:2026 (Supply Chain) covers compromise of any third-party component an LLM application depends on: pretrained models and adapters (LoRA), datasets, Python packages, model-serving software, model hubs, scanners and CI/CD pipelines. The Picus Security overview (2026-11-25, Umut Bayram) aggregates earlier incidents; this record follows each cited incident back to primary research from Datadog, Akamai, HiddenLayer, StepSecurity, JFrog and the LiteLLM project.

TeamPCP campaign (March 2026): Datadog and Akamai describe a chain that began with the Trivy project. A malicious trivy v0.69.4 was published on 2026-03-19, trivy-action and setup-trivy tags were force-pushed, and the malicious actions dumped Runner.Worker memory and exfiltrated secrets (scan.aquasecurtiy.org, with a public tpcp-docs repo as fallback). Credentials harvested from CI/CD were then reportedly used to publish litellm 1.82.7 and 1.82.8 to PyPI on 2026-03-24. 1.82.7 hid a base64 payload in litellm/proxy/proxy_server.py; 1.82.8 added litellm_init.pth, which runs on every Python start. The stealer collected environment variables, SSH keys, cloud credentials, Kubernetes data, Docker configs and CI/CD secrets, encrypted them (AES-256 session key wrapped with RSA-4096), and POSTed tpcp.tar.gz to models.litellm.cloud. It persisted as ~/.config/sysmon/sysmon.py with a sysmon.service user unit, polled https://checkmarx.zone/raw, and created privileged node-setup-* pods in Kubernetes. A March 22 Kubernetes script deployed a wiper container named kamikaze on hosts that appeared to be Iranian. On 2026-03-27 telnyx 4.87.1 and 4.87.2 were published; they run at import time, fetch ringtone.wav (Linux) or hangup.wav (Windows) from 83.142.209.203:8080, XOR-decode it, and on Windows drop a RAT (msbuild.exe in the Startup folder, process hollowing into dllhost.exe, shellcode hidden in a PNG, RC4 config). Researchers believe the telnyx PyPI token was taken from hosts that installed the malicious LiteLLM release.

Hugging Face model impersonation (May 2026): HiddenLayer reports that Open-OSS/privacy-filter copied OpenAI's Privacy Filter model card, reached the top of trending (about 244,000 downloads and 667 likes in roughly 18 hours; counts probably inflated) and told users to run start.bat or python loader.py. loader.py ran decoy code, disabled SSL verification, read a base64 URL pointing at a jsonkeeper.com dead drop, and ran the returned command in hidden PowerShell. That fetched update.bat from api.eth-fastscan.org, which added Microsoft Defender exclusions, downloaded a roughly 1.07 MB Rust infostealer, and launched it once as SYSTEM through a scheduled task named like MicrosoftEdgeUpdateTaskCore plus 8 random characters. The stealer harvests Chromium and Gecko credentials (including an App-Bound Encryption bypass), Discord data, crypto wallets, SSH/VPN/FTP files and screenshots, and POSTs to recargapopular.com. Six anthfu repos uploaded on 2026-04-24 carry a similar loader and the same dead-drop URL.

litellm 1.107.0 (2026-10-21): per the LiteLLM disclosure and StepSecurity, an Agent Platform master key committed to a public repo in May 2026 was used on 2026-10-10 to obtain a GitHub organization-owner token. The attacker exfiltrated CI secrets via throwaway ci-tmp-* branches (webhook.site), altered the private release workflow to build from a lookalike repository (Berri-AI/litellm), and published all seven PyPI wheels (live 11:39:51 to 13:23 UTC) and the v1.107.0 and floating Docker tags. Each wheel installed cook.pth, cook.py and sitecustomize.py: a 16-module credential stealer (cloud, browser, SSH/GPG, CI/CD, AI developer tools, LiteLLM database keys) posting to http://www.litellm.dev/healthcheck, plus an hourly loader that fetches a hostname from a GitHub dead drop and exec()s /codepy. The dead drop was empty at release, so no second stage was observed. Stolen AWS role credentials were used the same day for bedrock and IAM enumeration.

Model-file attacks and scanner bypasses: JFrog (2024-02-27) found Hugging Face PyTorch models using pickle __reduce__ to open reverse shells (baller423/goober2 to 210.117.212.93:4242; star23/baller13 to 136.243.156.120:53252). JFrog's PickleScan research (disclosed 2025-06-29, fixed in 0.0.31 on 2025-09-02) assigned CVE-2025-10155 (extension bypass), CVE-2025-10156 (ZIP CRC bypass) and CVE-2025-10157 (unsafe-globals subclass bypass). CVE-2025-32434 is a torch.load(weights_only=True) bypass affecting PyTorch 2.5.1 and earlier. Picus also cites ReversingLabs nullifAI (7z-packed models with a corrupted pickle), PoisonGPT, exposed Hugging Face tokens, namespace reuse (Unit 42), SFconvertbot, GGUF and LoRA manipulation, slopsquatting, torchtriton dependency confusion, the ultralytics PyPI compromise, and serving-stack flaws (CVE-2024-37032 Ollama, CVE-2023-48022 Ray, CVE-2024-0132 NVIDIA Container Toolkit, CVE-2024-23496 GGUF parser).

Note: the Picus article is a vendor educational overview. Incident details here were checked against the primary sources named above; no single CVSS score applies to the topic as a whole.

## MITRE ATT&CK

- T1195.002 Compromise Software Supply Chain
- T1195.001 Compromise Software Dependencies and Development Tools
- T1078.004 Cloud Accounts
- T1204.002 Malicious File
- T1059.006 Python
- T1059.001 PowerShell
- T1610 Deploy Container
- T1546.018 Python Startup Hooks
- T1543.002 Systemd Service
- T1053.005 Scheduled Task
- T1611 Escape to Host
- T1036.005 Match Legitimate Resource Name or Location
- T1685 Disable or Modify Tools
- T1685 Disable or Modify Tools
- T1555.003 Credentials from Web Browsers
- T1552.001 Credentials In Files
- T1552.005 Cloud Instance Metadata API
- T1102.001 Dead Drop Resolver
- T1485 Data Destruction
- AML.T0010 AI Supply Chain Compromise

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

**Malicious litellm/telnyx Package Install and Python Startup-Hook Drop - Exploitation** (`TL-2026-6865-SPL-001`)

Behaviour-first detection of the TeamPCP and litellm 1.107.0 supply-chain compromises: pip/uv installing litellm 1.82.7, 1.82.8, 1.107.0 or telnyx 4.87.1/4.87.2, or the stealer's Python startup-hook files (litellm_init.pth, cook.pth, cook.py) being written into site-packages. The .pth files execute on every Python start, so a hit means credentials on the host are likely stolen.

- **Languages:** Splunk SPL, Microsoft KQL, Sigma
- **ATT&CK:** T1195.001, T1195.002, T1546.018, T1059.006
- **Data sources:** sysmon (Windows EventCode 1/11), sysmon:linux, mde DeviceProcessEvents, mde DeviceFileEvents
- **Severity:** critical
- **Confidence:** high

### Splunk SPL

```spl
index=sysmon (sourcetype="XmlWinEventLog:Microsoft-Windows-Sysmon/Operational" OR sourcetype="sysmon:linux") earliest=-24h
  ((EventCode=1 CommandLine="*install*" (CommandLine="*litellm==1.82.7*" OR CommandLine="*litellm==1.82.8*" OR CommandLine="*litellm==1.107.0*" OR CommandLine="*telnyx==4.87.1*" OR CommandLine="*telnyx==4.87.2*"))
   OR (EventCode=11 (TargetFilename="*site-packages*litellm_init.pth" OR TargetFilename="*site-packages*cook.pth" OR TargetFilename="*site-packages*cook.py")))
| eval detection_stage=if(EventCode=1,"malicious_package_install","python_startup_hook_dropped")
| eval evidence=coalesce(CommandLine,TargetFilename)
| stats count min(_time) as first_seen max(_time) as last_seen values(detection_stage) as stages values(evidence) as evidence by host, User
| convert ctime(first_seen) ctime(last_seen)
```

### Microsoft KQL

```kql
let proc_hits = DeviceProcessEvents
| where Timestamp > ago(24h)
| where ProcessCommandLine has "install"
| where ProcessCommandLine matches regex @"(litellm==1\.(82\.7|82\.8|107\.0)|telnyx==4\.87\.[12])"
| project Timestamp, DeviceName, Account = AccountName, Stage = "malicious_package_install", Evidence = ProcessCommandLine, Parent = InitiatingProcessFileName;
let file_hits = DeviceFileEvents
| where Timestamp > ago(24h)
| where ActionType in ("FileCreated", "FileModified")
| where FolderPath contains "site-packages"
| where FileName in~ ("litellm_init.pth", "cook.pth", "cook.py")
| project Timestamp, DeviceName, Account = InitiatingProcessAccountName, Stage = "python_startup_hook_dropped", Evidence = FolderPath, Parent = InitiatingProcessFileName;
union proc_hits, file_hits
| order by Timestamp desc
```

### Sigma

```yaml
title: Malicious litellm or telnyx PyPI Release Installed (TeamPCP and litellm 1.107.0)
id: 7c2f1b9e-4d3a-4f6b-8a1e-2b5d9c0e1a11
status: experimental
description: Detects pip or uv installing the compromised litellm 1.82.7, 1.82.8, 1.107.0 or telnyx 4.87.1, 4.87.2 PyPI releases pinned by version (TL-2026-6865).
references:
    - https://securitylabs.datadoghq.com/articles/litellm-compromised-pypi-teampcp-supply-chain-campaign/
    - https://docs.litellm.ai/blog/security-incident-oct-21-2026
author: Threadlinqs Team
date: 2026-11-25
tags:
    - attack.initial_access
    - attack.t1195.001
    - attack.t1195.002
    - attack.persistence
    - attack.t1546.018
logsource:
    category: process_creation
detection:
    selection_install:
        CommandLine|contains: ' install'
    selection_pkg:
        CommandLine|contains:
            - 'litellm==1.82.7'
            - 'litellm==1.82.8'
            - 'litellm==1.107.0'
            - 'telnyx==4.87.1'
            - 'telnyx==4.87.2'
    condition: all of selection_*
falsepositives:
    - Incident-response or sandbox hosts deliberately installing the malicious version to analyse it
level: high

```

**Known false positives:**

- Security researchers or sandbox hosts that deliberately install the malicious release for analysis
- Package-mirror or SCA scanners that download and unpack the bad versions to inspect them

**Tuning notes:** Allowlist known malware-analysis hosts by host/User. Version pins only catch pinned installs; the file-drop branch (litellm_init.pth, cook.pth, cook.py in site-packages) catches unpinned installs. Add SHA256 hashes from research.json (cook.pth 7f191632..., cook.py 9dd0a392...) if file hashing is enabled. Re-point index/sourcetype to your EDR if Sysmon is not deployed.

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

- Python Model Loader Spawning Hidden PowerShell / Dead-Drop Stage 2 - Exploitation (locked: unlock with TL Creds)
- TeamPCP litellm Persistence: sysmon.service Unit, Staging Files and Startup-Folder RAT - Post-Exploitation (locked: unlock with TL Creds)
- Stolen AWS Role Credentials: Attacker-IP Use and Bedrock/IAM Enumeration - C2 / Lateral Movement (locked: unlock with TL Creds)
- Malicious Model Load: Python Reverse Shell / Payload-Host Connection - Exploitation (locked: unlock with TL Creds)
- TeamPCP Kubernetes node-setup Privileged Pods and kamikaze Wiper - Post-Exploitation (locked: unlock with TL Creds)
- Campaign C2/Exfil Domain Resolution and Python Dead-Drop Lookup - C2 (locked: unlock with TL Creds)
- Fake Hugging Face Loader Stage 2: Defender Exclusion and Masquerading SYSTEM Task - Post-Exploitation (locked: unlock with TL Creds)
- TeamPCP / litellm / Open-OSS Stealer C2, Exfiltration and Dead-Drop Web Traffic - C2 (locked: unlock with TL Creds)

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

## Sample indicators (3 of 30)

Defanged, TLP:CLEAR.

- IP address: `210.117.212[.]93`
- Domain: `models[.]litellm[.]cloud`
- URL: `hxxps://raw[.]githubusercontent[.]com/letters9813/pythonclient-test/main/domain.txt`

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

## Sources

- [Picus: What Are LLM Supply Chain Attacks (OWASP LLM04): Techniques, Examples, and Defenses](https://www.picussecurity.com/resource/blog/what-are-llm-supply-chain-attacks-owasp-llm04-techniques-examples-and-defenses)
- [Datadog Security Labs: LiteLLM and Telnyx compromised on PyPI - TeamPCP supply chain campaign](https://securitylabs.datadoghq.com/articles/litellm-compromised-pypi-teampcp-supply-chain-campaign/)
- [Akamai: Telnyx PyPI package compromise (TeamPCP supply chain attacks)](https://www.akamai.com/blog/security-research/telnyx-pypi-2026-teampcp-supply-chain-attacks)
- [HiddenLayer: Malware Found in Trending Hugging Face Repository Open-OSS/privacy-filter](https://hiddenlayer.com/research/malware-found-in-trending-hugging-face-repository-open-oss-privacy-filter)
- [The Hacker News: Fake OpenAI Privacy Filter Repo Hits #1 on Hugging Face](https://thehackernews.com/2026/05/fake-openai-privacy-filter-repo-hits-1.html)
- [LiteLLM: Security incident, Oct 21 2026](https://docs.litellm.ai/blog/security-incident-oct-21-2026)
- [StepSecurity: litellm 1.107.0 compromised - PyPI backdoored wheels credential stealer](https://www.stepsecurity.io/blog/litellm-1-107-0-compromised-pypi-backdoored-wheels-credential-stealer)
- [JFrog: Data Scientists Targeted by Malicious Hugging Face ML Models with Silent Backdoor](https://jfrog.com/blog/data-scientists-targeted-by-malicious-hugging-face-ml-models-with-silent-backdoor/)
- [JFrog: PyTorch Users at Risk - 3 Zero-Day PickleScan Vulnerabilities](https://jfrog.com/blog/unveiling-3-zero-day-vulnerabilities-in-picklescan/)
- [PyTorch GitHub Advisory GHSA-53q9-r3pm-6pq6 (torch.load weights_only bypass, CVE-2025-32434)](https://github.com/pytorch/pytorch/security/advisories/GHSA-53q9-r3pm-6pq6)
- [MITRE ATLAS AML.T0010 - AI Supply Chain Compromise](https://atlas.mitre.org/techniques/AML.T0010)
- [OWASP GenAI Top 10 for LLM Applications 2026](https://genai.owasp.org/resource/owasp-genai-llm-top-10-2026/)
- [ReversingLabs: Malware in ML model hosted on Hugging Face (nullifAI)](https://www.reversinglabs.com/blog/rl-identifies-malware-ml-model-hosted-on-hugging-face)
- [Palo Alto Unit 42: Model namespace reuse](https://unit42.paloaltonetworks.com/model-namespace-reuse/)
- [PyTorch: Compromised PyTorch-nightly dependency chain (torchtriton)](https://pytorch.org/blog/compromised-nightly-dependency/)

## 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-6865
