VYPR

gem · Malicious package advisory

Malware

coincheck-test

GHSA-ffhx-m9q3-8mr6

Malicious code in coincheck-test (RubyGems)

Details

**Severity:** Critical

**Affected versions:** `= 19.4.10`

## Source: amazon-inspector (d347af4316d0b52dd862d5b5071abf3ea865d8a164b74fb98812d6537f8a6ce3)
The gemspec declares ext/coincheck-test/extconf.rb as a native extension, so it executes during `gem install`. Rather than building code, it reads installer credential stores (~/.aws/credentials, ~/.ssh private keys, ~/.gem/credentials, ~/.npmrc, ~/.kube/config, ~/.netrc,.env files, Rails master.key/credentials), dumps the full process environment, runs host reconnaissance via shell subprocesses (identity, uname, network interfaces and routes, process list, git remotes of the surrounding repository), and queries cloud instance metadata at 169.254.169.254 and metadata.google.internal for IAM role and service-account credentials. The collected data is gzip-compressed, base64-encoded with a "CCGEM1" prefix, and POSTed to hardcoded https://webhook.site/<token>/<tag> endpoints, with a DNS out-of-band fallback to oast.fun subdomains. A stub Makefile emitting a no-op `all` target is written so the extension build appears to succeed. The same collector is duplicated in lib/coincheck-test.rb and lib/rubygems_plugin.rb and is invoked at load time, so any `require` of the gem and every `gem` CLI invocation re-runs the harvest and exfiltration.

---

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

**References:**
- https://github.com/ossf/malicious-packages/blob/78d0ba20d615fbedd73fd1d3140928492091c0df/osv/malicious/rubygems/coincheck-test/MAL-2026-21033.json
- https://rubygems.org/gems/coincheck-test/versions/19.4.10
- https://github.com/advisories/GHSA-ffhx-m9q3-8mr6

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.