ton-jetton-tools (RubyGems) · Malicious Code
Affects ton-jetton-toolsSource GCVE Database
Malicious package : remove ton-jetton-tools and rotate any secrets on hosts that installed it.
Data as of 26 Oct 2026, 16:28 UTC
Malicious package
Published to RubyGems · OSV MAL-2026-17797
What to do
Remove ton-jetton-tools from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| RubyGemston-jetton-tools | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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.