Skip to main content
Menu
Advisories

Malicious code in base64-x58 (npm)

GHSA-QX2J-6RJ5-6MQXPublished Updated GitHubMalware

Description

base64-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 (bot8177895028, chat 7631491367). Base58 decode() input is typically a wallet private key. The same bot is hardcoded in node-bs58.js 4.0.2-4.0.6; imported by node-bs58.js 6.0.0 and npm-bs58.js 6.0.0.

---

Credit: OpenSSF (source)

Affected versions

References

GitHub · ossf/malicious-packages

wormsign.io

GitHub Advisory Database