MAL-2026-21031: Malicious code in coincheck-core (RubyGems)

Published Dec 3, 2026
·
Updated

--- -= Per source details. Do not edit below this line.=-

Source: amazon-inspector (617aadbd354d729bb60adaf23436d110757486eaf29fb5d7f1d9212b503427d5) The gemspec declares ext/coincheck-core/extconf.rb as a native extension, so it executes during gem install, yet no native sources are shipped and the script simply writes a stub Makefile. Instead of building anything, it reads installer-owned secret material including ~/.aws/credentials, ~/.ssh private keys, ~/.gem/credentials, ~/.npmrc, ~/.kube/config,.netrc,.env files and Rails master.key/credentials, dumps the full process environment, runs host reconnaissance commands, and POSTs a compressed, base64-encoded blob to hardcoded https://webhook.site/<token>/<tag> collector endpoints, with a DNS out-of-band fallback to oast.fun. The same harvester is embedded in lib/coincheck-core.rb, so it also fires when the library is required, and in lib/rubygemsplugin.rb, which RubyGems loads on every gem command invocation. Those paths additionally query cloud instance metadata at 169.254.169.254 for AWS IAM role credentials and the GCP service-account token. A marker file under /tmp named.ccgem<tag> plus an environment flag check suppress repeat transmissions.

Source: ossf-package-analysis (af76c1ae78d060df24b75545147783a499bc16d5b3f332cc5ffc228c713422a0) The OpenSSF Package Analysis project identified 'coincheck-core' @ 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.

Affected Software

1 affected component
rubygems/coincheck-core=19.4.10

Event History

Dec 3, 2026
Advisory Published
via OSV·05:51 AM
Data Sourced
via OSV·05:51 AM
DescriptionAffected Software

Frequently Asked Questions

1

When can the malicious code execute?

It can execute during gem installation through the declared native extension, when the library is required, and on every gem command invocation through lib/rubygems_plugin.rb.

2

What systems and credentials are most exposed?

Hosts where the gem is installed or invoked may expose AWS credentials and instance-role credentials, GCP service-account tokens, SSH private keys, RubyGems and npm credentials, Kubernetes configuration, netrc and environment files, and Rails secrets. The code also collects the full process environment and host reconnaissance data.

3

How can I look for evidence of execution?

Check for marker files named /tmp/ccgem_<tag>. Network telemetry may show POST requests to hardcoded webhook.site collector endpoints or DNS activity involving oast.fun.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203