Malicious code in evm-tx-decoder (RubyGems)
Description
The evm-tx-decoder RubyGem version 0.9.1 contains malicious code embedded in its native-extension build script extconf.rb. This script decodes and executes a base64-encoded Ruby payload that establishes a reverse shell connection to a hardcoded command-and-control server at 45.138.12.177:8089 during gem installation. The payload includes anti-analysis checks to evade detection in sandbox or analyst environments and delays execution before launching the backdoor shell. The package lacks legitimate functionality related to its stated purpose, indicating it is a malicious package designed to compromise the host at install time.
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 evm-tx-decoder RubyGem version 0.9.1 includes a malicious native-extension build script (extconf.rb) that decodes a base64-encoded Ruby payload and executes it via eval in a detached child process. This payload opens a TCP socket to a hardcoded IP address (45.138.12.177) on port 8089 and connects it to a local shell (/bin/sh), effectively creating an interactive remote shell on the host during gem installation. The execution is gated by multiple anti-analysis checks, including environment heuristics and presence of developer files, and includes a randomized sleep delay to avoid detection. The gem's legitimate code is minimal and unrelated to the malicious behavior, with the native build script serving as a cover for the backdoor.
Potential Impact
Successful installation of this gem results in remote code execution on the host system with the privileges of the installing user. The attacker gains an interactive shell connected to a remote command-and-control server, allowing full control over the compromised system. The anti-analysis techniques reduce the likelihood of detection during automated or sandboxed analysis, increasing the risk of stealthy compromise.
Mitigation Recommendations
No official patch or remediation is indicated in the provided data. Users should avoid installing evm-tx-decoder version 0.9.1 from untrusted sources. Verify the integrity and provenance of RubyGems before installation. If this gem is detected on a system, remove it immediately and investigate for potential compromise. Monitor for network connections to the IP 45.138.12.177 on port 8089 as an indicator of compromise. 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-17787
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["RubyGems"]
Threat ID: 6acc00a32cdf04f656fecb3f
Added to database: 10/11/2026, 21:33:23 UTC
Last enriched: 10/11/2026, 21:45:18 UTC
Last updated: 10/11/2026, 21:45:18 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.