Malicious code in enkash-pg (RubyGems)
- MAL-2026-21132
Description
enkash-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.
Text from the OSV record.
Recommendation
Remove the package and rotate any secret the machine that installed it could reach. There is no version to update to.
Affected
enkash-pgRubyGems
No versions listed
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.