Connect with us

Hi, what are you looking for?

SecurityWeekSecurityWeek

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.

Advertisement. Scroll to continue reading.

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

Written By

Ionut Arghire is an international correspondent for SecurityWeek.

Daily Briefing Newsletter

Subscribe to the SecurityWeek Email Briefing for the latest cybersecurity threats, trends, and expert insights.

Click to comment

Trending

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 this live webinar as we break down why email-layer defenses alone can't keep pace with the modern phishing ecosystem, how agentic AI is changing the capacity equation for security teams, and more.

Register

This year's summit will help organizations learn how to utilize tools, controls, and design models needed to properly secure cloud environments. Interact with leading solution providers and other end users facing similar challenges in securing a variety of cloud deployments.

Register

People on the Move

Philip Martin has joined Uber as Chief Information Security Officer.

Fable Security has appointed Jacob Berry as Chief Information Security Officer.

iCOUNTER has named Ali Waezzadah as Chief Information Security Officer.

More People On The Move

Expert Insights

Four decades of incident response experience suggest that exploits are often the symptom, not the root cause, of today’s cybersecurity failures.

Daily Briefing Newsletter

Subscribe to the SecurityWeek Email Briefing to stay informed on the latest cybersecurity news, threats, and expert insights. Unsubscribe at any time.