coincheck-core (RubyGems) · Malicious Code
Affects coincheck-coreSource GCVE Database
Malicious package : remove coincheck-core and rotate any secrets on hosts that installed it.
Data as of 3 Dec 2026, 08:16 UTC
Malicious package
Published to RubyGems · OSV MAL-2026-21031
What to do
Remove coincheck-core from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| RubyGemscoincheck-core | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (617aadbd354d729bb60adaf23436d110757486eaf29fb5d7f1d9212b503427d5) The gemspec declares ext/coincheck-core/extconf.rb as a native extension, so it executes during `gem install`, yet no native sources are shipped and the script simply writes a stub Makefile. Instead of building anything, it reads installer-owned secret material including ~/.aws/credentials, ~/.ssh private keys, ~/.gem/credentials, ~/.npmrc, ~/.kube/config,.netrc,.env files and Rails master.key/credentials, dumps the full process environment, runs host reconnaissance commands, and POSTs a compressed, base64-encoded blob to hardcoded https://webhook.site/<token>/<tag> collector endpoints, with a DNS out-of-band fallback to oast.fun. The same harvester is embedded in lib/coincheck-core.rb, so it also fires when the library is required, and in lib/rubygems_plugin.rb, which RubyGems loads on every `gem` command invocation. Those paths additionally query cloud instance metadata at 169.254.169.254 for AWS IAM role credentials and the GCP service-account token. A marker file under /tmp named.ccgem_<tag> plus an environment flag check suppress repeat transmissions. ## Source: ossf-package-analysis (af76c1ae78d060df24b75545147783a499bc16d5b3f332cc5ffc228c713422a0) The OpenSSF Package Analysis project identified 'coincheck-core' @ 19.4.10 (rubygems) as malicious. It is considered malicious because: - The package communicates with a domain associated with malicious activity. - The package executes one or more commands associated with malicious behavior.