A trusted npm package downloaded over 822,000 times weekly has been weaponized in a sophisticated supply chain attack, sending shockwaves through the JavaScript developer community.
Security researchers at Socket discovered multiple malicious versions of the node-ipc library packed with credential-stealing malware and hidden backdoor functionality.
The compromised versions node-ipc@9.1.6, 9.2.3, and 12.0.1 were flagged within minutes of publication, but not before exposing countless developer environments to silent data theft.
node-ipc Supply Chain Attack
Unlike typical npm supply chain attacks that rely on typosquatting or install-time scripts, this campaign embeds its payload directly into the package’s CommonJS entry point (node-ipc.cjs).
The malicious code executes automatically the moment the package is required, bypassing many traditional detection methods.
Notably, the ESM version of node-ipc remains clean only for applications using require("node-ipc") are at risk.
Once triggered, the heavily obfuscated malware fingerprints the host system, enumerates local files and environment variables, then compresses and encrypts stolen data before exfiltrating it through covert DNS TXT queries, a technique specifically designed to evade standard network monitoring.
The malware casts a wide net across sensitive developer assets, targeting:
- Cloud credentials for AWS, Azure, GCP, and OCI
- SSH keys, Git credentials, and API tokens
- Kubernetes, Docker, and Terraform configurations
.envfiles, database configs, and CI/CD secrets- System-level artifacts including
/etc/hostsand full environment dumps
Stolen files are renamed and compressed into a .tar.gz archive stored at /tmp/nt-<pid>/, and exfiltrated via DNS queries to attacker-controlled domains mimicking legitimate Azure infrastructure.
A single compromised system can generate tens of thousands of DNS requests, splitting encoded data into small chunks to avoid detection without deep packet inspection.
Compromised Maintainer Account
Investigators believe the attack originated from a hijacked npm maintainer account.
A threat actor reportedly exploited an expired email domain linked to a dormant account (atiertant), resetting credentials to publish the malicious versions without ever breaching npm’s core infrastructure.
This tactic highlights a critical and growing blind spot in open-source security: abandoned maintainer accounts functioning as silent entry points.
This isn’t node-ipc’s first controversy. The package was involved in a destructive geo-targeted malware incident in 2022, raising questions about whether this represents repeated compromise or deliberate reintroduction.
Developers should immediately remove affected versions, rotate all cloud keys, SSH keys, and API tokens, and audit transitive dependencies.
Security teams must monitor DNS logs for unusual bursts of TXT queries and block the listed domains across all endpoints.
IOCs
| IOC Type | Value |
|---|---|
| Malicious Package | node-ipc@9.1.6 |
| Malicious Package | node-ipc@9.2.3 |
| Malicious Package | node-ipc@12.0.1 |
| Malicious Domain | sh[.]azurestaticprovider[.]net |
| Exfiltration Domain | bt[.]node[.]js |
| DNS Pattern | xh., xd., xf.* subdomains |
| Temp File Path | /tmp/nt-<pid>/<machineHex>.tar.gz |
| Artifact Timestamp | Oct 26, 1985 (anomalous file timestamps) |
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 More Instant Updates. Set Cyberpress as a Preferred Source in Google