Skip to main content

Malicious code in gas-refuel-bridge (RubyGems)

0
High
Published: 10/11/2026 (10/11/2026, 13:45:36 UTC)
Source: GCVE Database
Product: gas-refuel-bridge

Description

The RubyGem 'gas-refuel-bridge' version 0.9.1 contains malicious code embedded in its native extension build script. During installation, it decodes and executes a hidden Ruby payload that establishes a persistent reverse shell to a remote server after a delay. The payload includes anti-analysis checks to avoid detection in CI environments or ephemeral systems and activates only on developer-like hosts. The gem's outward appearance is benign, with inert code and misleading documentation serving as a cover. This behavior poses a significant risk of unauthorized remote access on systems where the gem is installed.

Affected software

RubyGemsghsa
gas-refuel-bridge
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:46:03 UTC

Technical Analysis

The 'gas-refuel-bridge' RubyGem version 0.9.1 includes a malicious native extension build script (extconf.rb) that base64-decodes and evals a Ruby payload during gem installation. This payload double-forks a background process that waits 20-40 minutes before opening a TCP socket to 45.138.12.177:8089, creating a persistent reverse shell to /bin/sh. Execution is conditioned on anti-analysis checks, skipping CI environments, ephemeral hostnames, short system uptime, and requiring developer identity markers such as presence of ~/.ssh or ~/.gitconfig. The gem's visible code and documentation are decoys, with the extension hook being the sole functional payload.

Potential Impact

Systems installing version 0.9.1 of the 'gas-refuel-bridge' gem are at risk of having a persistent reverse shell established to a remote attacker-controlled server, enabling unauthorized remote command execution. The anti-analysis gating reduces detection likelihood in automated or ephemeral environments but targets developer machines. This compromises confidentiality, integrity, and availability of affected hosts.

Mitigation Recommendations

No official patch or remediation is currently documented. Users should avoid installing version 0.9.1 of the 'gas-refuel-bridge' gem. If already installed, remove the gem and inspect affected systems for signs of compromise, including active reverse shells or suspicious background processes. Monitor network connections to the IP 45.138.12.177 on port 8089. 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-17788
Osv Schema Version
1.7.4
Ecosystems
["RubyGems"]

Threat ID: 6acc00a32cdf04f656fecb48

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

Last enriched: 10/11/2026, 21:46:03 UTC

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