{"id":"MAL-2026-21155","summary":"Malicious code in uznex-api (RubyGems)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (afb22e94075c4f18cb57402e5496620c87e6d6174cbfd9d38f0567e661f97ffe)\nThe 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.\n","modified":"2026-12-05T00:45:06.803152791Z","published":"2026-12-04T23:38:16Z","database_specific":{"malicious-packages-origins":[{"source":"amazon-inspector","versions":["100.0.0"],"id":"IN-MAL-2026-023238","import_time":"2026-12-05T00:28:40.650904381Z","modified_time":"2026-12-04T23:38:16Z","sha256":"afb22e94075c4f18cb57402e5496620c87e6d6174cbfd9d38f0567e661f97ffe"}]},"references":[{"type":"PACKAGE","url":"https://rubygems.org/gems/uznex-api/versions/100.0.0"}],"affected":[{"package":{"name":"uznex-api","ecosystem":"RubyGems","purl":"pkg:gem/uznex-api"},"versions":["100.0.0"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/rubygems/uznex-api/MAL-2026-21155.json","cwes":[{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"}],"indicators":{"package_integrity":[{"filename":"uznex-api-100.0.0.gem","hashes":{"sha256":"1924b4093561276fac356efc64a2ce69794bc697e502ac337a97237ba7430c78"}}],"evidence_files":[{"path":"extconf.rb","sha256":"fc8b630497b2d8bc890cf1a7c5cfb4e44e00c5e6f5be437502fea54aabb9454a","tlsh":"6a3153624a12ac01eda265e63c47a6113bbbeb074a143c31f164f4082f8ce9d53fadd6"}]}}}],"schema_version":"1.9.2","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}