Skip to main content

Malicious code in wallet-hd-derive (RubyGems)

0
High
Published: 10/11/2026 (10/11/2026, 13:47:58 UTC)
Source: GCVE Database
Product: wallet-hd-derive

Description

The RubyGem 'wallet-hd-derive' version 0.9.1 contains malicious code that executes a backdoor during installation. The gemspec triggers execution of an encoded Ruby payload that performs sandbox evasion checks, then establishes a delayed reverse shell to a remote IP, allowing remote command execution on the host. The gem's library exposes only no-op methods and a misleading README, indicating it is solely a delivery vehicle for this backdoor.

Affected software

RubyGemsghsa
wallet-hd-derive
Affected versions
=0.9.1

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/11/2026, 21:45:01 UTC

Technical Analysis

The 'wallet-hd-derive' RubyGem version 0.9.1 is a malicious package masquerading as a crypto wallet utility. Its gemspec declares an extension script 'extconf.rb' which is executed automatically upon installation. This script decodes a base64-encoded Ruby payload that performs environment checks to evade sandbox and analysis environments by detecting CI environments, ephemeral hostnames, generated usernames, certain working directories, and low machine uptime. It also verifies the presence of developer-identifying files. After these checks, it double-forks a detached process, sleeps for 20 to 40 minutes, then opens a TCP connection to 45.138.12.177 on port 8089. It pipes a /bin/sh shell bidirectionally over this connection, effectively providing a remote operator with interactive shell access on the compromised developer or CI host. The gem's library exposes only two no-op methods and the README is unrelated, confirming the gem's sole purpose is to deliver this install-time backdoor.

Potential Impact

Any developer or continuous integration environment that installs the 'wallet-hd-derive' gem version 0.9.1 may have a remote attacker gain interactive shell access on their system. This allows the attacker to execute arbitrary commands with the privileges of the installing user, potentially leading to full system compromise, data theft, or further lateral movement within the network.

Mitigation Recommendations

No official patch or remediation is currently available. Users and organizations should avoid installing or using the 'wallet-hd-derive' gem version 0.9.1. Audit existing environments for installations of this gem and remove it immediately. Monitor for any network connections to the IP 45.138.12.177 on port 8089 and investigate any suspicious activity. Employ strict controls on dependency sources and consider using trusted package registries or internal mirrors. Patch status is not yet confirmed — check the vendor advisory or trusted security sources for updates.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
MAL-2026-17800
Osv Schema Version
1.7.4
Ecosystems
["RubyGems"]

Threat ID: 6acc00a32cdf04f656fecb3c

Added to database: 10/11/2026, 21:33:23 UTC

Last enriched: 10/11/2026, 21:45:01 UTC

Last updated: 10/11/2026, 21:45:01 UTC

Views: 2

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses