MAL-2026-21132: Malicious code in enkash-pg (RubyGems)
--- -= Per source details. Do not edit below this line.=-
Source: amazon-inspector (9d1650b5e956f4d968ddf2af7f95f9d8e476d6e3fa310ff1e1fdce237b4d0ec0) enkash-pg 1.0.0 ships no payment-SDK functionality; its lib/enkashpg.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/enkashpg.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.
Affected Software
Event History
Frequently Asked Questions
When does the package contact the external host?
It makes an HTTPS request automatically during gem installation through ext/extconf.rb. It makes the same type of callback again when lib/enkash_pg.rb is loaded, using a different phase value.
What conditions are needed for the callback to occur?
Installation triggers the callback because the gem declares a native extension, despite containing no native source files. If the Ruby HTTP request fails, the installer attempts the request through a curl subprocess instead.
What network indicators can be used to identify exposure?
Look for HTTPS requests to workinc.top/oob/o1-76e3ec8d88e33838b1370c650492580e29872b90. Install-time requests include pkg=enkash-pg-rubygems and phase=install; library-load requests use phase=require.
Does a successful installation indicate that no code ran?
No. After making the callback, the extension script writes a no-op Makefile that allows the build to appear successful. The lack of payment-SDK functionality and native source files does not prevent the install-time script from running.