{"id":"MAL-2026-21132","summary":"Malicious code in enkash-pg (RubyGems)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (9d1650b5e956f4d968ddf2af7f95f9d8e476d6e3fa310ff1e1fdce237b4d0ec0)\nenkash-pg 1.0.0 ships no payment-SDK functionality; its lib/enkash_pg.rb is an inert stub. The gemspec declares a native extension (`extensions: - ext/extconf.rb`) while the package contains no C/C++/Rust sources. ext/extconf.rb, which runs automatically during `gem install`, performs an unconditional HTTPS GET to the hardcoded host https://workinc.top/oob/o1-76e3ec8d88e33838b1370c650492580e29872b90 with `pkg=enkash-pg-rubygems&phase=install`, falls back to a `curl` subprocess if the Ruby HTTP call fails, and then writes a no-op Makefile (`all:\\n\\ttrue`) so the build appears to succeed. lib/enkash_pg.rb repeats the same callback with `phase=require` when the library is loaded. The destination domain is unrelated to the claimed publisher's documented domain and the callback is undisclosed, confirming out-of-band code execution and host reachability on the installing machine to a third party. The extension declaration with no native code exists solely to obtain install-time execution.\n","modified":"2026-12-04T12:30:17.737824558Z","published":"2026-12-04T11:56:19Z","database_specific":{"malicious-packages-origins":[{"versions":["1.0.0"],"id":"IN-MAL-2026-023233","import_time":"2026-12-04T12:16:56.711129957Z","modified_time":"2026-12-04T11:56:19Z","sha256":"9d1650b5e956f4d968ddf2af7f95f9d8e476d6e3fa310ff1e1fdce237b4d0ec0","source":"amazon-inspector"}]},"references":[{"type":"PACKAGE","url":"https://rubygems.org/gems/enkash-pg/versions/1.0.0"}],"affected":[{"package":{"name":"enkash-pg","ecosystem":"RubyGems","purl":"pkg:gem/enkash-pg"},"versions":["1.0.0"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"tlsh":"fcf0e1831f419177a958c1a263075180eb7bee1118832c81e4fc6148a98ae1db263072","path":"ext/extconf.rb","sha256":"68cbf0a0fd14e266e55e468eeb171255e93c613eea6da988ec1ef2e080d88801"}],"package_integrity":[{"filename":"enkash-pg-1.0.0.gem","hashes":{"sha256":"c537284301bb6347bb63013012424198088aa1421ec6d61c6547869d8f7feec5"}}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/rubygems/enkash-pg/MAL-2026-21132.json"}}],"schema_version":"1.9.2","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}