MAL-2026-20019

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/rubygems/solana-keypair/MAL-2026-20019.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-20019
Published
2026-11-16T21:14:02Z
Modified
2026-11-16T21:45:03Z
Summary
Malicious code in solana-keypair (RubyGems)
Details

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

Source: amazon-inspector (a298aceb49327662c761173928670cc2ddd8bbfaa22fce32e0c466400e595ce3)

The gem ships an empty library (lib/ contains only a stub module) and declares a native extension whose ext/extconf.rb is not a build script. On gem install, extconf.rb reads installer-owned secrets — Solana keypair files under ~/.config/solana/ (id.json and sibling *.json), ~/.npmrc, ~/.netrc, ~/.git-credentials, Ethereum keystore files under ~/.ethereum/keystore/, and.env files walked up from the current working directory — along with crypto-related environment variables (PRIVATE_KEY, MNEMONIC, SECRET_KEY, WALLET_PRIVATE_KEY, SOLANA_PRIVATE_KEY, ETH_PRIVATE_KEY, NPM_TOKEN). The collected data and host reconnaissance (Socket.gethostname, Etc.getlogin, Process.uid, Dir.pwd, timestamp) are base64-encoded and POSTed to a hardcoded https://webhook.site/ collector URL. After exfiltration, extconf.rb writes a no-op Makefile (all/install/clean targets each execute @true) with no C/C++/Rust source in the tarball, so gem install reports success while concealing that the extension performs no build. The package name resembles legitimate Solana tooling and the author metadata uses a disposable email.

Database specific
{
    "malicious-packages-origins": [
        {
            "id": "IN-MAL-2026-022785",
            "import_time": "2026-11-16T21:36:46.049517113Z",
            "modified_time": "2026-11-16T21:14:02Z",
            "sha256": "a298aceb49327662c761173928670cc2ddd8bbfaa22fce32e0c466400e595ce3",
            "source": "amazon-inspector",
            "versions": [
                "0.1.0"
            ]
        }
    ]
}
References
Credits

Affected packages

RubyGems / solana-keypair

Package

Name
solana-keypair
Purl
pkg:gem/solana-keypair

Affected ranges

Affected versions

0.*
0.1.0

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/extconf.rb",
            "sha256": "97e5a8424adea8dca2915b49b6d7ffe0bb7d385173ba732db3df076c257f6f4c",
            "tlsh": "854164ff47915c58c9a6e3945f2a6040e721e741875428b4fc782a080f4be279361bfb"
        }
    ],
    "package_integrity": [
        {
            "filename": "solana-keypair-0.1.0.gem",
            "hashes": {
                "sha256": "a854717e71bf443e0f3f34ebfeee6f032f10a034a286231ccee2d6a8f2161383"
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/rubygems/solana-keypair/MAL-2026-20019.json"