Skip to main content

Malicious code in ton-jetton-tools (RubyGems)

0
High
Published: 10/11/2026 (10/11/2026, 13:45:55 UTC)
Source: GCVE Database
Product: ton-jetton-tools

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

RubyGemsghsa
ton-jetton-tools
Affected versions
=0.9.1

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

AILast updated: 10/11/2026, 21:45:50 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses