
UpTrajectory Review
On March 24, 2026, TeamPCP hijacked the PyPI publishing pipeline for LiteLLM, a Python package that developers use to route AI model calls and that draws 95 million downloads a month. The group pushed poisoned versions 1.82.7 and 1.82.8 carrying a .pth file, an obscure Python mechanism that executes code automatically whenever the interpreter starts. No import, no warning, no visible sign. Anyone who installed either version during the roughly three hours the packages sat on PyPI before quarantine ran attacker code silently. Zscaler ThreatLabz says that window was enough to reach tens of thousands of corporate environments. ReversingLabs counts a 73% rise in malicious open-source packages in 2026, and TeamPCP had already compromised security tools including Aqua Security's Trivy and Checkmarx's KICS before turning to AI infrastructure libraries.
If your business builds on AI APIs, this story lands on your desk, not your security team's. Small operators increasingly wire LiteLLM, PyTorch Lightning, and similar libraries into customer-facing products, internal tools, and automation scripts, often installed by a developer or a solo founder with no security review. The LiteLLM payload hunted AWS, GCP, and Azure tokens, SSH keys, and cloud credentials. Those credentials are the keys to your billing accounts, your customer data, and your production systems. A single poisoned install on a laptop or a CI runner can hand an attacker your entire cloud footprint. Late April brought the same pattern again: PyTorch Lightning versions 2.6.2 and 2.6.3 carried credential-stealing malware that executed on import, and one malicious workflow file leaked secrets across entire CI/CD pipelines.
The genuinely under-reported point here is the .pth mechanism itself. Most supply chain coverage focuses on typosquatted packages or malicious imports, which developers can sometimes spot in a diff or a dependency tree. A .pth file fires before your application code runs, outside the import system, invisible to tools that scan for suspicious imports. That makes the LiteLLM attack a different class of threat: it does not exploit a vulnerability in the code, it exploits the trust developers place in the package index and the maintainer's credentials. We agree with the source's framing that this is the pattern, not the exception. We remain skeptical of any vendor who claims a single scanner catches this; the attack surface spans credential hygiene, package provenance, and runtime behavior, and no single tool covers all three.
The second-order effects hit different businesses unevenly. Large firms with dedicated security teams can pin versions, mirror PyPI internally, and enforce artifact signing. Small teams rarely do any of this, and they often run the latest package version in production the day it ships. The April PyTorch Lightning incident shows how one compromised workflow file can cascade: secrets leak from CI/CD into attacker hands, then into every downstream system those credentials touch. The cost is not just incident response. It is potential cloud bill fraud, data exposure, customer notification, and the quiet erosion of trust when your product depends on packages you do not control and cannot audit.
Watch for PyPI's response to credential theft and package signing, and for your own dependencies. If you run LiteLLM or PyTorch Lightning, check your install logs for the compromised versions, rotate every cloud and SSH credential that touched those environments, and audit your CI/CD secrets for unusual access. Pin versions in your requirements files, verify hashes where possible, and treat any package with auto-execute mechanisms like .pth files as a supply chain risk worth monitoring. The next TeamPCP target will not announce itself.
The broader lesson for small operators is that AI development has quietly become a high-value attack surface. The same libraries that make it cheap to build on top of large language models also concentrate enormous trust in a handful of maintainers and a single package index. You do not need to stop using these tools, but you do need to stop treating pip install as a harmless act. Build a habit of version pinning, credential rotation, and dependency auditing before the next three-hour window opens on a package you rely on.
“Most supply chain attacks are bad. Supply chain attacks targeting AI development environments are worse.” — CSO Online
Takeaway: Check your environments for compromised LiteLLM and PyTorch Lightning versions, rotate exposed cloud credentials, and pin package versions with hash verification.
Excerpt from the original — CSO Online
On March 24, 2026, developers building AI applications with LiteLLM — a Python package with 95 million monthly downloads — unknowingly installed malicious code. A threat actor group known as TeamPCP had compromised the PyPI distribution pipeline and pushed malicious versions 1.82.7 and 1.82.8 to the package index. The payload was subtle: a .pth file, a little-known Python mechanism that auto-executes code every time the interpreter starts. If you installed either compromised version, malicious code ran silently — no explicit import needed.
That is not the exception anymore. It is the pattern.
What is actually happening
ReversingLabs reports that malicious open-source packages rose by 73% in 2026. The LiteLLM attack was part of a broader campaign by TeamPCP that systematically compromised widely trusted open-source security tools — including Aqua Security’s Trivy and Checkmarx’s …