MAL-2026-21035: Malicious code in coincheck_internal (RubyGems)
--- -= 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
Event History
Frequently Asked Questions
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.
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.
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.
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.
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.