coincheck-api (RubyGems) · Malicious Code
Affects coincheck-apiSource GCVE Database
Malicious package : remove coincheck-api 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-21029
What to do
Remove coincheck-api 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-api | 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 (f5fb44542c81015996e4cdb272a6bd5590dddbbb102790feccf7ee95477438f8) The gem ships an identical collector payload in three automatically-reached locations: the gemspec-declared extension script ext/coincheck-api/extconf.rb (runs during `gem install` and writes a stub Makefile instead of compiling any native code), the library entry point lib/coincheck-api.rb (runs at require time), and lib/rubygems_plugin.rb (auto-loaded by RubyGems on any `gem` invocation, with a /tmp marker file named.ccgem_* used to deduplicate runs). The payload gathers host reconnaissance via IO.popen calls such as id, uname -a, ps aux, network interface/route listings and `git remote -v`, serializes the full process environment, and reads installer secret files including ~/.aws/credentials, ~/.ssh private keys, ~/.gem/credentials, ~/.npmrc, ~/.docker/config.json, ~/.kube/config,.env files and Rails master.key. It also queries cloud instance metadata at 169.254.169.254 for IAM role credentials and user-data, plus a GCP service-account token endpoint. The collected bundle is compressed, base64-encoded and POSTed to hardcoded webhook.site collector URLs, with a DNS-based out-of-band fallback to oast.fun. No part of the extension script performs a real native build. ## Source: ossf-package-analysis (1272af6a4e4beaa52acc66cb7950bd118fd39f5fb2be74cb0c269bba641c21e3) The OpenSSF Package Analysis project identified 'coincheck-api' @ 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.