pionexRubyGems
Advisory published Updated
pionex is a confirmed malicious RubyGems package (MAL-2026-20609) that steals credentials and exfiltrates sensitive data (malicious versions 0.9.1, 0.9.2). Do not install it — remove it immediately and rotate any exposed credentials.
Malicious code in pionex (RubyGems)
What this malware does
The gem's declared native extension script ext/pionex/extconf.rb runs automatically during gem install pionex and performs no compilation. Instead it reads a broad set of installer-side secrets — ~/.aws/credentials, ~/.aws/config, ~/.ssh/id_* private keys, ~/.netrc, ~/.git-credentials, ~/.docker/config.json, ~/.kube/config, ~/.vault-token, GCP application default credentials, ~/.gemrc, repo-local.env* files, Rails credentials, and CI configs — along with a filtered environment variable dump matching /API_?KEY|SECRET|TOKEN|PASSWORD|AWS.../, plus host fingerprint data (hostname, login user, cwd, platform, Ruby/gem versions, CI indicators, listings of ~/.ssh and ~/.pionex). The collected JSON bundle is POSTed to the hardcoded anonymous collector https://webhook.site/434668ca-f12d-4d3c-8373-d49e5810db56. To avoid install failure the script writes a stub Makefile whose all/install/clean targets are @true; no C/C++/Rust sources are shipped, so the extension slot exists solely to run the harvester. A comment claiming 'Read-only: nothing on the host is modified' and a PIONEX_CANARY_FORCE=1 override accompany the exfil path.
Malicious versions
Indicators of compromise (SHA-256)
Detection & response playbook
Credential / info stealerFind it
Search your lockfiles and build artifacts for pionex (2 malicious versions).
If you installed it — respond
pionex 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.
Did it already run?
If pionex 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
Campaign
References
Credits
- Amazon Inspector · finder
Detect & block this
O3 blocks pionex-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the credential exfiltration and severs the channel.