NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
Malicious package

solana-keypairRubyGems

Advisory published Updated

solana-keypair is a confirmed malicious RubyGems package (MAL-2026-20019) that steals credentials and exfiltrates sensitive data (malicious version 0.1.0). Do not install it — remove it immediately and rotate any exposed credentials.

Malicious code in solana-keypair (RubyGems)

MAL-2026-20019
Immediate action
Remove the package, then rotate any secrets the build/runtime could reach.
gem uninstall solana-keypair

What this malware does

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.

Malicious versions

1 flagged
0.1.0

Indicators of compromise (SHA-256)

a298aceb49327662c761173928670cc2ddd8bbfaa22fce32e0c466400e595ce3

Detection & response playbook

Credential / info stealer
  1. Find it

    Search your lockfiles and build artifacts for solana-keypair (version 0.1.0).

  2. If you installed it — respond

    solana-keypair is built to steal secrets, so assume every credential the build or runtime could read is compromised. Remove it from your project and lockfile, then rotate ALL exposed secrets — npm/registry tokens, cloud keys, CI/CD secrets, SSH keys, and any .env values — from a known-clean machine. Audit logs for unauthorized use of those credentials.

  3. Did it already run?

    If solana-keypair was installed, its post-install payload may already have run. Removing the package does not undo that — check outbound connections and credential use from the install window onward.

Frequently asked questions

No. solana-keypair on RubyGems has been identified as a malicious package (version 0.1.0 flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Campaign

IN-MAL-2026-022785

References

Credits

  • Amazon Inspector · finder

Detect & block this

O3 blocks solana-keypair-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the credential exfiltration and severs the channel.

Explore

solana-keypair (RubyGems) malicious package — MAL-2026-20019 | O3 Security