hd-wallet-generator (RubyGems) · Malicious Code
Affects hd-wallet-generatorSource GCVE Database
Malicious package : remove hd-wallet-generator and rotate any secrets on hosts that installed it.
Data as of 26 Oct 2026, 16:28 UTC
Malicious package
Published to RubyGems · OSV MAL-2026-17789
What to do
Remove hd-wallet-generator from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| RubyGemshd-wallet-generator | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
The RubyGem package hd-wallet-generator version 0.9.1 contains malicious code embedded in its native extension build script. During installation, it decodes and executes a payload that opens a remote TCP shell to a hardcoded IP address, allowing remote command execution on the installer's machine. The payload includes multiple evasion checks to avoid detection in sandbox or analysis environments. No legitimate native code is built; the extension build script is a decoy. The package metadata and README are inconsistent, indicating a disguised dropper.