Malicious code in multichain-rpc (RubyGems)
Description
The multichain-rpc RubyGem version 0.9.1 contains malicious code embedded in its extconf.rb file. This code executes during gem installation, launching a background process that connects to a remote host and provides an interactive shell to an attacker. The payload uses evasion techniques to avoid detection in developer and CI environments and delays execution by 20-40 minutes. The gem's visible code is a decoy, with stub methods and misleading documentation.
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 multichain-rpc RubyGem (version 0.9.1) includes a malicious payload in its extconf.rb script, which runs automatically during gem installation as a native extension build step. This payload base64-decodes a Ruby script and executes it via eval inside a detached background process. It opens a TCP connection to a hardcoded IP (45.138.12.177) on port 8089, bridging it to /bin/sh, effectively granting the remote attacker an interactive shell on the victim's machine. The malicious code employs developer-host heuristics (checking for files like ~/.ssh, ~/.gitconfig, ~/.npmrc, ~/.gem/credentials, ~/.bundle, and system uptime) and anti-analysis checks to avoid running in CI, ephemeral, sandbox, or generated-user environments. It also delays execution by 20 to 40 minutes to evade detection. The rest of the gem is a cover, exporting only stub methods and containing misleading documentation and native extension declarations without actual C source code.
Potential Impact
Successful installation of this gem on a developer workstation results in a full remote shell being granted to the attacker, allowing complete control over the affected machine. This can lead to unauthorized access, data theft, system compromise, and further lateral movement within the victim's environment.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should avoid installing version 0.9.1 of the multichain-rpc gem. Inspect and remove any installations of this gem from developer workstations. Monitor for suspicious network connections to the IP 45.138.12.177 on port 8089. Since the malicious code is embedded in the gem installation process, do not install untrusted or unknown RubyGems without verification. 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-17791
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["RubyGems"]
Threat ID: 6acc00a32cdf04f656fecb35
Added to database: 10/11/2026, 21:33:23 UTC
Last enriched: 10/11/2026, 21:44:32 UTC
Last updated: 10/11/2026, 21:44:32 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.