electron-native-notify 1.1.6 on npm downloaded and ran extra code inside the Agama wallet app to steal seed phrases on 23 March 2019.
The Agama cryptocurrency wallet from Komodo used this package. npm and Komodo say the value at risk was over 13 million US dollars.
What happened
An attacker built trust with a harmless package and then added malicious code.
- The code sent an HTTP GET request to a Heroku endpoint and downloaded a payload.
- The payload ran inside the wallet app.
- It sent the wallet seed to the same server when a user entered it.
- Komodo reports that about one million KMD were taken.
- The Komodo team moved about 8 million KMD and 96 BTC to safe storage.
The attacker published 1.1.6 on 23 March 2019. Agama 0.3.5 shipped with it on 13 April 2019, and npm removed the package on 4 to 5 June 2019.
Affected versions
electron-native-notify1.1.6, and 1.2.0 per Snyk.- Version 1.1.5 was the last clean release.
- Komodo Agama wallet builds that included the dependency, including Agama 0.3.5 released on 13 April 2019.
Indicators of compromise
- Endpoint:
https://updatecheck.herokuapp.com/check. electron-native-notifyinpackage.json,package-lock.jsonor a build of EasyDEX-GUI.- An unexpected GET request to a Heroku address when a wallet app starts.
How to check
Search the tree for the package.
npm ls electron-native-notify
Search the lockfiles too.
grep -rn "electron-native-notify" package.json package-lock.json yarn.lock 2>/dev/null
What to do now
- Remove electron-native-notify from every project and build again.
- Agama users: move all funds to a new address as soon as you can. Make a new seed on a clean machine.
- Komodo asks affected users to file a Missing Funds Claim Form and send a small test transaction from the old wallet.
- Block the Heroku endpoint.
What Vigilance would show
These examples show an install hold and the corresponding owner report.
Example install message
Vigilance blocked `electron-native-notify` 1.1.6. This version is too new or changed in a way Vigilance must check first.
Example owner report
Bad update
electron-native-notify 1.1.6
The notification helper can now call a website, download extra code, and run it inside the wallet app.
No security team? See who reads the alert.
Frequently asked questions
Which electron-native-notify version was malicious?
Version 1.1.6, published on 23 March 2019. Snyk also reports 1.2.0. Version 1.1.5 was clean.
Did the electron-native-notify attack steal cryptocurrency?
Yes. It targeted seed phrases in the Komodo Agama wallet. Komodo reports about one million KMD were taken.
Sources
Send this page to the person who looks after AI at your company.