NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
Malicious package

coincheckRubyGems

Advisory published Updated

coincheck is a confirmed malicious RubyGems package (MAL-2026-21028) that steals credentials and exfiltrates sensitive data (malicious version 19.4.10). Do not install it — remove it immediately and rotate any exposed credentials.

Malicious code in coincheck (RubyGems)

MAL-2026-21028
Immediate action
Remove the package, then rotate any secrets the build/runtime could reach.
gem uninstall coincheck

What this malware does

The gem ships an identical credential-harvesting routine in three auto-executing locations: the gemspec-declared extension script ext/coincheck/extconf.rb (runs during gem install and writes a stub Makefile so the build appears to succeed), the library entry point lib/coincheck.rb (runs at top level on require "coincheck"), and lib/rubygems_plugin.rb (auto-loaded by RubyGems on any gem invocation, with a marker file under the temp directory gating repeats). The routine reads installer secrets including ~/.aws/credentials, ~/.ssh private keys, ~/.gem/credentials, ~/.netrc, ~/.kube/config,.env files and Rails master.key/credentials, dumps the full environment, runs shell commands for host/process/network reconnaissance, and requests cloud instance metadata credentials from 169.254.169.254 and metadata.google.internal. The collected data is compressed, base64-encoded with a "CCGEM1" prefix and POSTed to hardcoded webhook.site endpoints, with an additional DNS out-of-band channel to oast.fun. No native code is actually built. Installing, loading, or merely running any gem command on an affected host discloses cloud, SSH and registry-publishing credentials to an external collector.

The OpenSSF Package Analysis project identified 'coincheck' @ 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.

Malicious versions

1 flagged
19.4.10

Indicators of compromise (SHA-256)

0d2ae2a1f9a6b364df847c05fdcfce85b9554932f9754f687657e367c1580a13
b70d846777dd88787dc5d3801839ee8db181d149ced5ee254ce4363a92814d88

Detection & response playbook

Credential / info stealer
  1. Find it

    Search your lockfiles and build artifacts for coincheck (version 19.4.10).

  2. If you installed it — respond

    coincheck is built to steal secrets, so assume every credential the build or runtime could read is compromised. Remove it from your project and lockfile, then rotate ALL exposed secrets — npm/registry tokens, cloud keys, CI/CD secrets, SSH keys, and any .env values — from a known-clean machine. Audit logs for unauthorized use of those credentials.

  3. Did it already run?

    If coincheck was installed, its post-install payload may already have run. Removing the package does not undo that — check outbound connections and credential use from the install window onward.

Frequently asked questions

No. coincheck on RubyGems has been identified as a malicious package (version 19.4.10 flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Campaign

IN-MAL-2026-023160

References

Credits

  • Amazon Inspector · finder
  • OpenSSF: Package Analysis · finder

Detect & block this

O3 blocks coincheck-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the credential exfiltration and severs the channel.

Explore

coincheck (RubyGems) malicious package — MAL-2026-21028 | O3 Security