Malicious code in coincheck_internal (RubyGems)
- MAL-2026-21035
Description
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/coincheck_internal.rb and invoked at top level, so it re-runs on `require`, and in lib/rubygems_plugin.rb, which RubyGems loads on every `gem` command, producing repeated exfiltration beyond installation.
Text from the OSV record.
Affected
coincheck_internalRubyGems
- No versions listed
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.