{"id":"MAL-2026-21033","summary":"Malicious code in coincheck-test (RubyGems)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (d347af4316d0b52dd862d5b5071abf3ea865d8a164b74fb98812d6537f8a6ce3)\nThe gemspec declares ext/coincheck-test/extconf.rb as a native extension, so it executes during `gem install`. Rather than building code, it reads installer credential stores (~/.aws/credentials, ~/.ssh private keys, ~/.gem/credentials, ~/.npmrc, ~/.kube/config, ~/.netrc,.env files, Rails master.key/credentials), dumps the full process environment, runs host reconnaissance via shell subprocesses (identity, uname, network interfaces and routes, process list, git remotes of the surrounding repository), and queries cloud instance metadata at 169.254.169.254 and metadata.google.internal for IAM role and service-account credentials. The collected data is gzip-compressed, base64-encoded with a \"CCGEM1\" prefix, and POSTed to hardcoded https://webhook.site/\u003ctoken\u003e/\u003ctag\u003e endpoints, with a DNS out-of-band fallback to oast.fun subdomains. A stub Makefile emitting a no-op `all` target is written so the extension build appears to succeed. The same collector is duplicated in lib/coincheck-test.rb and lib/rubygems_plugin.rb and is invoked at load time, so any `require` of the gem and every `gem` CLI invocation re-runs the harvest and exfiltration.\n","modified":"2026-12-03T06:30:04.065453005Z","published":"2026-12-03T05:54:35Z","database_specific":{"malicious-packages-origins":[{"versions":["19.4.10"],"id":"IN-MAL-2026-023159","import_time":"2026-12-03T06:26:16.290291556Z","modified_time":"2026-12-03T05:54:35Z","sha256":"d347af4316d0b52dd862d5b5071abf3ea865d8a164b74fb98812d6537f8a6ce3","source":"amazon-inspector"}]},"references":[{"type":"PACKAGE","url":"https://rubygems.org/gems/coincheck-test/versions/19.4.10"}],"affected":[{"package":{"name":"coincheck-test","ecosystem":"RubyGems","purl":"pkg:gem/coincheck-test"},"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-test/extconf.rb","sha256":"51a95041c96a2655999decc93ce90db8e0b182b528ee168328f6abe842633dbd","tlsh":"31e1a5f78894ec3368f7c768e5273112ff1153872a740420ba1d2e5d2f3caa6a1659f4"},{"path":"lib/rubygems_plugin.rb","sha256":"a1e2206944fcdeb4cbd190e7ea12c41c82bb4ab06724033698b6f9dd128c9b79","tlsh":"30e195f79894ec3368f7c768e5277112ff1053872a740420ba1d2e9d2f3caa6a1659f4"}],"package_integrity":[{"filename":"coincheck-test-19.4.10.gem","hashes":{"sha256":"ddf4522c081473d9905e44f5cfd3cdc58844085be8ca454377aa4f25f5f6a51b"}}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/rubygems/coincheck-test/MAL-2026-21033.json"}}],"schema_version":"1.9.2","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}