Malicious code in ton-jetton-tools (RubyGems)
Description
The RubyGem 'ton-jetton-tools' version 0.9.1 contains malicious code in its native-extension build script (extconf.rb). This code decodes and executes a payload during gem installation that establishes a reverse shell connection to a remote IP, allowing remote command execution on the installer's host. The payload includes anti-analysis checks to evade detection in CI or sandbox environments and only activates if certain developer artifacts are present. The gem's metadata is inconsistent with its README, indicating an attempt to disguise its malicious intent.
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 'ton-jetton-tools' RubyGem version 0.9.1 includes a malicious native-extension build script that executes a base64-encoded Ruby payload during installation. This payload forks a detached child process that opens a TCP connection to 45.138.12.177:8089, bridging the socket to /bin/sh and providing an interactive shell to the remote operator. Execution is conditioned on anti-analysis heuristics that detect CI or sandbox environments and presence of developer artifacts such as SSH keys and git configuration files. The gem's declared name and README content are inconsistent, suggesting deliberate obfuscation.
Potential Impact
Successful installation of this gem version results in remote code execution on the host machine via a reverse shell, potentially allowing an attacker full control over the affected system. The malicious payload is designed to evade automated analysis environments and targets developer machines with specific artifacts, increasing the risk to development environments.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should avoid installing version 0.9.1 of 'ton-jetton-tools'. Verify gem sources and integrity before installation. Consider removing the gem if already installed and investigate any suspicious network connections to the indicated IP address. Monitor for updates from the vendor or RubyGems regarding remediation.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-17797
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["RubyGems"]
Threat ID: 6acc00a32cdf04f656fecb46
Added to database: 10/11/2026, 21:33:23 UTC
Last enriched: 10/11/2026, 21:45:50 UTC
Last updated: 10/11/2026, 21:45:50 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.