Advisory

MAL-2026-20019

Also known as: None

Malicious package Its source marks this package as malicious: it is not a vulnerability in a legitimate one.

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.

Severity

Not rated by the source.

Dates

Published
2026-11-16 21:14 UTC
Modified
2026-11-16 21:45 UTC

Affected packages and fixes

solana-keypair

RubyGems · All systems

Affected

  • Versions: 0.1.0

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: OpenSSF Malicious Packages · Apache-2.0

Sources & licences