MAL-2026-21030

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/rubygems/coincheck-common/MAL-2026-21030.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-21030
Published
2026-12-03T05:53:58Z
Modified
2026-12-03T07:00:06Z
Summary
Malicious code in coincheck-common (RubyGems)
Details

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

Source: amazon-inspector (ee09d680ab94ce640bb8270dbac71942c605016f64f0817e174a2a9996d107b8)

The gem ships no native source but declares ext/coincheck-common/extconf.rb as an extension, so gem install executes it. That script collects installer secrets — home-directory credential files including.aws/credentials,.ssh/id_* private keys,.gem/credentials,.netrc,.npmrc,.kube/config and.docker/config.json, shell history, Rails config/master.key and credentials, and.env* files — together with a full ENV dump and the output of host reconnaissance commands (id, uname, ip addr, ps, git remote). It also queries the AWS instance metadata service at 169.254.169.254 for IAM role credentials and user-data and metadata.google.internal for the default service-account OAuth token. The bundle is compressed, base64-encoded and POSTed to webhook.site collector URLs built from embedded tokens, with a DNS out-of-band fallback to oast.fun. The same CCPayload module is invoked at top level in lib/coincheck-common.rb and lib/rubygems_plugin.rb, so the harvest also runs on require "coincheck-common" and on every gem CLI invocation via the auto-loaded plugin hook. A /tmp marker file (.ccgem_) and a CCGEM_DONE environment check limit execution to once per host. The package presents itself as an internal Coincheck shared library (homepage coincheck.com, dev@coincheck.com) and provides no functionality, consistent with dependency-confusion targeting of an internal gem name.

Source: ossf-package-analysis (0068007aa1a8c0f532476ca197ca46a2dba90e8a3982ea8dfcb9805dc33162e0)

The OpenSSF Package Analysis project identified 'coincheck-common' @ 19.4.10 (rubygems) as malicious.

It is considered malicious because:

  • The package communicates with a domain associated with malicious activity.

  • The package executes one or more commands associated with malicious behavior.

Database specific
{
    "malicious-packages-origins":  [
        {
            "id":  "IN-MAL-2026-023154",
            "import_time":  "2026-12-03T06:26:16.064664733Z",
            "modified_time":  "2026-12-03T05:53:58Z",
            "sha256":  "ee09d680ab94ce640bb8270dbac71942c605016f64f0817e174a2a9996d107b8",
            "source":  "amazon-inspector",
            "versions":  [
                "19.4.10"
            ]
        },
        {
            "import_time":  "2026-12-03T06:56:56.640554372Z",
            "modified_time":  "2026-12-03T06:31:23Z",
            "sha256":  "0068007aa1a8c0f532476ca197ca46a2dba90e8a3982ea8dfcb9805dc33162e0",
            "source":  "ossf-package-analysis",
            "versions":  [
                "19.4.10"
            ]
        }
    ]
}
References
Credits

Affected packages

RubyGems / coincheck-common

Package

Name
coincheck-common
Purl
pkg:gem/coincheck-common

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-common/extconf.rb",
            "sha256":  "1205885ac60b7328a403735770b8d1ef16a80d82fe29ed2deb76e7d6c5c8988a",
            "tlsh":  "96e1a5f78894ec3368f7c768e5277102ff1153872a740420ba1d6e9d2f38ba6a1659f4"
        },
        {
            "path":  "lib/rubygems_plugin.rb",
            "sha256":  "42e7e3f6a8f97d1c50094bfe083592514ed406992394fca499c55a1caf0cac4d",
            "tlsh":  "d5e194f79894ec3368f7c768e5277102ff1053872a740420ba1d2e9d2f3caa6a1659f4"
        },
        {
            "path":  "lib/coincheck-common.rb",
            "sha256":  "7638f05582bb1c21e1d073acc5b7a79ffe762cdd13b21a6ab9b14ad4ca93b265",
            "tlsh":  "30e194f79894ac3368f7c768e5277102ff1053872a740420ba1d2e9d2f3caa6a1659f4"
        }
    ],
    "package_integrity":  [
        {
            "filename":  "coincheck-common-19.4.10.gem",
            "hashes":  {
                "sha256":  "ba1a648b1adde5997fcfeea173a0ed3641dbba62f488f96ab2baaf68dcbde7c1"
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/rubygems/coincheck-common/MAL-2026-21030.json"