Skip to main content
MalwarePublished

coincheck_core (RubyGems) · Malicious Code

Affects coincheck_coreSource GCVE Database

0

Malicious package : remove coincheck_core and rotate any secrets on hosts that installed it.

Data as of 3 Dec 2026, 08:16 UTC

Classification

Malicious package

Published to RubyGems · OSV MAL-2026-21034

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

ProductAffectedFixed in
RubyGemscoincheck_coreAffected
  • =19.4.10
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 (9e4fe5934fda00d2a3725c1e79fcd4adc47b74818802e7f2c50de278b269d240) The gemspec-declared extension script ext/coincheck_core/extconf.rb executes during `gem install` and, before emitting a stub Makefile, reads installer secret files (~/.aws/credentials, ~/.ssh private keys, ~/.gem/credentials, ~/.netrc, ~/.npmrc, ~/.kube/config,.env files, Rails master.key/credentials), dumps the full process environment, queries cloud instance metadata at 169.254.169.254 for role credentials, and shells out via IO.popen for host reconnaissance (id/whoami, uname, network configuration, process list, git remotes). The collected data is compressed, base64-encoded, and POSTed to hardcoded https://webhook.site/<token> collector URLs, with a DNS out-of-band fallback to oast.fun. The same payload module is duplicated in lib/coincheck_core.rb and invoked at top level, so `require "coincheck_core"` repeats the harvest in any consuming process, and in lib/rubygems_plugin.rb, which RubyGems auto-loads on every `gem` command, using a /tmp marker file to deduplicate runs. A source comment self-describes the code as a dependency-confusion payload, and the gemspec presents Coincheck Inc. metadata (coincheck.com, dev@coincheck.com) that does not correspond to the shipped behavior.

References

Community reviews

Loading reviews…