VYPR

gem · Malicious package advisory

Malware

coincheck-test

MAL-2026-21033

Malicious code in coincheck-test (RubyGems)

Details


---
_-= Per source details. Do not edit below this line.=-_

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

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.