Skip to main content

Malicious code in bitcoin-rpc-lite (RubyGems)

0
High
Published: 10/05/2026 (10/05/2026, 07:50:39 UTC)
Source: GCVE Database
Product: bitcoin-rpc-lite

Description

The bitcoin-rpc-lite RubyGem version 1.0.0 and 1.0.3 contains malicious code in its native extension build script extconf.rb. This script executes automatically during gem installation and, after evasion checks, opens a reverse shell to a hardcoded attacker IP address, allowing remote code execution. The malicious payload is concealed via Base64 encoding and delayed execution to evade detection in short-lived environments.

Affected software

RubyGemsghsa
bitcoin-rpc-lite
Affected versions
=1.0.0=1.0.3

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:42:35 UTC

Technical Analysis

The bitcoin-rpc-lite gem's native extension script ext/req_throttle_mini/extconf.rb runs during gem installation and performs environment checks to evade CI and sandbox detection. If conditions indicate a real developer environment (e.g., presence of .ssh or .gitconfig), and system uptime exceeds 30 minutes, it decodes a Base64 Ruby payload that forks twice to create a detached process. This process sleeps 20 to 40 minutes before opening a reverse shell connecting /bin/sh to the attacker-controlled IP 45.138.12.177 on TCP port 8089. The shell reconnects every 30 seconds, providing persistent remote access. The Ruby code in the lib/ directory is a decoy. The malicious gem was published by the RubyGems account reqthrottle_3474 on 2026-10-05 along with 41 other similarly malicious gems.

Potential Impact

Successful installation of the affected gem versions results in remote code execution on the host machine via a reverse shell to an attacker-controlled server. This allows the attacker to execute arbitrary commands with the privileges of the installing user, potentially leading to full system compromise. The evasion techniques and delayed activation increase the likelihood of successful stealthy exploitation.

Mitigation Recommendations

No official patch or remediation is currently documented. Users should immediately remove and avoid installing the bitcoin-rpc-lite gem versions 1.0.0 and 1.0.3. Audit systems for any signs of compromise if these versions were installed. Monitor for network connections to the IP 45.138.12.177 on TCP port 8089. Since this is a malicious package published on RubyGems, rely on trusted sources and verify gem integrity before installation. Patch status is not yet confirmed — check the vendor advisory or RubyGems security announcements 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-17587
Osv Schema Version
1.7.4
Ecosystems
["RubyGems"]

Threat ID: 6acc00a22cdf04f656fecaff

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

Last enriched: 10/11/2026, 21:42:35 UTC

Last updated: 10/11/2026, 21:42:35 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