MAL-2026-21029

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

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

Source: amazon-inspector (f5fb44542c81015996e4cdb272a6bd5590dddbbb102790feccf7ee95477438f8)

The gem ships an identical collector payload in three automatically-reached locations: the gemspec-declared extension script ext/coincheck-api/extconf.rb (runs during gem install and writes a stub Makefile instead of compiling any native code), the library entry point lib/coincheck-api.rb (runs at require time), and lib/rubygems_plugin.rb (auto-loaded by RubyGems on any gem invocation, with a /tmp marker file named.ccgem_* used to deduplicate runs). The payload gathers host reconnaissance via IO.popen calls such as id, uname -a, ps aux, network interface/route listings and git remote -v, serializes the full process environment, and reads installer secret files including ~/.aws/credentials, ~/.ssh private keys, ~/.gem/credentials, ~/.npmrc, ~/.docker/config.json, ~/.kube/config,.env files and Rails master.key. It also queries cloud instance metadata at 169.254.169.254 for IAM role credentials and user-data, plus a GCP service-account token endpoint. The collected bundle is compressed, base64-encoded and POSTed to hardcoded webhook.site collector URLs, with a DNS-based out-of-band fallback to oast.fun. No part of the extension script performs a real native build.

Source: ossf-package-analysis (1272af6a4e4beaa52acc66cb7950bd118fd39f5fb2be74cb0c269bba641c21e3)

The OpenSSF Package Analysis project identified 'coincheck-api' @ 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-023155",
            "import_time":  "2026-12-03T06:26:16.099345523Z",
            "modified_time":  "2026-12-03T05:54:04Z",
            "sha256":  "f5fb44542c81015996e4cdb272a6bd5590dddbbb102790feccf7ee95477438f8",
            "source":  "amazon-inspector",
            "versions":  [
                "19.4.10"
            ]
        },
        {
            "import_time":  "2026-12-03T06:26:14.529532924Z",
            "modified_time":  "2026-12-03T06:01:09Z",
            "sha256":  "1272af6a4e4beaa52acc66cb7950bd118fd39f5fb2be74cb0c269bba641c21e3",
            "source":  "ossf-package-analysis",
            "versions":  [
                "19.4.10"
            ]
        }
    ]
}
References
Credits

Affected packages

RubyGems / coincheck-api

Package

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

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-api/extconf.rb",
            "sha256":  "b9ea6c3b703ec990bf211ba66a6ec7beda8b8a92944b25db3e2392e398489144",
            "tlsh":  "1ee1a4f78894ec3368f7c768e5277112ff1153872a740420ba1d2e9d2f38aa6a1659f4"
        },
        {
            "path":  "lib/coincheck-api.rb",
            "sha256":  "926d08fd328f40045b2fd99ef3cf940a0a07da29ec756633f46bb75377ce9b8b",
            "tlsh":  "3fe194f79894ec3368f7c768e5277112ff1053872a740420ba1d2e9d2f3caa6a1659f4"
        },
        {
            "path":  "lib/rubygems_plugin.rb",
            "sha256":  "d4a8b85dd5ebe70600e7e5f4cdd5c4998466c52e9b12b72db52343e8c554e839",
            "tlsh":  "cae195f79894ec3368f7c768e5277112ff1053872a740420ba1d2e9d2f3caa6a1659f4"
        }
    ],
    "package_integrity":  [
        {
            "filename":  "coincheck-api-19.4.10.gem",
            "hashes":  {
                "sha256":  "d070986aaa0e63fa9569a124a7e2e1e522eb684292b453218592d473a2e6e418"
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/rubygems/coincheck-api/MAL-2026-21029.json"