Threat actors have started uploading malicious packages to PyPI, NPM, and RubyGems repositories in a new campaign aimed at stealing user information, software supply chain security firm Phylum reports.
The first malicious packages were uploaded to PyPI and NPM repositories over the weekend, specifically targeting macOS users.
The PyPI package that Phylum initially observed was designed to harvest information about the victim’s machine and exfiltrate it to an attacker-controlled server. The code would also publish subsequent versions with additional malicious payloads.
The malicious package, however, would only collect data if the victim’s machine was running macOS, the cybersecurity firm explains.
Similarly, the first NPM package that was published as part of the new campaign was designed to collect system and network data from macOS devices and to exfiltrate it to a remote server. The code would stop execution if not running on macOS.
The identified RubyGems package followed a similar pattern, collecting system data and sending it to a remote server, and targeting macOS systems only.
Phylum also says that all packages were observed communicating with the same IP address to send collected system information, and that multiple packages with similar versions were published across the PyPI, NPM, and RubyGems repositories, demonstrating a clear connection between them.
“The author of these packages is staging a broad campaign against software developers. The end goal of this campaign remains unclear,” Phylum notes.
The software supply chain security company has reported all identified packages to the respective ecosystems, and says PyPI has confirmed that all packages have been removed.
Identified roughly a week after Phylum reported an attack targeting Rust developers, which employed malicious packages in the Crates.io Rust registry, the new campaign is proof that malware in open source package registries is becoming increasingly prevalent.
Related: ChatGPT Hallucinations Can Be Exploited to Distribute Malicious Code Packages
Related: Malicious NuGet Packages Used to Target .NET Developers
Related: Malicious NPM, PyPI Packages Stealing User Information

More from Ionut Arghire
- UAE-Linked APT Targets Middle East Government With New ‘Deadglyph’ Backdoor
- Xenomorph Android Banking Trojan Targeting Users in US, Canada
- $200 Million in Cryptocurrency Stolen in Mixin Network Hack
- Stealthy APT Gelsemium Seen Targeting Southeast Asian Government
- Nigerian Pleads Guilty in US to Million-Dollar BEC Scheme Role
- City of Dallas Details Ransomware Attack Impact, Costs
- In-the-Wild Exploitation Expected for Critical TeamCity Flaw Allowing Server Takeover
- Air Canada Says Employee Information Accessed in Cyberattack
Latest News
- Microsoft Adding New Security Features to Windows 11
- UAE-Linked APT Targets Middle East Government With New ‘Deadglyph’ Backdoor
- Sony Investigating After Hackers Offer to Sell Stolen Data
- The CISO Carousel and its Effect on Enterprise Cybersecurity
- Xenomorph Android Banking Trojan Targeting Users in US, Canada
- $200 Million in Cryptocurrency Stolen in Mixin Network Hack
- Stealthy APT Gelsemium Seen Targeting Southeast Asian Government
- Nigerian Pleads Guilty in US to Million-Dollar BEC Scheme Role
