Connect with us

Hi, what are you looking for?


Malware & Threats

Developers Warned of Malicious PyPI, NPM, Ruby Packages Targeting Macs

Malicious packages uploaded to PyPI, NPM, and Ruby repositories are targeting macOS users with information stealing malware.

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.

Advertisement. Scroll to continue reading.

“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 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

Written By

Ionut Arghire is an international correspondent for SecurityWeek.

Click to comment

Daily Briefing Newsletter

Subscribe to the SecurityWeek Email Briefing to stay informed on the latest threats, trends, and technology, along with insightful columns from industry experts.

Join security experts as they discuss ZTNA’s untapped potential to both reduce cyber risk and empower the business.


Join Microsoft and Finite State for a webinar that will introduce a new strategy for securing the software supply chain.


Expert Insights

Related Content


The changing nature of what we still generally call ransomware will continue through 2023, driven by three primary conditions.


A recently disclosed vBulletin vulnerability, which had a zero-day status for roughly two days last week, was exploited in a hacker attack targeting the...


No one combatting cybercrime knows everything, but everyone in the battle has some intelligence to contribute to the larger knowledge base.

Malware & Threats

Threat actors are increasingly abusing Microsoft OneNote documents to deliver malware in both targeted and spray-and-pray campaigns.

Malware & Threats

Unpatched and unprotected VMware ESXi servers worldwide have been targeted in a ransomware attack exploiting a vulnerability patched in 2021.


The recent ransomware attack targeting Rackspace was conducted by a cybercrime group named Play using a new exploitation method, the cloud company revealed this...

Application Security

Virtualization technology giant VMware on Tuesday shipped urgent updates to fix a trio of security problems in multiple software products, including a virtual machine...

Malware & Threats

A vulnerability affecting IBM’s Aspera Faspex file transfer solution, tracked as CVE-2022-47986, has been exploited in attacks.