Malicious package · npm
Malicious code in ethers-wallet-latest (npm)
5.8.0No safe version. Remove it.What it does
ethers-wallet-latest is a copy of @ethersproject/wallet 5.8.0 with an obfuscated block injected at the start of the Wallet constructor in lib/index.js (the package main). Every new Wallet(privateKey, ...) POSTs the private key to a hardcoded Telegram bot (bot7837266935, chat 7974622428), the same bot and chat as base60-58x.
Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
No fix · Remove and contain
npm uninstall ethers-wallet-latestSources