MAL-2026-13257 Malicious code in bip39-generator (npm)
Malicious package
Published
MAL-2026-13257 is a malicious package: bip39-generator (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-13257/ (Markdown: https://insights.sbomify.com/MAL-2026-13257/index.md)
- Package
- bip39-generator
- Registry
- npm
What is MAL-2026-13257?
MAL-2026-13257 is a malicious package in bip39-generator, published on 5 Aug 2026.
Official description
On module load, index.js JSON-serializes the full process.env together with hostname, username, homedir, platform, and cwd, base64-encodes the blob, and sends it as an HTTPS GET to api.telegram.org using a hardcoded bot token and chat_id 8969499041. A tmpdir marker file suppresses re-sends. The package presents itself as a 'drop-in replacement for bip39' and exports non-functional wallet/mnemonic stubs (generateMnemonic returns random hex, createWallet/signTransaction return placeholder values), consistent with a typosquat lure targeting crypto developers. Any process that requires this package leaks its environment variables (typically including API keys, cloud credentials, and CI secrets) and host identity to the attacker's Telegram channel.
What should I do about MAL-2026-13257?
Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.