Malicious code in eth-gas-oracle (RubyGems)
Description
The eth-gas-oracle RubyGem 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 reverse shell to a hardcoded IP address, allowing remote command execution on the installer's machine. The payload includes evasion techniques to avoid detection in sandbox or CI environments and requires the presence of developer artifacts to activate. The package metadata is inconsistent, indicating it is a disposable vehicle for malicious activity rather than legitimate functionality.
Affected software
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
Technical Analysis
The eth-gas-oracle RubyGem version 0.9.1 includes a malicious native extension build script (ext/extconf.rb) that base64-decodes and evals a Ruby payload during gem installation. This payload forks a detached child process that attempts to open a TCP reverse shell to 45.138.12.177:8089, bridging /bin/sh over the socket to provide arbitrary remote command execution. The payload avoids execution in continuous integration environments, sandbox hosts, ephemeral usernames, and low uptime machines, and requires developer-related files such as ~/.ssh or ~/.gitconfig to be present. After daemonizing, it delays 20–40 minutes before connecting to evade sandbox detection. The gem's metadata inconsistencies and minimal legitimate functionality suggest it is a malicious package designed to compromise developer systems during installation.
Potential Impact
Successful installation of this gem version results in a reverse shell backdoor on the installer's host, granting remote attackers arbitrary command execution capabilities. This compromises the confidentiality, integrity, and availability of the affected system. The evasion techniques reduce the likelihood of detection during automated analysis or sandboxing, increasing the risk of stealthy compromise.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should avoid installing eth-gas-oracle version 0.9.1 and remove any existing installations. Verify the integrity and provenance of RubyGems before installation. Monitor for unexpected network connections to the IP 45.138.12.177:8089 and investigate any suspicious activity. Patch status is not yet confirmed — check the vendor advisory or RubyGems security announcements for updates.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-17786
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["RubyGems"]
Threat ID: 6acc00a32cdf04f656fecb33
Added to database: 10/11/2026, 21:33:23 UTC
Last enriched: 10/11/2026, 21:44:24 UTC
Last updated: 10/11/2026, 21:44:24 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.