{"id":"MAL-2026-21032","summary":"Malicious code in coincheck-main (RubyGems)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (000821cad106ba018a983a1db68e75fe6405a6bba3fd815969dc2721c76357cf)\nThe gem declares a native extension at ext/coincheck-main/extconf.rb that ships no C sources; instead of compiling anything it writes a stub Makefile (\"all:\\n\\t@true\") so the build appears to succeed, and executes a secret-collection routine during `gem install`. The routine reads installer credential files including ~/.aws/credentials, ~/.ssh private keys, ~/.gem/credentials, ~/.netrc, ~/.npmrc, ~/.kube/config,.env files and Rails master.key/credentials, dumps the full process environment, runs shell recon commands (id, kernel and network interface/route listings, process list, and git remote/last-commit of the surrounding repository), and queries cloud instance metadata at 169.254.169.254 for IAM role security-credentials and user-data as well as metadata.google.internal for the default service-account OAuth token. The collected report is deflated, base64-encoded and POSTed to hardcoded https://webhook.site/\u003ctoken\u003e/\u003ctag\u003e endpoints, with a DNS out-of-band fallback to oast.fun subdomains. The same CCPayload module is embedded in lib/coincheck-main.rb and lib/rubygems_plugin.rb and invoked at top level, so it also fires when the library is required and on every `gem` CLI invocation via the plugin autoload; a /tmp marker file (.ccgem_\u003ctag\u003e) enforces single-fire execution per host.\n\n## Source: ossf-package-analysis (8d46d7a8330f4f2f29b6de9dff155883a70403c0e7f45990068268b13428d182)\nThe OpenSSF Package Analysis project identified 'coincheck-main' @ 19.4.10 (rubygems) as malicious.\n\nIt is considered malicious because:\n\n- The package communicates with a domain associated with malicious activity.\n\n- The package executes one or more commands associated with malicious behavior.\n","modified":"2026-12-03T06:30:04.059776233Z","published":"2026-12-03T05:54:12Z","database_specific":{"malicious-packages-origins":[{"source":"amazon-inspector","versions":["19.4.10"],"id":"IN-MAL-2026-023156","import_time":"2026-12-03T06:26:16.150006624Z","modified_time":"2026-12-03T05:54:12Z","sha256":"000821cad106ba018a983a1db68e75fe6405a6bba3fd815969dc2721c76357cf"},{"sha256":"8d46d7a8330f4f2f29b6de9dff155883a70403c0e7f45990068268b13428d182","source":"ossf-package-analysis","versions":["19.4.10"],"import_time":"2026-12-03T06:26:14.812682112Z","modified_time":"2026-12-03T06:21:09Z"}]},"references":[{"type":"PACKAGE","url":"https://rubygems.org/gems/coincheck-main/versions/19.4.10"}],"affected":[{"package":{"name":"coincheck-main","ecosystem":"RubyGems","purl":"pkg:gem/coincheck-main"},"versions":["19.4.10"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/rubygems/coincheck-main/MAL-2026-21032.json","indicators":{"evidence_files":[{"path":"ext/coincheck-main/extconf.rb","sha256":"1cc6e216b8c615cea7a5434100ed793e302f663cce4c322d6577550189d61fe7","tlsh":"18e1a5f78894ec3368f7c768e5277102ff1153872a740420ba1d6e9d2f38ba6a1659f4"},{"sha256":"31614308ff45205ccf226bc22582146ebf35b3daa314062ca3b75bf31ee745ad","tlsh":"eae195f79894ec3368f7c768e5277102ff1053872a740420ba1d2e9d2f3caa661659f4","path":"lib/rubygems_plugin.rb"}],"package_integrity":[{"filename":"coincheck-main-19.4.10.gem","hashes":{"sha256":"9347abd895045165cb92edf3e95e39137967cf56d204e3c94f86480af84f4590"}}]}}}],"schema_version":"1.9.2","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"},{"name":"OpenSSF: Package Analysis","contact":["https://github.com/ossf/package-analysis","https://openssf.slack.com/channels/package_analysis"],"type":"FINDER"}]}