Connect with us

Hi, what are you looking for?

SecurityWeekSecurityWeek

Malware & Threats

Ongoing Campaign Uses 60 NPM Packages to Steal Data

Security firm Socket warns flags a campaign targeting NPM users with tens of malicious packages that can hijack system information.

Security firm Socket warns of an ongoing campaign targeting NPM users with tens of malicious packages that can collect and exfiltrate system information.

Over the past two weeks, a threat actor has published 60 NPM packages containing a small script that activates when the package is installed to collect hostnames, IP addresses, DNS server lists, and directory paths and send the information to an attacker-controlled Discord webhook.

Targeting Windows, Linux, and macOS, the information stealer script packs basic sandbox‑evasion checks, and was specifically designed to fingerprint any system that builds or installs one of the malicious packages.

“Combined downloads now exceed 3,000, giving the threat actor a growing map of developer and enterprise networks that can guide future intrusions. As of this writing, all packages remain live on NPM. We have petitioned for their removal,” Socket said in an advisory.

The security firm identified three NPM accounts that published 20 malicious packages each, namely bbbb335656, cdsfdfafd1232436437, and sdsds656565. All packages contain the same fingerprinting code and send data to the same Discord webhook.

According to Socket, because the nefarious script collects both internal and external network identifiers, it allows the threat actor to link private developer environments to public-facing infrastructure, enabling them to mount follow-up attacks.

Advertisement. Scroll to continue reading.

“The script gathers enough information to connect an organization’s internal network to its outward‑facing presence. By harvesting internal and external IP addresses, DNS servers, usernames, and project paths, it enables a threat actor to chart the network and identify high‑value targets for future campaigns,” Socket notes.

The campaign can also enable subsequent supply chain attacks, as the collected information may reveal internal package registry URLs, along with build paths, the company says.

It also warns that additional malicious packages might be published unless actions is taken quickly against the offending accounts, and recommends that developers use dependency‑scanning tools to identify unusually small tarballs, hardcoded URLs, and post‑install hooks.

Related: Popular Scraping Tool’s NPM Package Compromised in Supply Chain Attack

Related: Malicious NPM Packages Target Cursor AI’s macOS Users

Related: Malicious NPM Packages Target Cryptocurrency, PayPal Users

Related: 9-Year-Old NPM Crypto Package Hijacked for Information Theft

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.

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.

Today’s attackers are no longer breaking in — they’re logging in. Join this live webinar as we break down the modern identity attack chain and examine how recent breaches exploited weaknesses in authentication, identity verification, and access management processes.

Register

AI has accelerated both sides of the fight. Adversaries are weaponizing vulnerabilities faster, while defenders are racing to ship detections and configurations. Join this live webinar as we explore how to prove your controls actually hold against new threats, map your security maturity, and unite breach simulation with automated pentesting into a single, coordinated program.

Register

People on the Move

SolarWinds has appointed Justin Henkel as Chief Information Security Officer.

J. Paul Haynes has joined Cinchy as Chief Executive Officer.

Hatem Naguib has become Chief Executive Officer at Sysdig.

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.