MAL-2026-21035

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/rubygems/coincheck_internal/MAL-2026-21035.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-21035
Published
2026-12-03T05:54:29Z
Modified
2026-12-03T06:30:04Z
Summary
Malicious code in coincheck_internal (RubyGems)
Details

-= Per source details. Do not edit below this line.=-

Source: amazon-inspector (5a77664cd52940b9c42a132255e6a97a6bc252de4fa11ec7efec758d4e60ebfd)

The 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.

Database specific
{
    "malicious-packages-origins":  [
        {
            "id":  "IN-MAL-2026-023158",
            "import_time":  "2026-12-03T06:26:16.239570087Z",
            "modified_time":  "2026-12-03T05:54:29Z",
            "sha256":  "5a77664cd52940b9c42a132255e6a97a6bc252de4fa11ec7efec758d4e60ebfd",
            "source":  "amazon-inspector",
            "versions":  [
                "19.4.10"
            ]
        }
    ]
}
References
Credits

Affected packages

RubyGems / coincheck_internal

Package

Name
coincheck_internal
Purl
pkg:gem/coincheck_internal

Affected ranges

Affected versions

19.*
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_internal/extconf.rb",
            "sha256":  "413a2b0320e59c4549fc3279ad13a941056a9556ca7621e412e48d4170844362",
            "tlsh":  "e0e1a5f78894ec3368f7c768e5273112ff1153872a740420ba1d2e5d2f38aa6a165df4"
        },
        {
            "path":  "lib/coincheck_internal.rb",
            "sha256":  "147b4af92b858a24c874eb60f2e50a8132136956d4b693d0ad06861c51f42777",
            "tlsh":  "43e195f79894ec3368f7c768e5277112ff1053872a740420ba1d2e9d2f3caa6a1659f4"
        },
        {
            "path":  "lib/rubygems_plugin.rb",
            "sha256":  "4b1486c35b450aa915404a0affeadd0a62c7e7161f6f861ed6dd75b53650c0e4",
            "tlsh":  "8be195f79894ec3368f7c768e5277102ff1053872a740420ba1d2e9d2f3caa6a1659f4"
        }
    ],
    "package_integrity":  [
        {
            "filename":  "coincheck_internal-19.4.10.gem",
            "hashes":  {
                "sha256":  "698d23878cf3dc9654f078f15eed59d9209f9ce1407b267cfdf6e003cc5c5b28"
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/rubygems/coincheck_internal/MAL-2026-21035.json"