MAL-2026-21035: Malicious code in coincheck_internal (RubyGems)

Published Dec 3, 2026
·
Updated

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

Source: amazon-inspector (5a77664cd52940b9c42a132255e6a97a6bc252de4fa11ec7efec758d4e60ebfd) The gem declares an extension script (extconf.rb) that executes during gem install and collects installer secrets from ~/.aws/credentials, ~/.ssh private keys, ~/.gem/credentials, ~/.npmrc, ~/.kube/config,.netrc,.env files and Rails master.key/credentials, together with a full environment dump, shell history and host reconnaissance output from commands such as id and ps aux. It also queries cloud instance metadata endpoints (169.254.169.254 and metadata.google.internal) for IAM role credentials and service-account tokens. The collected data is compressed and POSTed to hardcoded webhook.site collector URLs, with a DNS out-of-band fallback to oast.fun. The same payload module is embedded in lib/coincheckinternal.rb and invoked at top level, so it re-runs on require, and in lib/rubygemsplugin.rb, which RubyGems loads on every gem command, producing repeated exfiltration beyond installation.

Affected Software

1 affected component
rubygems/coincheck_internal=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

What actions can trigger the malicious code?

It runs during gem installation through extconf.rb. It can also run when the gem is required and through lib/rubygems_plugin.rb, which RubyGems loads on every gem command, enabling repeated execution after installation.

2

What information may have been exposed?

The code targets AWS credentials, SSH private keys, RubyGems credentials, npm, Kubernetes, netrc, environment, and Rails secrets; it also collects a full environment dump, shell history, host reconnaissance output, and cloud-instance metadata credentials or tokens. Collected data is compressed and sent to hardcoded webhook.site URLs, with a DNS out-of-band fallback to oast.fun.

3

Who is most exposed?

Systems where this gem was installed, required by an application, or where RubyGems commands were run after installation are exposed to execution. Hosts with developer credentials, deployment secrets, Kubernetes configuration, cloud instance roles, or access to cloud metadata services have particularly sensitive data available to the code.

4

How can I determine whether a host may be affected?

Check whether coincheck_internal version 19.4.10 was installed or present in application dependencies. Also investigate whether the host ran gem commands or loaded code that required coincheck_internal after installation, because both can re-trigger the payload.

5

What should be done if the gem was installed?

Treat credentials and tokens accessible on the host as potentially exposed, including cloud metadata credentials, and rotate or revoke them as appropriate. Remove the gem and investigate outbound connections to the hardcoded webhook.site collectors 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