MAL-2026-21155: Malicious code in uznex-api (RubyGems)
--- -= 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
Event History
Frequently Asked Questions
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.
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.
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.
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.