Malicious package · RubyGems
Malicious code in coincheck_internal (RubyGems)
19.4.10No safe version. Remove it.What it does
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.
No fix · Remove and contain
gem uninstall coincheck_internalSources