MAL-2026-21133: Malicious code in uznex (RubyGems)

Published Dec 4, 2026
·
Updated

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

Source: amazon-inspector (58714e58dc6e19906fe230b6e93ffca7067e07b77a123f826574f30b1c5d0acc) The gemspec declares extensions: [extconf.rb], so extconf.rb executes automatically during gem install. The script collects the hostname, current working directory and username, filters the process environment for credential-shaped variable names (matching TOKEN, KEY, SECRET, AWS, CI, GITHUB, NPM, PASS, GEM), serializes the result as JSON and PUTs it to the hardcoded endpoint https://uznex-front.s3.eu-central-1.amazonaws.com. It then writes a stub Makefile so the build appears to succeed. No native source files are shipped, so the declared extension has no build purpose beyond executing this collection and upload path. CI tokens, cloud access keys and registry publishing credentials present in the build environment are harvested and leave the machine without user interaction.

Affected Software

1 affected component
rubygems/uznex=99.0.0

Event History

Dec 4, 2026
Advisory Published
via OSV·11:56 AM
Data Sourced
via OSV·11:56 AM
DescriptionAffected Software

Frequently Asked Questions

1

Which environments are most exposed?

Build and CI environments are especially exposed because installation can collect credential-shaped environment variables, including names containing AWS, CI, GITHUB, NPM, GEM, TOKEN, KEY, SECRET, or PASS. Cloud credentials, CI tokens, and registry publishing credentials present during installation may be included.

2

Does the gem need to be loaded or used after installation for collection to occur?

No. The declared extconf.rb extension runs automatically during gem installation, and the collection and upload occur through that script.

3

What should responders look for when assessing possible data exposure?

Check whether uznex version 99.0.0 was installed and review available network records for PUT requests to https://uznex-front.s3.eu-central-1.amazonaws.com. The transmitted data includes the hostname, current working directory, username, and selected environment variables.

4

Why might an installation appear to complete normally?

After collecting and uploading data, the script writes a stub Makefile so the extension build appears to succeed. The package ships no native source files, so the declared extension has no stated build purpose beyond executing this path.

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