node-ipc wipes files on Russian and Belarusian machines
ATG-class event7 to 8 March 2022
The maintainer of a package served about a million times a week added code that looked up the host’s location and overwrote files on machines in Russia and Belarus.
- Position
- The legitimate maintainer of a widely used package
- Reach
- About a million weekly downloads; picked up by Vue.js tooling and briefly by Unity Hub
- Category
- Open-Source Maintainer Infiltration
- Effect
- Destroy
What happened
In March 2022 the maintainer of node-ipc published versions 10.1.1 and 10.1.2, which checked the host's IP geolocation and, for machines in Russia or Belarus, overwrote files with a heart symbol. The destructive code was removed in 10.1.3 and the two versions were pulled from npm. Later versions brought in a module that only dropped a text file with a message about the war on users' desktops. Vue.js tooling picked up one of those versions while it was available, and Unity Hub briefly shipped it. The issue was tracked as CVE-2022-23812.
The ATG nexus
The code chose its victims by location. The same package, from the same publisher, did nothing to most of its users and destroyed data for a selected population. That is the per-request targeting the research describes, carried out through a dependency rather than a page. It also shows how a trusted maintainer's own motives can turn a widely shared resource into a weapon.
Limits of the comparison
Only two short-lived versions carried the destructive payload, and how many machines lost files is not known. The harm was to files on developer and build machines rather than to what users saw on a screen.
On this site
- Whitepaper, Chapter 9: Open Source and the Path to the Client Runtime
- Introduction: Aimed at You
- Concept: The Open-Source Open Door
- Concept: The Cost of Free