Skip to content
MediumNews

Python package security in 2026: How supply chain attacks are targeting your AI development environment

Published
Record updated
View JSON

Summary

On March 24, 2026, a threat actor group known as TeamPCP compromised the PyPI distribution pipeline and pushed malicious LiteLLM versions 1.82.7 and 1.82.8, which carried a .pth file payload that ran code at every interpreter start. According to Zscaler ThreatLabz, the poisoned packages were available for approximately three hours before quarantine, and the payload targeted AWS, GCP and Azure tokens, SSH keys and cloud account credentials.

Mitigation

The source recommends pinning every dependency in AI development environments to an exact version and verifying checksums against a known-good hash. The source states this would have limited the LiteLLM attack's blast radius to environments that explicitly upgraded to the compromised versions.