Poisoned Pipeline / Incidents / AS373

AS373 · 2025-05

Malware hidden in PyTorch model files inside PyPI packages mimicking Aliyun

PyPIAI coding agents

JFrog reported attackers hiding malware inside PyTorch model files in
PyPI packages mimicking Alibaba's Aliyun SDK. Once installed, the payload
exfiltrated system data. Loading a model is code execution in pickle-based
formats, so an AI-adjacent package with a bundled model carries the same risk
as a native binary.

Mapped techniques

supply-chain Malware hidden in PyTorch model files inside PyPI packages m

T0109 · Resource Development · Publish malicious artifact

Fake Aliyun packages carried malicious model files.

T0159 · Execution · Malicious artifact execution

Deserialisation of the bundled model executed the payload.

Sources