MAL-2026-21132: Malicious code in enkash-pg (RubyGems)

Published Dec 4, 2026
·
Updated

--- -= 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

1 affected component
rubygems/enkash-pg=1.0.0

Event History

Dec 4, 2026
Advisory Published
via OSV·11:56 AM
Data Sourced
via OSV·11:56 AM
DescriptionAffected Software

Frequently Asked Questions

1

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.

2

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.

3

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.

4

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203