VYPR

gem · Malicious package advisory

Malware

coincheck_internal

GHSA-m88w-h44q-g8gr

Malicious code in coincheck_internal (RubyGems)

Details

**Severity:** Critical

**Affected versions:** `= 19.4.10`

## 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/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.

---

Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/78d0ba20d615fbedd73fd1d3140928492091c0df/osv/malicious/rubygems/coincheck_internal/MAL-2026-21035.json))

**References:**
- https://github.com/ossf/malicious-packages/blob/78d0ba20d615fbedd73fd1d3140928492091c0df/osv/malicious/rubygems/coincheck_internal/MAL-2026-21035.json
- https://rubygems.org/gems/coincheck_internal/versions/19.4.10
- https://github.com/advisories/GHSA-m88w-h44q-g8gr

Compromised versions (1)

  • = 19.4.10

Any computer that installed or ran a compromised version should be considered fully compromised. Rotate every secret on that machine from a clean environment.