Malicious package · RubyGems
Malicious code in uznex (RubyGems)
100.0.099.0.0No safe version. Remove it.What it does
The gemspec declares extensions: - extconf.rb, so extconf.rb executes automatically during gem install. Instead of configuring a native build, the script collects host and project reconnaissance (hostname, working directory, user, PID, container indicators read from /proc/1, Gemfile and Gemfile.lock contents, the installed gem list) and performs a bulk dump of environment variables filtered on credential-shaped names (TOKEN, KEY, SECRET, AWS, GITHUB, GITLAB, NPM, PASS, DOCKER, KUBE and similar). The collected JSON is sent via an HTTPS PUT to the hardcoded bucket endpoint https://uznex-front.s3.eu-central-1.amazonaws.com. The script writes only a stub Makefile and compiles no native code, so the extension declaration exists solely to obtain install-time execution. Installing this gem on a developer machine or CI runner causes build and cloud credentials present in the environment to be transmitted to a third-party-controlled storage endpoint.
No fix · Remove and contain
gem uninstall uznexSources