Skip to main content
MalwarePublished

coincheck-test (RubyGems) · Malicious Code

Affects coincheck-testSource GCVE Database

0

Malicious package : remove coincheck-test 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-21033

What to do

Remove coincheck-test 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
RubyGemscoincheck-testAffected
  • =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 (d347af4316d0b52dd862d5b5071abf3ea865d8a164b74fb98812d6537f8a6ce3) The gemspec declares ext/coincheck-test/extconf.rb as a native extension, so it executes during `gem install`. Rather than building code, it reads installer credential stores (~/.aws/credentials, ~/.ssh private keys, ~/.gem/credentials, ~/.npmrc, ~/.kube/config, ~/.netrc,.env files, Rails master.key/credentials), dumps the full process environment, runs host reconnaissance via shell subprocesses (identity, uname, network interfaces and routes, process list, git remotes of the surrounding repository), and queries cloud instance metadata at 169.254.169.254 and metadata.google.internal for IAM role and service-account credentials. The collected data is gzip-compressed, base64-encoded with a "CCGEM1" prefix, and POSTed to hardcoded https://webhook.site/<token>/<tag> endpoints, with a DNS out-of-band fallback to oast.fun subdomains. A stub Makefile emitting a no-op `all` target is written so the extension build appears to succeed. The same collector is duplicated in lib/coincheck-test.rb and lib/rubygems_plugin.rb and is invoked at load time, so any `require` of the gem and every `gem` CLI invocation re-runs the harvest and exfiltration.

References

Community reviews

Loading reviews…