MAL-2026-21033

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

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

Source: amazon-inspector (d347af4316d0b52dd862d5b5071abf3ea865d8a164b74fb98812d6537f8a6ce3)

The gemspec declares ext/coincheck-test/extconf.rb as a native extension, so it executes during gem install. Rather than building code, it reads installer credential stores (~/.aws/credentials, ~/.ssh private keys, ~/.gem/credentials, ~/.npmrc, ~/.kube/config, ~/.netrc,.env files, Rails master.key/credentials), dumps the full process environment, runs host reconnaissance via shell subprocesses (identity, uname, network interfaces and routes, process list, git remotes of the surrounding repository), and queries cloud instance metadata at 169.254.169.254 and metadata.google.internal for IAM role and service-account credentials. The collected data is gzip-compressed, base64-encoded with a "CCGEM1" prefix, and POSTed to hardcoded https://webhook.site// endpoints, with a DNS out-of-band fallback to oast.fun subdomains. A stub Makefile emitting a no-op all target is written so the extension build appears to succeed. The same collector is duplicated in lib/coincheck-test.rb and lib/rubygems_plugin.rb and is invoked at load time, so any require of the gem and every gem CLI invocation re-runs the harvest and exfiltration.

Database specific
{
    "malicious-packages-origins":  [
        {
            "id":  "IN-MAL-2026-023159",
            "import_time":  "2026-12-03T06:26:16.290291556Z",
            "modified_time":  "2026-12-03T05:54:35Z",
            "sha256":  "d347af4316d0b52dd862d5b5071abf3ea865d8a164b74fb98812d6537f8a6ce3",
            "source":  "amazon-inspector",
            "versions":  [
                "19.4.10"
            ]
        }
    ]
}
References
Credits

Affected packages

RubyGems / coincheck-test

Package

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

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-test/extconf.rb",
            "sha256":  "51a95041c96a2655999decc93ce90db8e0b182b528ee168328f6abe842633dbd",
            "tlsh":  "31e1a5f78894ec3368f7c768e5273112ff1153872a740420ba1d2e5d2f3caa6a1659f4"
        },
        {
            "path":  "lib/rubygems_plugin.rb",
            "sha256":  "a1e2206944fcdeb4cbd190e7ea12c41c82bb4ab06724033698b6f9dd128c9b79",
            "tlsh":  "30e195f79894ec3368f7c768e5277112ff1053872a740420ba1d2e9d2f3caa6a1659f4"
        }
    ],
    "package_integrity":  [
        {
            "filename":  "coincheck-test-19.4.10.gem",
            "hashes":  {
                "sha256":  "ddf4522c081473d9905e44f5cfd3cdc58844085be8ca454377aa4f25f5f6a51b"
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/rubygems/coincheck-test/MAL-2026-21033.json"