DEV Community

Achin Bansal
Achin Bansal

Posted on • Originally published at gridthegrey.com

Backdoored PyTorch Lightning Package Steals Cloud Credentials from AI Developers

Forensic Summary

A malicious version of PyTorch Lightning (v2.6.3) was published to PyPI, embedding a hidden execution chain that silently downloads a JavaScript runtime and executes a heavily obfuscated credential-stealing payload dubbed 'ShaiWorm'. The attack targeted AI/ML developers who use this popular deep learning framework, exposing cloud credentials, API keys, browser-stored secrets, and GitHub tokens. The package has since been reverted to a safe version, but any developer who imported the compromised version should rotate all secrets immediately.


Read the full technical deep-dive on Grid the Grey: https://gridthegrey.com/posts/backdoored-pytorch-lightning-package-steals-cloud-credentials-from-ai-developers/

Top comments (0)