MAL-2026-21034

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

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

Source: amazon-inspector (9e4fe5934fda00d2a3725c1e79fcd4adc47b74818802e7f2c50de278b269d240)

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

Database specific
{
    "malicious-packages-origins":  [
        {
            "id":  "IN-MAL-2026-023153",
            "import_time":  "2026-12-03T06:26:16.027560624Z",
            "modified_time":  "2026-12-03T05:53:48Z",
            "sha256":  "9e4fe5934fda00d2a3725c1e79fcd4adc47b74818802e7f2c50de278b269d240",
            "source":  "amazon-inspector",
            "versions":  [
                "19.4.10"
            ]
        }
    ]
}
References
Credits

Affected packages

RubyGems / coincheck_core

Package

Name
coincheck_core
Purl
pkg:gem/coincheck_core

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_core/extconf.rb",
            "sha256":  "7c427ea1f425ce03d525e45f98abec882b2d3920c18b21926d5016cc0ddb3ec0",
            "tlsh":  "68e1a5f78894ec3368f7c768e5277102ff1153872a740420ba1d6e9d2f38ba6a1659f4"
        },
        {
            "path":  "lib/coincheck_core.rb",
            "sha256":  "f008d2d0003beb2109bb744f73517463c5ee27986b592b5b76a52844b9a4d5bc",
            "tlsh":  "83e194f79894ac3368f7c768e5277102ef1053872a740420ba1d2e9d2f3caa6a1659f4"
        },
        {
            "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"