MAL-2026-21134: Malicious code in uznex-api-doc (RubyGems)
--- -= Per source details. Do not edit below this line.=-
Source: amazon-inspector (d4acfad299a2c9f1296dc21382f99c6a4be5bec735f83b37789436ba5f42c315) The gemspec declares extconf.rb in its extensions: list, so the script runs automatically during gem install. The script collects the hostname, current working directory and username, and builds a filtered dump of environment variables whose names match TOKEN, KEY, SECRET, AWS, CI, GITHUB, NPM, PASS or GEM patterns, then PUTs the result as JSON to the hardcoded bucket https://uznex-front.s3.eu-central-1.amazonaws.com. It subsequently writes a stub Makefile so the native build appears to succeed without compiling anything, and no real native source tree is built. Developer and CI environments routinely hold cloud, registry and VCS tokens in these variables, so installing the gem discloses credential-grade secrets and host identifiers to a third-party destination with no opt-in and no relation to any declared build requirement.
Affected Software
Event History
Frequently Asked Questions
What must happen for the data collection to run?
The extconf.rb script is declared as a gem extension and runs automatically during gem install. No separate execution of the gem or opt-in is required.
Which environments are most exposed?
Developer and CI environments are especially exposed because the script filters environment variables for names containing TOKEN, KEY, SECRET, AWS, CI, GITHUB, NPM, PASS, or GEM. It also collects the hostname, current working directory, and username.
What information is sent off-host?
The script sends a JSON payload containing the collected host details and matching environment variables to a hardcoded Amazon S3 bucket at uznex-front.s3.eu-central-1.amazonaws.com.
How can I determine whether this package was installed?
Check whether uznex-api-doc versions 99.0.0 or 99.0.1 were installed in the affected RubyGems environment. An installation of either version would have automatically run the extension script.
What should be done if one of these versions was installed?
Treat matching environment variables available during installation as potentially disclosed, particularly cloud, registry, and version-control credentials. The provided data does not identify a safe replacement version or mitigation beyond avoiding installation.