MAL-2026-21028: Malicious code in coincheck (RubyGems)

Published Dec 3, 2026
·
Updated

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

Source: amazon-inspector (0d2ae2a1f9a6b364df847c05fdcfce85b9554932f9754f687657e367c1580a13) The gem ships an identical credential-harvesting routine in three auto-executing locations: the gemspec-declared extension script ext/coincheck/extconf.rb (runs during gem install and writes a stub Makefile so the build appears to succeed), the library entry point lib/coincheck.rb (runs at top level on require "coincheck"), and lib/rubygemsplugin.rb (auto-loaded by RubyGems on any gem invocation, with a marker file under the temp directory gating repeats). The routine reads installer secrets including ~/.aws/credentials, ~/.ssh private keys, ~/.gem/credentials, ~/.netrc, ~/.kube/config,.env files and Rails master.key/credentials, dumps the full environment, runs shell commands for host/process/network reconnaissance, and requests cloud instance metadata credentials from 169.254.169.254 and metadata.google.internal. The collected data is compressed, base64-encoded with a "CCGEM1" prefix and POSTed to hardcoded webhook.site endpoints, with an additional DNS out-of-band channel to oast.fun. No native code is actually built. Installing, loading, or merely running any gem command on an affected host discloses cloud, SSH and registry-publishing credentials to an external collector.

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

Event History

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

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