Skip to main content

Malicious code in btc-fee-estimator (RubyGems)

0
High
Published: 10/11/2026 (10/11/2026, 13:46:21 UTC)
Source: GCVE Database
Product: btc-fee-estimator

Description

The RubyGem package 'btc-fee-estimator' version 0.9.1 contains malicious code that executes a backdoor during installation. The gem's installation script decodes and evaluates a hidden Ruby payload that opens a TCP connection to a hardcoded IP address, providing remote shell access. The payload includes anti-analysis checks to avoid detection in CI environments, sandboxes, and machines without developer artifacts, targeting real developer workstations. The package itself has no legitimate functionality and serves solely as a cover for this install-time backdoor.

Affected software

RubyGemsghsa
btc-fee-estimator
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:47 UTC

Technical Analysis

The 'btc-fee-estimator' RubyGem version 0.9.1 includes a malicious extconf.rb script that decodes a base64-encoded Ruby payload and evaluates it in a detached forked process during gem installation. This payload establishes a TCP connection to 45.138.12.177 on port 8089, bridging it to /bin/sh to provide interactive shell access on the installer's machine. The malicious code performs multiple anti-analysis checks to evade detection by skipping execution in CI environments, sandboxed hosts, machines with low uptime, and hosts lacking typical developer files. The gemspec and README misrepresent the package as a bitcoin fee estimator, but the shipped library exposes only stub methods, confirming the package's sole purpose is to deliver this backdoor.

Potential Impact

Successful installation of this gem on a developer workstation results in remote shell access for an attacker, enabling full control over the affected machine. The backdoor is stealthy, avoiding execution in analysis environments, increasing the risk of undetected compromise of developer systems. This can lead to further supply chain attacks or compromise of development infrastructure.

Mitigation Recommendations

No official patch or remediation is currently documented. Users should avoid installing version 0.9.1 of the 'btc-fee-estimator' gem. Verify the integrity and source of RubyGems before installation. Monitor for suspicious network connections to the IP 45.138.12.177 on port 8089 and investigate any unexpected shell access. Check vendor advisories or RubyGems security notices for updates or removal of the malicious package. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance.

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-17781
Osv Schema Version
1.7.4
Ecosystems
["RubyGems"]

Threat ID: 6acc00a32cdf04f656fecb45

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

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

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