{"id":"MAL-2026-21035","summary":"Malicious code in coincheck_internal (RubyGems)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (5a77664cd52940b9c42a132255e6a97a6bc252de4fa11ec7efec758d4e60ebfd)\nThe gem declares an extension script (extconf.rb) that executes during `gem install` and collects installer secrets from ~/.aws/credentials, ~/.ssh private keys, ~/.gem/credentials, ~/.npmrc, ~/.kube/config,.netrc,.env files and Rails master.key/credentials, together with a full environment dump, shell history and host reconnaissance output from commands such as `id` and `ps aux`. It also queries cloud instance metadata endpoints (169.254.169.254 and metadata.google.internal) for IAM role credentials and service-account tokens. The collected data is compressed and POSTed to hardcoded webhook.site collector URLs, with a DNS out-of-band fallback to oast.fun. The same payload module is embedded in lib/coincheck_internal.rb and invoked at top level, so it re-runs on `require`, and in lib/rubygems_plugin.rb, which RubyGems loads on every `gem` command, producing repeated exfiltration beyond installation.\n","modified":"2026-12-03T06:30:04.444490227Z","published":"2026-12-03T05:54:29Z","database_specific":{"malicious-packages-origins":[{"modified_time":"2026-12-03T05:54:29Z","sha256":"5a77664cd52940b9c42a132255e6a97a6bc252de4fa11ec7efec758d4e60ebfd","source":"amazon-inspector","versions":["19.4.10"],"id":"IN-MAL-2026-023158","import_time":"2026-12-03T06:26:16.239570087Z"}]},"references":[{"type":"PACKAGE","url":"https://rubygems.org/gems/coincheck_internal/versions/19.4.10"}],"affected":[{"package":{"name":"coincheck_internal","ecosystem":"RubyGems","purl":"pkg:gem/coincheck_internal"},"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":{"package_integrity":[{"filename":"coincheck_internal-19.4.10.gem","hashes":{"sha256":"698d23878cf3dc9654f078f15eed59d9209f9ce1407b267cfdf6e003cc5c5b28"}}],"evidence_files":[{"path":"ext/coincheck_internal/extconf.rb","sha256":"413a2b0320e59c4549fc3279ad13a941056a9556ca7621e412e48d4170844362","tlsh":"e0e1a5f78894ec3368f7c768e5273112ff1153872a740420ba1d2e5d2f38aa6a165df4"},{"sha256":"147b4af92b858a24c874eb60f2e50a8132136956d4b693d0ad06861c51f42777","tlsh":"43e195f79894ec3368f7c768e5277112ff1053872a740420ba1d2e9d2f3caa6a1659f4","path":"lib/coincheck_internal.rb"},{"tlsh":"8be195f79894ec3368f7c768e5277102ff1053872a740420ba1d2e9d2f3caa6a1659f4","path":"lib/rubygems_plugin.rb","sha256":"4b1486c35b450aa915404a0affeadd0a62c7e7161f6f861ed6dd75b53650c0e4"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/rubygems/coincheck_internal/MAL-2026-21035.json"}}],"schema_version":"1.9.2","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}