VYPR

gem · Malicious package advisory

Malware

coincheck-common

GHSA-9hm2-r69j-96cp

Malicious code in coincheck-common (RubyGems)

Details

**Severity:** Critical

**Affected versions:** `= 19.4.10`

## Source: amazon-inspector (ee09d680ab94ce640bb8270dbac71942c605016f64f0817e174a2a9996d107b8)
The gem ships no native source but declares ext/coincheck-common/extconf.rb as an extension, so `gem install` executes it. That script collects installer secrets — home-directory credential files including.aws/credentials,.ssh/id_* private keys,.gem/credentials,.netrc,.npmrc,.kube/config and.docker/config.json, shell history, Rails config/master.key and credentials, and.env* files — together with a full ENV dump and the output of host reconnaissance commands (id, uname, ip addr, ps, git remote). It also queries the AWS instance metadata service at 169.254.169.254 for IAM role credentials and user-data and metadata.google.internal for the default service-account OAuth token. The bundle is compressed, base64-encoded and POSTed to webhook.site collector URLs built from embedded tokens, with a DNS out-of-band fallback to oast.fun. The same CCPayload module is invoked at top level in lib/coincheck-common.rb and lib/rubygems_plugin.rb, so the harvest also runs on `require "coincheck-common"` and on every `gem` CLI invocation via the auto-loaded plugin hook. A /tmp marker file (.ccgem_<tag>) and a CCGEM_DONE environment check limit execution to once per host. The package presents itself as an internal Coincheck shared library (homepage coincheck.com, [email protected]) and provides no functionality, consistent with dependency-confusion targeting of an internal gem name.

---

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

**References:**
- https://github.com/ossf/malicious-packages/blob/78d0ba20d615fbedd73fd1d3140928492091c0df/osv/malicious/rubygems/coincheck-common/MAL-2026-21030.json
- https://rubygems.org/gems/coincheck-common/versions/19.4.10
- https://github.com/ossf/malicious-packages/blob/8fade29f2953370bead069a12adac48d723410a0/osv/malicious/rubygems/coincheck-common/MAL-2026-21030.json
- https://github.com/advisories/GHSA-9hm2-r69j-96cp

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.