{"id":"MAL-2026-21034","summary":"Malicious code in coincheck_core (RubyGems)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (9e4fe5934fda00d2a3725c1e79fcd4adc47b74818802e7f2c50de278b269d240)\nThe 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/\u003ctoken\u003e 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.\n","modified":"2026-12-03T06:30:04.062119555Z","published":"2026-12-03T05:53:48Z","database_specific":{"malicious-packages-origins":[{"sha256":"9e4fe5934fda00d2a3725c1e79fcd4adc47b74818802e7f2c50de278b269d240","source":"amazon-inspector","versions":["19.4.10"],"id":"IN-MAL-2026-023153","import_time":"2026-12-03T06:26:16.027560624Z","modified_time":"2026-12-03T05:53:48Z"}]},"references":[{"type":"PACKAGE","url":"https://rubygems.org/gems/coincheck_core/versions/19.4.10"}],"affected":[{"package":{"name":"coincheck_core","ecosystem":"RubyGems","purl":"pkg:gem/coincheck_core"},"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":[{"sha256":"7c427ea1f425ce03d525e45f98abec882b2d3920c18b21926d5016cc0ddb3ec0","tlsh":"68e1a5f78894ec3368f7c768e5277102ff1153872a740420ba1d6e9d2f38ba6a1659f4","path":"ext/coincheck_core/extconf.rb"},{"tlsh":"83e194f79894ac3368f7c768e5277102ef1053872a740420ba1d2e9d2f3caa6a1659f4","path":"lib/coincheck_core.rb","sha256":"f008d2d0003beb2109bb744f73517463c5ee27986b592b5b76a52844b9a4d5bc"},{"path":"lib/rubygems_plugin.rb","sha256":"4ccf66a153957fa3e8d5d5956fc9b8f37cde6e013269f63c79ac819757aa47c1","tlsh":"aae194f79894ec3368f7c768e5277102ff1053872a740420ba1d2e9d2f3caa6a1659f4"}],"package_integrity":[{"filename":"coincheck_core-19.4.10.gem","hashes":{"sha256":"a62a67e627175ab2d8228585ff7ffeba134b5429e1a5c90a7a51505dc469ed63"}}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/rubygems/coincheck_core/MAL-2026-21034.json"}}],"schema_version":"1.9.2","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}