Malicious package · RubyGems
Malicious code in uznex-api-doc (RubyGems)
100.0.099.0.099.0.1No safe version. Remove it.What it does
The gem declares extconf.rb as a native extension build script, but the script performs no compilation. On gem install it collects host and process context (hostname, current working directory, user, PID, /proc/1 container metadata), project files (Gemfile and Gemfile.lock contents), the installed gem list, and the values of every environment variable whose name matches credential-shaped patterns (TOKEN, KEY, SECRET, AWS, CI, GITHUB, GITLAB, NPM, PASS, GEM, BUNDLE, DEPLOY, KUBE, DOCKER). The collected data is serialized as JSON and sent via HTTP PUT to the hardcoded bucket https://uznex-front.s3.eu-central-1.amazonaws.com. The script then writes a stub Makefile so the install appears to complete normally. Developer and CI environments routinely hold cloud, registry and source-control tokens in exactly those variables, so installation results in those secrets leaving the host to a remote destination the installer does not control.
No fix · Remove and contain
gem uninstall uznex-api-docSources