Skip to content

MAL-2026-21028 Malicious code in coincheck (RubyGems)

Unknown
Published
Updated
Exploit status
No public exploit known
Technology
Cloud Platforms

Description


-= Per source details. Do not edit below this line.=-

Source: amazon-inspector (0d2ae2a1f9a6b364df847c05fdcfce85b9554932f9754f687657e367c1580a13)

The gem ships an identical credential-harvesting routine in three auto-executing locations: the gemspec-declared extension script ext/coincheck/extconf.rb (runs during gem install and writes a stub Makefile so the build appears to succeed), the library entry point lib/coincheck.rb (runs at top level on require "coincheck"), and lib/rubygems_plugin.rb (auto-loaded by RubyGems on any gem invocation, with a marker file under the temp directory gating repeats). The routine reads installer secrets including ~/.aws/credentials, ~/.ssh private keys, ~/.gem/credentials, ~/.netrc, ~/.kube/config,.env files and Rails master.key/credentials, dumps the full environment, runs shell commands for host/process/network reconnaissance, and requests cloud instance metadata credentials from 169.254.169.254 and metadata.google.internal. The collected data is compressed, base64-encoded with a "CCGEM1" prefix and POSTed to hardcoded webhook.site endpoints, with an additional DNS out-of-band channel to oast.fun. No native code is actually built. Installing, loading, or merely running any gem command on an affected host discloses cloud, SSH and registry-publishing credentials to an external collector.

Source: ossf-package-analysis (b70d846777dd88787dc5d3801839ee8db181d149ced5ee254ce4363a92814d88)

The OpenSSF Package Analysis project identified 'coincheck' @ 19.4.10 (rubygems) as malicious.

It is considered malicious because:

  • The package communicates with a domain associated with malicious activity.

  • The package executes one or more commands associated with malicious behavior.

Upgrade path

1 package: 0 fixed.

PackageAffectedFixed inStatus
rubygems coincheck(RubyGems) = 19.4.10 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
rubygems coincheck(RubyGems) = 19.4.10 No fix listed

References