npm · Malicious package advisory
Malwareethers-wallet-latest
MAL-2026-20038
Malicious code in ethers-wallet-latest (npm)
Details
`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`. --- _-= Per source details. Do not edit below this line.=-_ ## Source: ghsa-malware (595a8c5177146f7949dca318f4ca6571b11ef9ed23156e3c6297651f33734eca) 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.
Compromised versions (1)
- 5.8.0
Any computer that installed or ran a compromised version should be considered fully compromised. Rotate every secret on that machine from a clean environment.