A compromised version of the PyTorch Lightning package on PyPI deployed a credential stealer targeting browser data, environment files, and cloud service credentials. The malicious package has since been removed.
Security researchers discovered a backdoored version of PyTorch Lightning on the Python Package Index (PyPI) that automatically executed a credential-stealing payload upon installation.
The malicious package targeted sensitive data across multiple attack surfaces: browser credential stores, local environment files containing API keys and tokens, and cloud service authentication data. This broad approach maximizes the value of compromised systems for attackers.
PyTorch Lightning is a popular machine learning framework used by thousands of developers. The compromise demonstrates the ongoing risk posed by supply chain attacks targeting open-source package repositories. Attackers can reach large numbers of developers by poisoning widely-used dependencies.
Impact and Response
The affected package was identified and removed from PyPI. Security teams from JFrog and other organizations analyzed the malware, confirming its credential-stealing functionality. Developers who installed the backdoored version face potential exposure of sensitive authentication material.
PyPI and the broader open-source community have implemented various countermeasures against such attacks, including package verification systems and automated malware scanning. However, sophisticated attacks can still evade detection during initial publication.
Recommendations
Developers should review installation logs to determine if they downloaded the compromised version. Any systems that installed the malicious package should be treated as potentially compromised—credentials stored in browsers, environment files, and cloud services should be rotated immediately.
Organizations should implement dependency scanning tools that monitor package repositories for malicious or suspicious updates. Maintaining an inventory of dependencies and their versions enables faster response to supply chain incidents.
The incident underscores the importance of securing development environments with the same rigor applied to production systems, as compromised developer machines can serve as entry points for broader infrastructure attacks.
Manchester Airports Group disclosed a breach affecting Manchester, Stansted, and East Midlands airports. Hackers accessed data from approximately 8.7 million customers.
A lawsuit alleges that Elon Musk's xAI trained its Grok language models using child sexual abuse material, including both real and AI-generated imagery.
The ShinyHunters extortion group has published sensitive data from nearly 13 million Carhartt customer accounts stolen earlier this month, according to data breach notification service Have I Been Pwned.
A Russian-speaking ransomware gang called Aur0ra exploited SpaceX's Cursor AI coding assistant to breach at least seven companies between mid-April and late May, according to security firm Gambit Security.