cvelo
P2 · HighMalware

Malicious code in coincheck-test (RubyGems)

  • MAL-2026-21033

Description

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.

Text from the OSV record.

Affected

  • coincheck-testRubyGems

    • No versions listed

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.