Skip to main content
MalwarePublished

coincheck (RubyGems) · Malicious Code

Affects coincheckSource GCVE Database

0

Malicious package : remove coincheck and rotate any secrets on hosts that installed it.

Data as of 3 Dec 2026, 08:16 UTC

Classification

Malicious package

Published to RubyGems · OSV MAL-2026-21028

What to do

Remove coincheck 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

ProductAffectedFixed in
RubyGemscoincheckAffected
  • =19.4.10
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

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.

References

Community reviews

Loading reviews…