Malicious code in coincheck (RubyGems)
- MAL-2026-21028
Description
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. 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.
Text from the OSV record.
Affected
coincheckRubyGems
- No versions listed
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.