{"id":"MAL-2026-21133","summary":"Malicious code in uznex (RubyGems)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (58714e58dc6e19906fe230b6e93ffca7067e07b77a123f826574f30b1c5d0acc)\nThe gemspec declares `extensions: [extconf.rb]`, so extconf.rb executes automatically during `gem install`. The script collects the hostname, current working directory and username, filters the process environment for credential-shaped variable names (matching TOKEN, KEY, SECRET, AWS, CI, GITHUB, NPM, PASS, GEM), serializes the result as JSON and PUTs it to the hardcoded endpoint https://uznex-front.s3.eu-central-1.amazonaws.com. It then writes a stub Makefile so the build appears to succeed. No native source files are shipped, so the declared extension has no build purpose beyond executing this collection and upload path. CI tokens, cloud access keys and registry publishing credentials present in the build environment are harvested and leave the machine without user interaction.\n","modified":"2026-12-04T12:30:17.739194001Z","published":"2026-12-04T11:56:58Z","database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-023234","import_time":"2026-12-04T12:16:56.779146875Z","modified_time":"2026-12-04T11:56:58Z","sha256":"58714e58dc6e19906fe230b6e93ffca7067e07b77a123f826574f30b1c5d0acc","source":"amazon-inspector","versions":["99.0.0"]}]},"references":[{"type":"PACKAGE","url":"https://rubygems.org/gems/uznex/versions/99.0.0"}],"affected":[{"package":{"name":"uznex","ecosystem":"RubyGems","purl":"pkg:gem/uznex"},"versions":["99.0.0"],"database_specific":{"indicators":{"evidence_files":[{"path":"extconf.rb","sha256":"e5c73730b9ec7467c5a18f9482bebde4f580ffd7a6fe7360f10597c024f6f8bc","tlsh":"470175d3c324fd249b9591e73c1ab4113c53fe3c42602c11d85199d821c0c8e1363d64"}],"package_integrity":[{"hashes":{"sha256":"4205e76d374c9f8083f8cd9cc9e172dea78db05aaab2228bdbfaf0d9a66ac71f"},"filename":"uznex-99.0.0.gem"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/rubygems/uznex/MAL-2026-21133.json","cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}]}}],"schema_version":"1.9.2","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}