MAL-2026-21032: Malicious code in coincheck-main (RubyGems)

Published Dec 3, 2026
·
Updated

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

Source: amazon-inspector (000821cad106ba018a983a1db68e75fe6405a6bba3fd815969dc2721c76357cf) The gem declares a native extension at ext/coincheck-main/extconf.rb that ships no C sources; instead of compiling anything it writes a stub Makefile ("all:\n\t@true") so the build appears to succeed, and executes a secret-collection routine during gem install. The routine reads installer credential files including ~/.aws/credentials, ~/.ssh private keys, ~/.gem/credentials, ~/.netrc, ~/.npmrc, ~/.kube/config,.env files and Rails master.key/credentials, dumps the full process environment, runs shell recon commands (id, kernel and network interface/route listings, process list, and git remote/last-commit of the surrounding repository), and queries cloud instance metadata at 169.254.169.254 for IAM role security-credentials and user-data as well as metadata.google.internal for the default service-account OAuth token. The collected report is deflated, base64-encoded and POSTed to hardcoded https://webhook.site/<token>/<tag> endpoints, with a DNS out-of-band fallback to oast.fun subdomains. The same CCPayload module is embedded in lib/coincheck-main.rb and lib/rubygemsplugin.rb and invoked at top level, so it also fires when the library is required and on every gem CLI invocation via the plugin autoload; a /tmp marker file (.ccgem<tag>) enforces single-fire execution per host.

Source: ossf-package-analysis (8d46d7a8330f4f2f29b6de9dff155883a70403c0e7f45990068268b13428d182) The OpenSSF Package Analysis project identified 'coincheck-main' @ 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-main=19.4.10

Event History

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

Frequently Asked Questions

1

When does the malicious routine execute?

It executes during gem installation. The native extension uses a stub Makefile so the build appears to succeed without compiling C sources.

2

Which environments are most exposed if this gem is installed?

Hosts are exposed when the installing process can access credential files, environment variables, repository metadata, or cloud instance metadata services. This includes systems with AWS, SSH, RubyGems, npm, Kubernetes, Rails, or netrc credentials available to the installer.

3

Can cloud credentials be collected from an affected host?

Yes, if the host can reach the relevant metadata services. The routine queries 169.254.169.254 for IAM role credentials and user-data, and metadata.google.internal for a default service-account OAuth token.

4

What evidence could indicate that collection occurred?

The routine sends a compressed and base64-encoded report by POST to hardcoded webhook.site endpoints, with a DNS out-of-band fallback using oast.fun subdomains. Network and DNS telemetry for those destinations around gem installation may provide evidence.

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