MAL-2026-13346 Malicious code in hdkey-wallet (npm)
Malicious package
Published
MAL-2026-13346 is a malicious package: hdkey-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-13346/ (Markdown: https://insights.sbomify.com/MAL-2026-13346/index.md)
- Package
- hdkey-wallet
- Registry
- npm
What is MAL-2026-13346?
MAL-2026-13346 is a malicious package in hdkey-wallet, published on 5 Aug 2026.
Official description
On module load, index.js reads the complete process.env object along with hostname, username, home directory, platform, and current working directory, JSON-encodes and base64-wraps the payload, and transmits it via https.get to api.telegram.org's Bot API using a hardcoded bot token and chat_id 8969499041. A tmpdir flag file guards against repeated exfiltration. The package name and README present it as a drop-in replacement for the legitimate
hdkey library, and the module attempts to require('hdkey') and re-export it when present, using the real library as a functional cover for the credential theft that fires on require(). Environments commonly holding secrets such as AWS_*, NPM_TOKEN, and GITHUB_TOKEN in process.env are directly exposed to the attacker-controlled Telegram bot.What should I do about MAL-2026-13346?
Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.