MAL-2026-21155: Malicious code in uznex-api (RubyGems)

Published Dec 4, 2026
·
Updated

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

Source: amazon-inspector (afb22e94075c4f18cb57402e5496620c87e6d6174cbfd9d38f0567e661f97ffe) The gemspec declares extconf.rb as a native extension, so the script executes automatically during gem install. Rather than configuring a build, extconf.rb collects host and process identifiers (hostname, working directory, user, PID), container fingerprints read from /proc/1/cmdline and /proc/1/cgroup, Gemfile and Gemfile.lock contents, the installed gem list, and a filtered dump of environment variables selected by credential-shaped patterns (TOKEN, KEY, SECRET, AWS, GITHUB, NPM, GEM, BUNDLE, KUBE, DOCKER). The collected JSON is sent via an HTTPS PUT to a hardcoded bucket endpoint at uznex-front.s3.eu-central-1.amazonaws.com under an /i18372/beacon/ path. The gem's library code is an inert stub providing no advertised functionality, and no native source tree accompanies the declared extension. Developer and CI environments routinely hold deploy, registry, and cloud credentials in exactly the variables matched by this filter.

Affected Software

1 affected component
rubygems/uznex-api=100.0.0

Event History

Dec 4, 2026
Advisory Published
via OSV·11:38 PM
Data Sourced
via OSV·11:38 PM
DescriptionAffected Software

Frequently Asked Questions

1

When does the malicious behavior run?

It runs automatically during `gem install` because the gemspec declares `extconf.rb` as a native extension. The script executes as part of installation rather than requiring the gem's library code to be called.

2

Which systems are most exposed?

Developer workstations and CI environments are especially exposed because the script collects environment variables matching credential-related patterns, including TOKEN, KEY, SECRET, AWS, GITHUB, NPM, GEM, BUNDLE, KUBE, and DOCKER. It also collects project dependency files, installed gems, host details, and container fingerprints.

3

What information is sent off the system?

The installer sends collected data as JSON over an HTTPS PUT request to a hardcoded S3 bucket endpoint under the `/i18372/beacon/` path. Collected data includes hostname, working directory, user, PID, selected environment variables, Gemfile and Gemfile.lock contents, installed gems, and `/proc/1` container information.

4

How can I determine whether an installation may have exposed data?

Check whether `uznex-api` version `100.0.0` was installed, including in CI build logs, dependency-install steps, caches, and developer environments. Any installation may have run the extension script and transmitted data available to the installing process.

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