UpTrajectory Review

Supply Chain Attack on npm Package Highlights Cybersecurity Risks

rusted padlock on network cable
Photo: Stanislav Kondratiev / Pexels

UpTrajectory Review

An expired domain let attackers hijack a maintainer's account on node-ipc, a Node.js module that handles inter-process communication and quietly powers hundreds of other packages. The hackers published three trojanized versions on Thursday, each carrying an 80KB obfuscated credential stealer that fires whenever an application loads the module. The stolen data covers CI/CD tools, cloud services, Kubernetes, SSH keys, and AI coding agents, and it leaves the building through DNS TXT queries rather than HTTP, which slips past most network filters. With nearly 700K weekly downloads and 424 direct dependents, the blast radius could extend far beyond the teams that installed node-ipc directly.

If your business runs any Node.js application, you need to check your dependency tree today, not next week. The compromised versions are 9.1.6, 9.2.3, and 12.0.1. Pin your versions, audit your lockfiles, and scan every server, build agent, and developer laptop that touched those builds. Treat every token, environment variable, and API key stored on an affected machine as burned. Rotate credentials in order of privilege: cloud root keys first, then CI/CD tokens, then service accounts. The DNS exfiltration channel means your egress logs may already show the leak if you know where to look.

What stands out here is not the malware itself but the delivery mechanism. Domain expiry as an attack vector is old news in theory, yet maintainers still let registrations lapse, and package registries still treat email control as proof of identity. The March 2022 incident, when the project's creator deliberately shipped file-wiping code to Russian and Belarusian systems, should have taught everyone that node-ipc carries unusual risk. That history makes this compromise easier to execute and harder to detect, because defenders already learned to distrust the package and may have tuned out alerts.

The second-order damage falls unevenly. Small teams without dedicated security staff will struggle to trace transitive dependencies; a package they never chose may have pulled node-ipc into their stack. Large enterprises with software composition analysis tools will find the compromised versions quickly, but they face a longer remediation tail across thousands of build pipelines. Cloud providers and CI/CD vendors will absorb pressure to detect DNS TXT anomalies at scale. The AI coding agent angle is new: tools that embed repository credentials in their context windows now sit squarely in the crosshairs.

Watch for npm to tighten account recovery and for domain-verification requirements to spread across registries. Expect attackers to recycle this playbook against other long-tail packages with lapsed infrastructure. If you maintain open-source dependencies, set auto-renew on every domain tied to your maintainer accounts and enable hardware-key two-factor authentication. If you consume dependencies, generate a software bill of materials this week and subscribe to vulnerability feeds that cover the packages you actually ship. The next compromise will not wait for you to catch up.

“The data is exfiltrated through DNS TXT queries rather than HTTP connections.” — CSO Online

Takeaway: Audit your Node.js dependency tree for node-ipc versions 9.1.6, 9.2.3, and 12.0.1, then rotate every credential stored on affected systems.

Excerpt from the original — CSO Online

A popular npm package called node-ipc has been compromised, with hackers publishing malicious versions that bundle credential stealing malware. The root cause of the compromise was an expired domain name that attackers managed to register in order to hijack a maintainer’s account.

The node-ipc package has had malware added to its code in the past. In March 2022, following Russia’s invasion of Ukraine, the project’s creator intentionally added malicious code to the program to wipe files on systems with Russian or Belarusian IP addresses.

Node-ipc is a Node.js module that implements support for local and remote Inter-Process Communication over various types of socket across all major platforms. One use case is in implementing complex multi-process neural networks in JavaScript, but the module is also used as a dependency for 424 other projects, and receives almost 700K weekly …