Skip to content

MAL-2026-21033 Malicious code in coincheck-test (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 (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.

Upgrade path

1 package: 0 fixed.

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

Affected products

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

References