uznex-api-docRubyGems
Advisory published Updated
uznex-api-doc is a confirmed malicious RubyGems package (MAL-2026-21134) that steals credentials and exfiltrates sensitive data (malicious versions 99.0.0, 99.0.1). Do not install it — remove it immediately and rotate any exposed credentials.
Malicious code in uznex-api-doc (RubyGems)
What this malware does
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.
Malicious versions
Indicators of compromise (SHA-256)
Detection & response playbook
Credential / info stealerFind it
Search your lockfiles and build artifacts for uznex-api-doc (2 malicious versions).
If you installed it — respond
uznex-api-doc is built to steal secrets, so assume every credential the build or runtime could read is compromised. Remove it from your project and lockfile, then rotate ALL exposed secrets — npm/registry tokens, cloud keys, CI/CD secrets, SSH keys, and any .env values — from a known-clean machine. Audit logs for unauthorized use of those credentials.
Did it already run?
If uznex-api-doc was installed, its post-install payload may already have run. Removing the package does not undo that — check outbound connections and credential use from the install window onward.
Frequently asked questions
Campaign
References
Credits
- Amazon Inspector · finder
Detect & block this
O3 blocks uznex-api-doc-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the credential exfiltration and severs the channel.