A widely used npm package with more than 822,000 weekly downloads has once again become the center of a serious supply chain attack, raising fresh concerns across the JavaScript ecosystem.
Security researchers at Socket have uncovered multiple malicious versions of the popular node-ipc library containing stealthy credential-stealing malware and backdoor capabilities.
The affected versions, node-ipc@9.1.6, 9.2.3, and 12.0.1, were flagged within minutes of publication.
According to Socket, the malicious code is heavily obfuscated and designed to collect sensitive data from developer environments and CI pipelines silently, then exfiltrate it through covert DNS channels.
Unlike traditional npm attacks that rely on typosquatting or install-time scripts, this campaign embeds its payload directly into the CommonJS entry point (node-ipc.cjs). The malicious code executes automatically when the package is required, making it harder to detect.
Once triggered, the malware:
Interestingly, the clean ESM version of the package remains unaffected, meaning only applications that require “node-ipc” are affected.
The malware targets a wide range of sensitive developer assets, including:
It also collects system-level artifacts such as /etc/hosts and full environment variable dumps, which may contain API keys, tokens, and authentication secrets.
To evade detection, collected files are renamed, compressed into a .tar.gz archive, and temporarily stored before exfiltration. If execution is interrupted, these archives may remain on disk, providing a key forensic artifact for responders.
Instead of using standard HTTP channels, the malware uses DNS TXT queries for data exfiltration. It communicates with a spoofed domain designed to resemble legitimate Azure infrastructure:
The payload splits encoded data into thousands of small DNS queries, making detection difficult without deep network inspection. A single infection can generate tens of thousands of DNS requests.
Early investigation suggests the attack may have originated from a compromised npm maintainer account. Researchers believe an attacker took control of a dormant account (atiertant) by exploiting an expired email domain, allowing them to reset credentials and publish malicious versions without breaching the npm infrastructure directly.
This technique highlights a growing risk in open-source ecosystems, abandoned or inactive maintainer accounts becoming entry points for attackers.
node-ipc was previously involved in a controversial 2022 incident involving destructive, geo-targeted malware. The reappearance of malicious code in this package suggests either repeated compromise or deliberate reintroduction, rather than a simple copycat attack.
Developers are strongly advised to immediately remove the affected versions and audit dependencies for transitive inclusion. Any system that loaded the CommonJS version should be treated as compromised.
Security teams should monitor DNS logs for unusual TXT query bursts and block known malicious domains. Rotating credentials, including cloud keys, SSH keys, and API tokens, is critical to prevent further compromise.
This incident reinforces a hard truth: even trusted open-source packages can become attack vectors overnight, and proactive dependency monitoring is no longer optional.
Indicators of Compromise (IOCs)
Note: IP addresses and domains are intentionally defanged (e.g., [.]) to prevent accidental resolution or hyperlinking. Re-fang only within controlled threat intelligence platforms such as MISP, VirusTotal, or your SIEM.
Follow us on Google News, LinkedIn, and X to Get Instant Updates and Set GBH as a Preferred Source in Google.
Attackers abused compromised ConnectWise Cloud Backup credentials to access Microsoft 365 customer environments, prompting ConnectWise…
Anthropic says an internal Claude research model reconstructed how the National Security Agency generated seeds…
Two WordPress Core vulnerabilities can be chained to execute remote code without authentication, according to…
A newly disclosed OpenBSD kernel exploitation chain combines a shared memory accounting flaw with a…
GhostAction attackers have expanded their GitHub credential theft campaign with a second stage that disguises…
Indian authorities have warned that SideCopy hackers are targeting Indian organizations, including academic institutions, with…