MAL-2026-20609: Malicious code in pionex (RubyGems)

Published Nov 25, 2026
·
Updated

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

Source: amazon-inspector (ddbf8dd642df1b1a67eee37e46e86d506a9097bf5b814a4dcca2b7c83a54a9e0) 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 PIONEXCANARYFORCE=1 override accompany the exfil path.

Affected Software

1 affected component
rubygems/pionex=0.9.2, =0.9.1

Event History

Nov 25, 2026
Advisory Published
via OSV·03:44 PM
Data Sourced
via OSV·03:44 PM
DescriptionAffected Software

Frequently Asked Questions

1

When does the malicious behavior run?

It runs automatically during `gem install pionex` through the gem's declared native extension script, `ext/pionex/extconf.rb`. The script does not need the installed gem to be invoked by an application.

2

Which systems are most exposed?

Systems that install the gem while holding developer, cloud, CI, deployment, or source-control credentials are most exposed. The installer attempts to collect AWS, GCP, SSH, Docker, Kubernetes, Vault, Git, Rails, and CI-related credentials, as well as matching secret-bearing environment variables.

3

What should teams do if they cannot immediately replace the dependency?

Do not install `pionex` on systems containing credentials or CI secrets. In particular, prevent it from being installed in build and deployment environments until the dependency can be removed or replaced.

4

How can an organization investigate possible exposure?

Identify hosts or CI jobs where `gem install pionex` ran, then review outbound network logs for POST requests to `https://webhook.site/434668ca-f12d-4d3c-8373-d49e5810db56`. Treat credentials accessible to the installing user and matching environment variables as potentially exposed.

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