MAL-2026-21029: Malicious code in coincheck-api (RubyGems)

Published Dec 3, 2026
·
Updated

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

Source: amazon-inspector (f5fb44542c81015996e4cdb272a6bd5590dddbbb102790feccf7ee95477438f8) The gem ships an identical collector payload in three automatically-reached locations: the gemspec-declared extension script ext/coincheck-api/extconf.rb (runs during gem install and writes a stub Makefile instead of compiling any native code), the library entry point lib/coincheck-api.rb (runs at require time), and lib/rubygemsplugin.rb (auto-loaded by RubyGems on any gem invocation, with a /tmp marker file named.ccgem used to deduplicate runs). The payload gathers host reconnaissance via IO.popen calls such as id, uname -a, ps aux, network interface/route listings and git remote -v, serializes the full process environment, and reads installer secret files including ~/.aws/credentials, ~/.ssh private keys, ~/.gem/credentials, ~/.npmrc, ~/.docker/config.json, ~/.kube/config,.env files and Rails master.key. It also queries cloud instance metadata at 169.254.169.254 for IAM role credentials and user-data, plus a GCP service-account token endpoint. The collected bundle is compressed, base64-encoded and POSTed to hardcoded webhook.site collector URLs, with a DNS-based out-of-band fallback to oast.fun. No part of the extension script performs a real native build.

Source: ossf-package-analysis (1272af6a4e4beaa52acc66cb7950bd118fd39f5fb2be74cb0c269bba641c21e3) The OpenSSF Package Analysis project identified 'coincheck-api' @ 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-api=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 can the payload execute?

It can run during gem installation through ext/coincheck-api/extconf.rb, when the gem is required through lib/coincheck-api.rb, and on any gem invocation through the RubyGems plugin at lib/rubygems_plugin.rb. These are automatically reached locations, so execution does not require an application to call a specific collector function.

2

What information could be exposed from an affected host?

The payload collects host and process reconnaissance, network and route information, Git remotes, and the full process environment. It attempts to read AWS, SSH, RubyGems, npm, Docker, and Kubernetes credentials, .env files, Rails master keys, and cloud instance metadata including IAM role credentials, user-data, and a GCP service-account token.

3

How can I look for evidence that it has run?

The RubyGems plugin uses a /tmp marker file named ccgem_* to deduplicate execution. Its presence may indicate that the plugin payload ran; also review whether the gem was installed, required, or whether gem commands were run on systems where it was present.

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