Malicious code in dex-router-abis (RubyGems)
Description
The RubyGem package dex-router-abis version 0.9.1 contains malicious code in its extconf.rb script that executes automatically during installation. This script decodes and runs a base64-encoded Ruby payload which, after a delay, opens a reverse shell to a hardcoded remote host. The payload activates only on developer workstations with certain environment indicators and credentials present, allowing attackers interactive shell access with potential exposure of local SSH keys and publishing credentials.
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 dex-router-abis RubyGem version 0.9.1 includes a malicious extconf.rb script that runs automatically during gem installation. This script decodes a base64-encoded Ruby payload and executes it via a double-forked, detached process that sleeps for 20-40 minutes before opening a TCP reverse shell from /bin/sh to the IP 45.138.12.177 on port 8089. The execution is conditional, checking for environment variables to avoid CI/sandbox environments and probing for developer secret files such as ~/.ssh, ~/.gitconfig, ~/.gem/credentials, ~/.npmrc, and ~/.bundle. The gem's metadata misleads by identifying as 'bitcoin-rpc-lite' while the actual package name is dex-router-abis, indicating reuse of a dropper template. Successful installation grants the attacker interactive shell access to the host, exposing sensitive developer credentials and keys.
Potential Impact
Successful installation of this malicious gem on a developer's machine results in the attacker gaining interactive shell access to the host system. This access can expose local SSH keys, RubyGems publishing credentials, and other sensitive developer secrets, potentially leading to further compromise of development environments and software supply chain integrity.
Defensive Guidance
No patch or official fix information is provided for this malicious package. The best mitigation is to avoid installing the dex-router-abis gem version 0.9.1 from untrusted sources. Verify the authenticity and integrity of RubyGems before installation. Monitor for suspicious network connections to the IP 45.138.12.177 on port 8089 and remove any installations of this gem. Consider using dependency scanning tools to detect malicious packages.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-17784
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["RubyGems"]
Threat ID: 6acc00a32cdf04f656fecb4a
Added to database: 10/11/2026, 21:33:23 UTC
Last enriched: 10/11/2026, 21:46:10 UTC
Last updated: 10/11/2026, 21:46:10 UTC
Views: 7
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.