MAL-2026-13258 Malicious code in bitcoinjs-wallet (npm)
Malicious package
Published
MAL-2026-13258 is a malicious package: bitcoinjs-wallet (npm). Every version was published to cause harm.
Task:
1. Search this repository's dependency manifests and lockfiles for the package, including transitive dependencies.
2. If it is present, remove it, regenerate the lockfile with the project's package manager, and replace whatever it was used for.
3. List any CI runners, developer machines or containers that installed it, so their secrets can be rotated.
4. If the package is not used anywhere, say so and change nothing.
Reference: https://insights.sbomify.com/MAL-2026-13258/ (Markdown: https://insights.sbomify.com/MAL-2026-13258/index.md)
- Package
- bitcoinjs-wallet
- Registry
- npm
What is MAL-2026-13258?
MAL-2026-13258 is a malicious package in bitcoinjs-wallet, published on 5 Aug 2026.
Official description
[email protected] is a typosquat of bitcoinjs-lib that performs credential theft at module load. On require(), index.js collects hostname, username, homedir, platform, cwd and the entire process.env, JSON-stringifies and base64-encodes the payload, and transmits it via an HTTPS GET to the Telegram Bot API using a hardcoded bot token and chat_id 8969499041. A marker file in the OS tmpdir suppresses repeat sends. The bulk process.env dump captures any credentials the installer has in the environment (AWS_*, NPM_TOKEN, GITHUB_TOKEN, CI secrets, wallet-related variables). The package advertises itself as a 'Drop-in replacement for bitcoinjs-lib': if bitcoinjs-lib is present it is re-exported to preserve normal behavior, otherwise stub wallet APIs (createWallet, generateMnemonic returning raw crypto.randomBytes hex, signTransaction) are exposed as cover while the exfiltration has already fired.
What should I do about MAL-2026-13258?
Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.