MAL-2026-20019: Malicious code in solana-keypair (RubyGems)

Published Nov 16, 2026
·
Updated

--- -= 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 (PRIVATEKEY, MNEMONIC, SECRETKEY, WALLETPRIVATEKEY, SOLANAPRIVATEKEY, ETHPRIVATEKEY, NPMTOKEN). 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.

Affected Software

1 affected component
rubygems/solana-keypair=0.1.0

Event History

Nov 16, 2026
Advisory Published
via OSV·09:14 PM
Data Sourced
via OSV·09:14 PM
DescriptionAffected Software

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203