{"id":"MAL-2026-21029","summary":"Malicious code in coincheck-api (RubyGems)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (f5fb44542c81015996e4cdb272a6bd5590dddbbb102790feccf7ee95477438f8)\nThe 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.\n\n## Source: ossf-package-analysis (1272af6a4e4beaa52acc66cb7950bd118fd39f5fb2be74cb0c269bba641c21e3)\nThe OpenSSF Package Analysis project identified 'coincheck-api' @ 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.439635080Z","published":"2026-12-03T05:54:04Z","database_specific":{"malicious-packages-origins":[{"modified_time":"2026-12-03T05:54:04Z","sha256":"f5fb44542c81015996e4cdb272a6bd5590dddbbb102790feccf7ee95477438f8","source":"amazon-inspector","versions":["19.4.10"],"id":"IN-MAL-2026-023155","import_time":"2026-12-03T06:26:16.099345523Z"},{"source":"ossf-package-analysis","versions":["19.4.10"],"import_time":"2026-12-03T06:26:14.529532924Z","modified_time":"2026-12-03T06:01:09Z","sha256":"1272af6a4e4beaa52acc66cb7950bd118fd39f5fb2be74cb0c269bba641c21e3"}]},"references":[{"type":"PACKAGE","url":"https://rubygems.org/gems/coincheck-api/versions/19.4.10"}],"affected":[{"package":{"name":"coincheck-api","ecosystem":"RubyGems","purl":"pkg:gem/coincheck-api"},"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"}],"indicators":{"evidence_files":[{"path":"ext/coincheck-api/extconf.rb","sha256":"b9ea6c3b703ec990bf211ba66a6ec7beda8b8a92944b25db3e2392e398489144","tlsh":"1ee1a4f78894ec3368f7c768e5277112ff1153872a740420ba1d2e9d2f38aa6a1659f4"},{"sha256":"926d08fd328f40045b2fd99ef3cf940a0a07da29ec756633f46bb75377ce9b8b","tlsh":"3fe194f79894ec3368f7c768e5277112ff1053872a740420ba1d2e9d2f3caa6a1659f4","path":"lib/coincheck-api.rb"},{"sha256":"d4a8b85dd5ebe70600e7e5f4cdd5c4998466c52e9b12b72db52343e8c554e839","tlsh":"cae195f79894ec3368f7c768e5277112ff1053872a740420ba1d2e9d2f3caa6a1659f4","path":"lib/rubygems_plugin.rb"}],"package_integrity":[{"filename":"coincheck-api-19.4.10.gem","hashes":{"sha256":"d070986aaa0e63fa9569a124a7e2e1e522eb684292b453218592d473a2e6e418"}}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/rubygems/coincheck-api/MAL-2026-21029.json"}}],"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"}]}