Malicious package · npm
Malicious code in base128-x58 (npm)
0.0.10.0.2No safe version. Remove it.What it does
base128-x58 is a copy of the base-x encoding library (package.json still points at the cryptocoinjs/base-x repository) with one obfuscated statement injected at the start of decode() (src/cjs/index.cjs, src/esm/index.js). Every call to decode() POSTs the input string to a hardcoded Telegram bot (bot8016635959, chat -1002664926517). Base58 decode() input is typically a wallet private key, so this steals keys from any application that uses it. Imported by npm-bs58.js.
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 base128-x58Sources